Skip to content

Commit e4a9fce

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

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

chatgpt/googlegpt/googlegpt.user.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
150150
// @author KudoAI
151151
// @namespace https://kudoai.com
152-
// @version 2025.4.10.4
152+
// @version 2025.4.11
153153
// @license MIT
154154
// @icon https://cdn.jsdelivr.net/gh/KudoAI/googlegpt@59409b2/assets/images/icons/googlegpt/black/icon48.png
155155
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/googlegpt@59409b2/assets/images/icons/googlegpt/black/icon64.png
@@ -372,6 +372,10 @@
372372
// @match *://*.google.co.zm/search*
373373
// @match *://*.google.co.zw/search*
374374
// @match *://*.google.cat/search*
375+
// @match *://github.com/KudoAI/googlegpt*
376+
// @match *://github.com/kudoai/googlegpt*
377+
// @match *://github.com/adamlui/ai-web-extensions/*/googlegpt*
378+
// @match *://github.com/adamlui/userscripts/*/googlegpt*
375379
// @include https://auth0.openai.com
376380
// @connect am.aifree.site
377381
// @connect api.binjie.fun
@@ -4596,6 +4600,13 @@
45964600
['rpg', 'rpw'].forEach(cssType => // rising particles
45974601
document.head.append(dom.create.style(GM_getResourceText(`${cssType}CSS`))))
45984602

4603+
// Hide GF alert on GitHub if found
4604+
if (location.host == 'github.com') {
4605+
const gfAlert = [...document.querySelectorAll('.markdown-alert')]
4606+
.find(alert => alert.textContent.includes('Greasy Fork'))
4607+
return !gfAlert ? undefined : gfAlert.style.display = 'none'
4608+
}
4609+
45994610
// APPEND to Google
46004611
const centerCol = document.querySelector('#center_col') || document.querySelector('#main')
46014612
const appDivParent = env.browser.isMobile ? centerCol

0 commit comments

Comments
 (0)