Skip to content

Commit 5012b6d

Browse files
committed
Improved formatting of feedback.notify() calls
1 parent 754aedc commit 5012b6d

File tree

4 files changed

+47
-33
lines changed

4 files changed

+47
-33
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 8 additions & 6 deletions
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.9.29
6+
// @version 2025.9.30
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
@@ -723,7 +723,7 @@
723723
} else { // functional toggle
724724
settings.save('streamingDisabled', !config.streamingDisabled)
725725
feedback.notify(`${settings.controls.streamingDisabled.label} ${
726-
menus.toolbar.state.words[+!config.streamingDisabled]}`)
726+
menus.toolbar.state.words[+!config.streamingDisabled]}`)
727727
}
728728
}
729729
}
@@ -1513,10 +1513,12 @@
15131513
function schemeNotify(scheme) {
15141514

15151515
// Show notification
1516-
feedback.notify(`${app.msgs.menuLabel_colorScheme}: `
1517-
+ ( scheme == 'light' ? app.msgs.scheme_light || 'Light'
1518-
: scheme == 'dark' ? app.msgs.scheme_dark || 'Dark'
1519-
: app.msgs.menuLabel_auto ).toUpperCase() )
1516+
feedback.notify(`${app.msgs.menuLabel_colorScheme}: ${(
1517+
scheme == 'light' ? app.msgs.scheme_light || 'Light'
1518+
: scheme == 'dark' ? app.msgs.scheme_dark || 'Dark'
1519+
: app.msgs.menuLabel_auto).toUpperCase()
1520+
}`)
1521+
15201522
// Append scheme icon
15211523
const notifs = document.querySelectorAll('.chatgpt-notif'), notif = notifs[notifs.length -1]
15221524
notif.append(icons.create({

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 13 additions & 9 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.9.29.1
151+
// @version 2025.9.30
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2
154154
// @icon64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2
@@ -1150,9 +1150,11 @@
11501150

11511151
// Notify of mode change
11521152
if (mode == 'sticky' && prevStickyState == config.stickySidebar) return
1153-
feedback.notify(`${ app.msgs[`menuLabel_${ mode }Sidebar`] || log.toTitleCase(mode) + ' Sidebar' } ${
1154-
menus.toolbar.state.words[+config[configKeyName]]}`,
1155-
undefined, anchorModeDisabled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown
1153+
feedback.notify(
1154+
`${ app.msgs[`menuLabel_${ mode }Sidebar`] || log.toTitleCase(mode) + ' Sidebar' } ${
1155+
menus.toolbar.state.words[+config[configKeyName]]}`,
1156+
undefined, anchorModeDisabled ? 2.75 : undefined // +1s duration if conflicting mode notif shown
1157+
)
11561158
},
11571159

11581160
streaming() {
@@ -1184,7 +1186,7 @@
11841186
} else { // functional toggle
11851187
settings.save('streamingDisabled', !config.streamingDisabled)
11861188
feedback.notify(`${settings.controls.streamingDisabled.label} ${
1187-
menus.toolbar.state.words[+!config.streamingDisabled]}`)
1189+
menus.toolbar.state.words[+!config.streamingDisabled]}`)
11881190
}
11891191
}
11901192
}
@@ -2190,10 +2192,12 @@
21902192
function schemeNotify(scheme) {
21912193

21922194
// Show notification
2193-
feedback.notify(`${app.msgs.menuLabel_colorScheme}: `
2194-
+ ( scheme == 'light' ? app.msgs.scheme_light || 'Light'
2195-
: scheme == 'dark' ? app.msgs.scheme_dark || 'Dark'
2196-
: app.msgs.menuLabel_auto ).toUpperCase() )
2195+
feedback.notify(`${app.msgs.menuLabel_colorScheme}: ${(
2196+
scheme == 'light' ? app.msgs.scheme_light || 'Light'
2197+
: scheme == 'dark' ? app.msgs.scheme_dark || 'Dark'
2198+
: app.msgs.menuLabel_auto).toUpperCase()
2199+
}`)
2200+
21972201
// Append scheme icon
21982202
const notifs = document.querySelectorAll('.chatgpt-notif'), notif = notifs[notifs.length -1]
21992203
notif.append(icons.create({

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 13 additions & 9 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.9.29.1
151+
// @version 2025.9.30
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -1160,9 +1160,11 @@
11601160

11611161
// Notify of mode change
11621162
if (mode == 'sticky' && prevStickyState == config.stickySidebar) return
1163-
feedback.notify(`${ app.msgs[`menuLabel_${ mode }Sidebar`] || log.toTitleCase(mode) + ' Sidebar' } ${
1164-
menus.toolbar.state.words[+config[configKeyName]]}`,
1165-
undefined, anchorModeDisabled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown
1163+
feedback.notify(
1164+
`${ app.msgs[`menuLabel_${ mode }Sidebar`] || log.toTitleCase(mode) + ' Sidebar' } ${
1165+
menus.toolbar.state.words[+config[configKeyName]]}`,
1166+
undefined, anchorModeDisabled ? 2.75 : undefined // +1s duration if conflicting mode notif shown
1167+
)
11661168
},
11671169

11681170
streaming() {
@@ -1194,7 +1196,7 @@
11941196
} else { // functional toggle
11951197
settings.save('streamingDisabled', !config.streamingDisabled)
11961198
feedback.notify(`${settings.controls.streamingDisabled.label} ${
1197-
menus.toolbar.state.words[+!config.streamingDisabled]}`)
1199+
menus.toolbar.state.words[+!config.streamingDisabled]}`)
11981200
}
11991201
}
12001202
}
@@ -2195,10 +2197,12 @@
21952197
function schemeNotify(scheme) {
21962198

21972199
// Show notification
2198-
feedback.notify(`${app.msgs.menuLabel_colorScheme}: `
2199-
+ ( scheme == 'light' ? app.msgs.scheme_light || 'Light'
2200-
: scheme == 'dark' ? app.msgs.scheme_dark || 'Dark'
2201-
: app.msgs.menuLabel_auto ).toUpperCase() )
2200+
feedback.notify(`${app.msgs.menuLabel_colorScheme}: ${(
2201+
scheme == 'light' ? app.msgs.scheme_light || 'Light'
2202+
: scheme == 'dark' ? app.msgs.scheme_dark || 'Dark'
2203+
: app.msgs.menuLabel_auto).toUpperCase()
2204+
}`)
2205+
22022206
// Append scheme icon
22032207
const notifs = document.querySelectorAll('.chatgpt-notif'), notif = notifs[notifs.length -1]
22042208
notif.append(icons.create({

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 13 additions & 9 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.9.29.2
152+
// @version 2025.9.30
153153
// @license MIT
154154
// @icon data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22170.667%22%20height=%22170.667%22%3E%3Cstyle%3E:root%7B--fill:%23000%7D@media%20(prefers-color-scheme:dark)%7B:root%7B--fill:%23fff%7D%7D%3C/style%3E%3Cpath%20fill=%22var(--fill)%22%20d=%22M82.346%20159.79c-18.113-1.815-31.78-9.013-45.921-24.184C23.197%20121.416%2017.333%20106.18%2017.333%2086c0-21.982%205.984-36.245%2021.87-52.131C55.33%2017.74%2069.27%2011.867%2091.416%2011.867c17.574%200%2029.679%203.924%2044.309%2014.363l8.57%206.116-8.705%208.705-8.704%208.704-4.288-3.608c-13.91-11.704-35.932-14.167-53.085-5.939-3.4%201.631-9.833%206.601-14.297%2011.045C44.669%2061.753%2040.95%2070.811%2040.95%2086c0%2014.342%203.594%2023.555%2013.26%2033.995%2019.088%2020.618%2048.46%2022.539%2070.457%204.608l5.333-4.348%2011.333%203.844c6.234%202.114%2011.54%203.857%2011.791%203.873.252.015-2.037%203.008-5.087%206.65-6.343%207.577-20.148%2017.217-30.493%2021.295-8.764%203.454-23.358%205.06-35.198%203.873zM92%2086.333V74.667h60.648l-11.41%2011.41-11.411%2011.41-18.914.257L92%2098z%22/%3E%3C/svg%3E
155155
// @icon64 data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22170.667%22%20height=%22170.667%22%3E%3Cstyle%3E:root%7B--fill:%23000%7D@media%20(prefers-color-scheme:dark)%7B:root%7B--fill:%23fff%7D%7D%3C/style%3E%3Cpath%20fill=%22var(--fill)%22%20d=%22M82.346%20159.79c-18.113-1.815-31.78-9.013-45.921-24.184C23.197%20121.416%2017.333%20106.18%2017.333%2086c0-21.982%205.984-36.245%2021.87-52.131C55.33%2017.74%2069.27%2011.867%2091.416%2011.867c17.574%200%2029.679%203.924%2044.309%2014.363l8.57%206.116-8.705%208.705-8.704%208.704-4.288-3.608c-13.91-11.704-35.932-14.167-53.085-5.939-3.4%201.631-9.833%206.601-14.297%2011.045C44.669%2061.753%2040.95%2070.811%2040.95%2086c0%2014.342%203.594%2023.555%2013.26%2033.995%2019.088%2020.618%2048.46%2022.539%2070.457%204.608l5.333-4.348%2011.333%203.844c6.234%202.114%2011.54%203.857%2011.791%203.873.252.015-2.037%203.008-5.087%206.65-6.343%207.577-20.148%2017.217-30.493%2021.295-8.764%203.454-23.358%205.06-35.198%203.873zM92%2086.333V74.667h60.648l-11.41%2011.41-11.411%2011.41-18.914.257L92%2098z%22/%3E%3C/svg%3E
@@ -1367,9 +1367,11 @@
13671367

13681368
// Notify of mode change
13691369
if (mode == 'sticky' && prevStickyState == config.stickySidebar) return
1370-
feedback.notify(`${ app.msgs[`menuLabel_${ mode }Sidebar`] || log.toTitleCase(mode) + ' Sidebar' } ${
1371-
menus.toolbar.state.words[+config[configKeyName]]}`,
1372-
undefined, anchorModeDisabled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown
1370+
feedback.notify(
1371+
`${ app.msgs[`menuLabel_${ mode }Sidebar`] || log.toTitleCase(mode) + ' Sidebar' } ${
1372+
menus.toolbar.state.words[+config[configKeyName]]}`,
1373+
undefined, anchorModeDisabled ? 2.75 : undefined // +1s duration if conflicting mode notif shown
1374+
)
13731375
},
13741376

13751377
streaming() {
@@ -1401,7 +1403,7 @@
14011403
} else { // functional toggle
14021404
settings.save('streamingDisabled', !config.streamingDisabled)
14031405
feedback.notify(`${settings.controls.streamingDisabled.label} ${
1404-
menus.toolbar.state.words[+!config.streamingDisabled]}`)
1406+
menus.toolbar.state.words[+!config.streamingDisabled]}`)
14051407
}
14061408
}
14071409
}
@@ -2379,10 +2381,12 @@
23792381
function schemeNotify(scheme) {
23802382

23812383
// Show notification
2382-
feedback.notify(`${app.msgs.menuLabel_colorScheme}: `
2383-
+ ( scheme == 'light' ? app.msgs.scheme_light || 'Light'
2384-
: scheme == 'dark' ? app.msgs.scheme_dark || 'Dark'
2385-
: app.msgs.menuLabel_auto ).toUpperCase() )
2384+
feedback.notify(`${app.msgs.menuLabel_colorScheme}: ${(
2385+
scheme == 'light' ? app.msgs.scheme_light || 'Light'
2386+
: scheme == 'dark' ? app.msgs.scheme_dark || 'Dark'
2387+
: app.msgs.menuLabel_auto).toUpperCase()
2388+
}`)
2389+
23862390
// Append scheme icon
23872391
const notifs = document.querySelectorAll('.chatgpt-notif'), notif = notifs[notifs.length -1]
23882392
notif.append(icons.create({

0 commit comments

Comments
 (0)