|
148 | 148 | // @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!) |
149 | 149 | // @author KudoAI |
150 | 150 | // @namespace https://kudoai.com |
151 | | -// @version 2025.9.29.1 |
| 151 | +// @version 2025.9.30 |
152 | 152 | // @license MIT |
153 | 153 | // @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f |
154 | 154 | // @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f |
|
1160 | 1160 |
|
1161 | 1161 | // Notify of mode change |
1162 | 1162 | 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 | + ) |
1166 | 1168 | }, |
1167 | 1169 |
|
1168 | 1170 | streaming() { |
|
1194 | 1196 | } else { // functional toggle |
1195 | 1197 | settings.save('streamingDisabled', !config.streamingDisabled) |
1196 | 1198 | feedback.notify(`${settings.controls.streamingDisabled.label} ${ |
1197 | | - menus.toolbar.state.words[+!config.streamingDisabled]}`) |
| 1199 | + menus.toolbar.state.words[+!config.streamingDisabled]}`) |
1198 | 1200 | } |
1199 | 1201 | } |
1200 | 1202 | } |
|
2195 | 2197 | function schemeNotify(scheme) { |
2196 | 2198 |
|
2197 | 2199 | // 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 | + |
2202 | 2206 | // Append scheme icon |
2203 | 2207 | const notifs = document.querySelectorAll('.chatgpt-notif'), notif = notifs[notifs.length -1] |
2204 | 2208 | notif.append(icons.create({ |
|
0 commit comments