Skip to content

Commit c47c8bf

Browse files
committed
Fixed btn-zoom-fade-out button icons grow too large in FF
1 parent 8526f74 commit c47c8bf

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Adds the magic of AI to Amazon shopping
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.2.11
6+
// @version 2025.2.11.1
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
@@ -1967,7 +1967,10 @@
19671967
if (/about|settings|speak/.test(btn.id)) btn.onmouseup = () => { // add zoom/fade-out to select buttons
19681968
if (config.fgAnimationsDisabled) return
19691969
btn.style.animation = 'btn-zoom-fade-out 0.2s ease-out'
1970-
btn.onanimationend = () => {
1970+
if (env.browser.isFF) // end animation 0.08s early to avoid icon overgrowth
1971+
setTimeout(handleAnimationEnded, 0.12 *1000)
1972+
else btn.onanimationend = handleAnimationEnded
1973+
function handleAnimationEnded() {
19711974
Object.assign(btn.style, { opacity: '0', visibility: 'hidden', animation: '' }) // hide btn
19721975
setTimeout(() => // show btn after short delay
19731976
Object.assign(btn.style, { visibility: 'visible', opacity: '1' }), 135)

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.2.11
151+
// @version 2025.2.11.1
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -2546,7 +2546,10 @@
25462546
if (/about|settings|speak/.test(btn.id)) btn.onmouseup = () => { // add zoom/fade-out to select buttons
25472547
if (config.fgAnimationsDisabled) return
25482548
btn.style.animation = 'btn-zoom-fade-out 0.2s ease-out'
2549-
btn.onanimationend = () => {
2549+
if (env.browser.isFF) // end animation 0.08s early to avoid icon overgrowth
2550+
setTimeout(handleAnimationEnded, 0.12 *1000)
2551+
else btn.onanimationend = handleAnimationEnded
2552+
function handleAnimationEnded() {
25502553
Object.assign(btn.style, { opacity: '0', visibility: 'hidden', animation: '' }) // hide btn
25512554
setTimeout(() => // show btn after short delay
25522555
Object.assign(btn.style, { visibility: 'visible', opacity: '1' }), 135)

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.2.11
151+
// @version 2025.2.11.1
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -2549,7 +2549,10 @@
25492549
if (/about|settings|speak/.test(btn.id)) btn.onmouseup = () => { // add zoom/fade-out to select buttons
25502550
if (config.fgAnimationsDisabled) return
25512551
btn.style.animation = 'btn-zoom-fade-out 0.2s ease-out'
2552-
btn.onanimationend = () => {
2552+
if (env.browser.isFF) // end animation 0.08s early to avoid icon overgrowth
2553+
setTimeout(handleAnimationEnded, 0.12 *1000)
2554+
else btn.onanimationend = handleAnimationEnded
2555+
function handleAnimationEnded() {
25532556
Object.assign(btn.style, { opacity: '0', visibility: 'hidden', animation: '' }) // hide btn
25542557
setTimeout(() => // show btn after short delay
25552558
Object.assign(btn.style, { visibility: 'visible', opacity: '1' }), 135)

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 5 additions & 2 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.2.11
152+
// @version 2025.2.11.1
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
@@ -2711,7 +2711,10 @@
27112711
if (/about|settings|speak/.test(btn.id)) btn.onmouseup = () => { // add zoom/fade-out to select buttons
27122712
if (config.fgAnimationsDisabled) return
27132713
btn.style.animation = 'btn-zoom-fade-out 0.2s ease-out'
2714-
btn.onanimationend = () => {
2714+
if (env.browser.isFF) // end animation 0.08s early to avoid icon overgrowth
2715+
setTimeout(handleAnimationEnded, 0.12 *1000)
2716+
else btn.onanimationend = handleAnimationEnded
2717+
function handleAnimationEnded() {
27152718
Object.assign(btn.style, { opacity: '0', visibility: 'hidden', animation: '' }) // hide btn
27162719
setTimeout(() => // show btn after short delay
27172720
Object.assign(btn.style, { visibility: 'visible', opacity: '1' }), 135)

0 commit comments

Comments
 (0)