Skip to content

Commit cf2b580

Browse files
committed
Added hide GF notices in repo readmes ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-talk]
1 parent 18ea1aa commit cf2b580

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

chatgpt/chatgpt-auto-talk/chatgpt-auto-talk.user.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,14 @@
225225
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.4.2
228+
// @version 2025.4.11
229229
// @license MIT
230230
// @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-talk@9f1ed3c/assets/images/icons/openai/black/icon48.png
231231
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-talk@9f1ed3c/assets/images/icons/openai/black/icon64.png
232232
// @match *://chatgpt.com/*
233+
// @match *://github.com/adamlui/chatgpt-auto-talk*
234+
// @match *://github.com/adamlui/ai-web-extensions/*/chatgpt-auto-talk*
235+
// @match *://github.com/adamlui/userscripts/*/chatgpt-auto-talk*
233236
// @connect cdn.jsdelivr.net
234237
// @connect chatgptautotalk.com
235238
// @connect raw.githubusercontent.com
@@ -257,6 +260,13 @@
257260

258261
(async () => {
259262

263+
// Hide GF alert on GitHub if found
264+
if (location.host == 'github.com') {
265+
const gfAlert = [...document.querySelectorAll('.markdown-alert')]
266+
.find(alert => alert.textContent.includes('Greasy Fork'))
267+
return !gfAlert ? undefined : gfAlert.style.display = 'none'
268+
}
269+
260270
// Init ENV context
261271
const env = {
262272
browser: {

0 commit comments

Comments
 (0)