|
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.24.1 |
| 151 | +// @version 2025.9.28 |
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 |
|
1016 | 1016 | if (anchorToggle.checked != config.anchored) modals.settings.toggle.switch(anchorToggle) |
1017 | 1017 | } |
1018 | 1018 | feedback.notify(`${app.msgs.mode_anchor} ${menus.toolbar.state.words[+config.anchored]}`, |
1019 | | - null, sidebarModeToggled ? 2.75 : null) // +1s duration if conflicting mode notif shown |
| 1019 | + null, sidebarModeToggled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown |
1020 | 1020 | }, |
1021 | 1021 |
|
1022 | 1022 | animations(layer) { |
|
1046 | 1046 | `button[class*=standby]:has(svg.${ mode == 'get' ? 'send' : 'summarize' })`)?.click() |
1047 | 1047 | } |
1048 | 1048 | feedback.notify(`${settings.controls[modeKey].label} ${menus.toolbar.state.words[+config[modeKey]]}`, |
1049 | | - null, conflictingModeToggled ? 2.75 : null) // +1s duration if conflicting mode notif shown |
| 1049 | + null, conflictingModeToggled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown |
1050 | 1050 | if (modals.settings.get()) { // update visual state of Settings toggle |
1051 | 1051 | const modeToggle = document.querySelector(`[id*=${modeKey}] input`) |
1052 | 1052 | if (modeToggle.checked != config[modeKey]) modals.settings.toggle.switch(modeToggle) |
|
1076 | 1076 | ['get', 'summarize'].forEach(mode => { |
1077 | 1077 | if (config[`auto${log.toTitleCase(mode)}`]) { toggle.autoGen(mode) ; autoGenToggled = true }}) |
1078 | 1078 | feedback.notify(`${settings.controls[modeKey].label} ${menus.toolbar.state.words[+config[modeKey]]}`, |
1079 | | - null, autoGenToggled ? 2.75 : null) // +1s duration if conflicting mode notif shown) |
| 1079 | + null, autoGenToggled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown) |
1080 | 1080 | if (modals.settings.get()) { // update visual state of Settings toggle |
1081 | 1081 | const modeToggle = document.querySelector(`[id*=${modeKey}] input`) |
1082 | 1082 | if (modeToggle.checked != config[modeKey]) modals.settings.toggle.switch(modeToggle) |
|
1162 | 1162 | if (mode == 'sticky' && prevStickyState == config.stickySidebar) return |
1163 | 1163 | feedback.notify(`${ app.msgs[`menuLabel_${ mode }Sidebar`] || log.toTitleCase(mode) + ' Sidebar' } ${ |
1164 | 1164 | menus.toolbar.state.words[+config[configKeyName]]}`, |
1165 | | - null, anchorModeDisabled ? 2.75 : null) // +1s duration if conflicting mode notif shown |
| 1165 | + null, anchorModeDisabled ? 2.75 : undefined) // +1s duration if conflicting mode notif shown |
1166 | 1166 | }, |
1167 | 1167 |
|
1168 | 1168 | streaming() { |
|
0 commit comments