Skip to content

Commit 2f8fa00

Browse files
committed
Made stylesheet append in modals.stylize() conditional since called repeatedly ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/googlegpt]
1 parent 5260578 commit 2f8fa00

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

chatgpt/googlegpt/googlegpt.user.js

Lines changed: 4 additions & 3 deletions
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.27.1
152+
// @version 2025.4.27.2
153153
// @license MIT
154154
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
155155
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
@@ -1593,7 +1593,8 @@
15931593
},
15941594

15951595
stylize() {
1596-
document.head.append(this.styles = dom.create.style(
1596+
if (!this.styles) document.head.append(this.styles = dom.create.elem('style'))
1597+
this.styles.innerText = (
15971598

15981599
// Vars
15991600
`:root {
@@ -1759,7 +1760,7 @@
17591760
config.fgAnimationsDisabled ? '' : 'animation: ticker linear 60s infinite' }}`
17601761
+ '@keyframes ticker { 0% { transform: translateX(100%) } 100% { transform: translateX(-2000%) }}'
17611762
+ `.about-em { color: ${ env.ui.app.scheme == 'dark' ? 'white' : 'green' } !important }`
1762-
))
1763+
)
17631764
},
17641765

17651766
update: {

0 commit comments

Comments
 (0)