Skip to content

Commit 08e122f

Browse files
committed
Expanded hover area for API beacon to trigger selector menu, moved inline styles to app.styles
1 parent 61aa8be commit 08e122f

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

amazongpt/greasemonkey/amazongpt.user.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.5.9.2
6+
// @version 2025.5.9.3
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -1452,7 +1452,7 @@
14521452
|| menu.preferredDirection == 'down' && !appIsTooLow ? 'down' : 'up'
14531453
Object.assign(menu.div.style, {
14541454
top: `${ rects.toggleBtn.top - rects.appDiv.top +(
1455-
pointDirection == 'down' ? 24.5 : -rects.hoverMenu.height -13 )}px`,
1455+
pointDirection == 'down' ? 30.5 : -rects.hoverMenu.height -13 )}px`,
14561456
right: `${ rects.appDiv.right - event.clientX - menu.div.offsetWidth
14571457
/ ( pointDirection == 'up' ? /* center */ 2 : /* leftish-aligned */ 1.25 )}px`,
14581458
opacity: 1
@@ -2061,6 +2061,7 @@
20612061
stroke: var(--reply-header-fg-color-${env.ui.app.scheme}-scheme) }
20622062
#${app.slug} .reply-header-text { flex-grow: 1 ; font-size: 12px ; font-family: monospace }
20632063
#${app.slug} .reply-header-btns { margin: 7.5px -5px 0 }
2064+
#${app.slug}-api-btn { cursor: pointer ; padding: 5px ; margin: 0 -4px 0 -7px }
20642065
#${app.slug} .reply-pre {
20652066
font-size: ${config.fontSize}px ; white-space: pre-wrap ; min-width: 0 ;
20662067
line-height: ${ config.fontSize * config.lineHeightRatio }px ; overscroll-behavior: contain ;
@@ -3471,7 +3472,7 @@
34713472
if (!show.reply.updatedAPIinHeader) {
34723473
show.reply.updatedAPIinHeader = true
34733474
const preHeaderLabel = appDiv.querySelector('.reply-header-text'),
3474-
apiBeacon = dom.create.elem('span', { id: `${app.slug}-api-btn`, style: 'cursor: pointer' })
3475+
apiBeacon = dom.create.elem('span', { id: `${app.slug}-api-btn` })
34753476
apiBeacon.textContent = '⦿'
34763477
apiBeacon.onmouseenter = apiBeacon.onmouseleave = apiBeacon.onclick = hoverMenus.toggle
34773478
apiBeacon.style.pointerEvents = config.proxyAPIenabled ? '' : 'none'

bravegpt/greasemonkey/bravegpt.user.js

+4-3
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.5.9.2
151+
// @version 2025.5.9.3
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
@@ -1674,7 +1674,7 @@
16741674
|| menu.preferredDirection == 'down' && !appIsTooLow ? 'down' : 'up'
16751675
Object.assign(menu.div.style, {
16761676
top: `${ rects.toggleBtn.top - rects.appDiv.top +(
1677-
pointDirection == 'down' ? 24.5 : -rects.hoverMenu.height -13 )}px`,
1677+
pointDirection == 'down' ? 30.5 : -rects.hoverMenu.height -13 )}px`,
16781678
right: `${ rects.appDiv.right - event.clientX - menu.div.offsetWidth
16791679
/ ( pointDirection == 'up' ? /* center */ 2 : /* leftish-aligned */ 1.25 )}px`,
16801680
opacity: 1
@@ -2442,6 +2442,7 @@
24422442
stroke: var(--reply-header-fg-color-${env.ui.app.scheme}-scheme) }
24432443
#${app.slug} .reply-header-text { flex-grow: 1 ; font-size: 12px ; font-family: monospace }
24442444
#${app.slug} .reply-header-btns { margin: 10.5px -5px 0 }
2445+
#${app.slug}-api-btn { cursor: pointer ; padding: 5px ; margin: 0 -4px 0 -7px }
24452446
#${app.slug} .reply-pre {
24462447
font-size: ${config.fontSize}px ; white-space: pre-wrap ;
24472448
font-family: Consolas, Menlo, Monaco, monospace ;
@@ -4350,7 +4351,7 @@
43504351
if (!show.reply.updatedAPIinHeader) {
43514352
show.reply.updatedAPIinHeader = true
43524353
const preHeaderLabel = appDiv.querySelector('.reply-header-text'),
4353-
apiBeacon = dom.create.elem('span', { id: `${app.slug}-api-btn`, style: 'cursor: pointer' })
4354+
apiBeacon = dom.create.elem('span', { id: `${app.slug}-api-btn` })
43544355
apiBeacon.textContent = '⦿'
43554356
apiBeacon.onmouseenter = apiBeacon.onmouseleave = apiBeacon.onclick = hoverMenus.toggle
43564357
apiBeacon.style.pointerEvents = config.proxyAPIenabled ? '' : 'none'

duckduckgpt/greasemonkey/duckduckgpt.user.js

+4-3
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.5.9.2
151+
// @version 2025.5.9.3
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
@@ -1674,7 +1674,7 @@
16741674
|| menu.preferredDirection == 'down' && !appIsTooLow ? 'down' : 'up'
16751675
Object.assign(menu.div.style, {
16761676
top: `${ rects.toggleBtn.top - rects.appDiv.top +(
1677-
pointDirection == 'down' ? 24.5 : -rects.hoverMenu.height -13 )}px`,
1677+
pointDirection == 'down' ? 30.5 : -rects.hoverMenu.height -13 )}px`,
16781678
right: `${ rects.appDiv.right - event.clientX - menu.div.offsetWidth
16791679
/ ( pointDirection == 'up' ? /* center */ 2 : /* leftish-aligned */ 1.25 )}px`,
16801680
opacity: 1
@@ -2436,6 +2436,7 @@
24362436
stroke: var(--reply-header-fg-color-${env.ui.app.scheme}-scheme) }
24372437
#${app.slug} .reply-header-text { flex-grow: 1 ; font-size: 12px ; font-family: monospace }
24382438
#${app.slug} .reply-header-btns { margin: 7.5px -5px 0 }
2439+
#${app.slug}-api-btn { cursor: pointer ; padding: 5px ; margin: 0 -4px 0 -7px }
24392440
#${app.slug} .reply-pre {
24402441
font-size: ${config.fontSize}px ; white-space: pre-wrap ; min-width: 0 ;
24412442
line-height: ${ config.fontSize * config.lineHeightRatio }px ; overscroll-behavior: contain ;
@@ -4342,7 +4343,7 @@
43424343
if (!show.reply.updatedAPIinHeader) {
43434344
show.reply.updatedAPIinHeader = true
43444345
const preHeaderLabel = appDiv.querySelector('.reply-header-text'),
4345-
apiBeacon = dom.create.elem('span', { id: `${app.slug}-api-btn`, style: 'cursor: pointer' })
4346+
apiBeacon = dom.create.elem('span', { id: `${app.slug}-api-btn` })
43464347
apiBeacon.textContent = '⦿'
43474348
apiBeacon.onmouseenter = apiBeacon.onmouseleave = apiBeacon.onclick = hoverMenus.toggle
43484349
apiBeacon.style.pointerEvents = config.proxyAPIenabled ? '' : 'none'

googlegpt/greasemonkey/googlegpt.user.js

+4-3
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.5.9.2
152+
// @version 2025.5.9.3
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
@@ -1827,7 +1827,7 @@
18271827
|| menu.preferredDirection == 'down' && !appIsTooLow ? 'down' : 'up'
18281828
Object.assign(menu.div.style, {
18291829
top: `${ rects.toggleBtn.top - rects.appDiv.top +(
1830-
pointDirection == 'down' ? 24.5 : -rects.hoverMenu.height -13 )}px`,
1830+
pointDirection == 'down' ? 30.5 : -rects.hoverMenu.height -13 )}px`,
18311831
right: `${ rects.appDiv.right - event.clientX - menu.div.offsetWidth
18321832
/ ( pointDirection == 'up' ? /* center */ 2 : /* leftish-aligned */ 1.25 )}px`,
18331833
opacity: 1
@@ -2613,6 +2613,7 @@
26132613
stroke: var(--reply-header-fg-color-${env.ui.app.scheme}-scheme) }
26142614
#${app.slug} .reply-header-text { flex-grow: 1 ; font-size: 12px ; font-family: monospace }
26152615
#${app.slug} .reply-header-btns { margin: 3.5px -5px 0 }
2616+
#${app.slug}-api-btn { cursor: pointer ; padding: 5px ; margin: 0 -4px 0 -7px }
26162617
#${app.slug} .reply-pre {
26172618
font-size: ${config.fontSize}px ; white-space: pre-wrap ; min-width: 0 ;
26182619
line-height: ${ config.fontSize * config.lineHeightRatio }px ; overscroll-behavior: contain ;
@@ -4541,7 +4542,7 @@
45414542
if (!show.reply.updatedAPIinHeader) {
45424543
show.reply.updatedAPIinHeader = true
45434544
const preHeaderLabel = appDiv.querySelector('.reply-header-text'),
4544-
apiBeacon = dom.create.elem('span', { id: `${app.slug}-api-btn`, style: 'cursor: pointer' })
4545+
apiBeacon = dom.create.elem('span', { id: `${app.slug}-api-btn` })
45454546
apiBeacon.textContent = '⦿'
45464547
apiBeacon.onmouseenter = apiBeacon.onmouseleave = apiBeacon.onclick = hoverMenus.toggle
45474548
apiBeacon.style.pointerEvents = config.proxyAPIenabled ? '' : 'none'

0 commit comments

Comments
 (0)