Skip to content

Commit ee2e349

Browse files
committed
Lowered reply corner button tooltips when Font Size slider open
1 parent 9a1256c commit ee2e349

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 5 additions & 4 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.4.7
6+
// @version 2025.2.4.8
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
@@ -2382,11 +2382,12 @@
23822382
: btnType == 'shuffle' ? app.msgs.tooltip_askRandQuestion : '' )
23832383

23842384
// Update position
2385-
const elems = { appDiv, btn, tooltipDiv },
2386-
rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key].getBoundingClientRect())
2385+
const elems = { appDiv, btn, tooltipDiv, fsSlider: appDiv.querySelector('[id*=font-size-slider]') },
2386+
rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key]?.getBoundingClientRect())
23872387
tooltipDiv.style.top = `${
23882388
appHeaderBtnTypes.includes(btnType) ? -22
2389-
: replyCornerBtnTypes.includes(btnType) && !event.currentTarget.closest('code') ? 38
2389+
: replyCornerBtnTypes.includes(btnType) && !event.currentTarget.closest('code') ?
2390+
38 + ( rects.fsSlider?.height > 0 ? rects.fsSlider.height -18 : 0 )
23902391
: rects.btn.top - rects.appDiv.top -36 - ( event.currentTarget.closest('code') ? 7 : 0 )
23912392
}px`
23922393
tooltipDiv.style.right = `${

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 5 additions & 4 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.4.7
151+
// @version 2025.2.4.8
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
@@ -3066,11 +3066,12 @@
30663066
: btnType == 'shuffle' ? app.msgs.tooltip_askRandQuestion : '' )
30673067

30683068
// Update position
3069-
const elems = { appDiv, btn, tooltipDiv },
3070-
rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key].getBoundingClientRect())
3069+
const elems = { appDiv, btn, tooltipDiv, fsSlider: appDiv.querySelector('[id*=font-size-slider]') },
3070+
rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key]?.getBoundingClientRect())
30713071
tooltipDiv.style.top = `${
30723072
appHeaderBtnTypes.includes(btnType) ? -13
3073-
: replyCornerBtnTypes.includes(btnType) && !event.currentTarget.closest('code') ? 46
3073+
: replyCornerBtnTypes.includes(btnType) && !event.currentTarget.closest('code') ?
3074+
46 + ( rects.fsSlider?.height > 0 ? rects.fsSlider.height -16 : 0 )
30743075
: rects.btn.top - rects.appDiv.top -36 - ( event.currentTarget.closest('code') ? 4 : 0 )
30753076
}px`
30763077
tooltipDiv.style.right = `${

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 5 additions & 4 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.4.6
151+
// @version 2025.2.4.7
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
@@ -3069,11 +3069,12 @@
30693069
: btnType == 'shuffle' ? app.msgs.tooltip_askRandQuestion : '' )
30703070

30713071
// Update position
3072-
const elems = { appDiv, btn, tooltipDiv },
3073-
rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key].getBoundingClientRect())
3072+
const elems = { appDiv, btn, tooltipDiv, fsSlider: appDiv.querySelector('[id*=font-size-slider]') },
3073+
rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key]?.getBoundingClientRect())
30743074
tooltipDiv.style.top = `${
30753075
appHeaderBtnTypes.includes(btnType) ? -17
3076-
: replyCornerBtnTypes.includes(btnType) && !event.currentTarget.closest('code') ? 45
3076+
: replyCornerBtnTypes.includes(btnType) && !event.currentTarget.closest('code') ?
3077+
45 + ( rects.fsSlider?.height > 0 ? rects.fsSlider.height -18 : 0 )
30773078
: rects.btn.top - rects.appDiv.top -36 - ( event.currentTarget.closest('code') ? 5 : 0 )
30783079
}px`
30793080
tooltipDiv.style.right = `${

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 5 additions & 4 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.4.7
152+
// @version 2025.2.4.8
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
@@ -3238,11 +3238,12 @@
32383238
: btnType == 'shuffle' ? app.msgs.tooltip_feelingLucky : '' )
32393239

32403240
// Update position
3241-
const elems = { appDiv, btn, tooltipDiv },
3242-
rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key].getBoundingClientRect())
3241+
const elems = { appDiv, btn, tooltipDiv, fsSlider: appDiv.querySelector('[id*=font-size-slider]') },
3242+
rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key]?.getBoundingClientRect())
32433243
tooltipDiv.style.top = `${
32443244
appHeaderBtnTypes.includes(btnType) ? -14
3245-
: replyCornerBtnTypes.includes(btnType) && !event.currentTarget.closest('code') ? 43
3245+
: replyCornerBtnTypes.includes(btnType) && !event.currentTarget.closest('code') ?
3246+
43 + ( rects.fsSlider?.height > 0 ? rects.fsSlider.height -16 : 0 )
32463247
: rects.btn.top - rects.appDiv.top -35 - ( event.currentTarget.closest('code') ? 6 : 0 )
32473248
}px`
32483249
tooltipDiv.style.right = `${

0 commit comments

Comments
 (0)