|
235 | 235 | // @description:zu Thuthukisa iChatGPT ngemodi zesikrini ezibanzi/egcwele/ephezulu + imodi yokuvimbela i-spam. Futhi isebenza ku-perplexity.ai + poe.com!
|
236 | 236 | // @author Adam Lui
|
237 | 237 | // @namespace https://github.com/adamlui
|
238 |
| -// @version 2025.2.25.4 |
| 238 | +// @version 2025.2.26 |
239 | 239 | // @license MIT
|
240 | 240 | // @icon https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?v=844b16e
|
241 | 241 | // @icon64 https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?v=844b16e
|
|
257 | 257 | // @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.7.1/dist/chatgpt.min.js#sha256-uv1k2VxGy+ri3+2C+D/kTYSBCom5JzvrNCLxzItgD6M=
|
258 | 258 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@2b47eb2/chromium/extension/lib/chatbar.js#sha256-SSJGd5Kd+6Oq8IctL8A/DVzSaZXymgq969eHpdTyLZs=
|
259 | 259 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@58c2d29/chromium/extension/lib/dom.js#sha256-WXPxvMnJU6LGvINaENBbmvGXTAcAlXlBkyGwIDGXiC4=
|
260 |
| -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@2b47eb2/chromium/extension/lib/settings.js#sha256-vljMA+FSDq32OeQbu/hUcx3yqEJWnxJiz3NFC+JYfaE= |
| 260 | +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@d392dfb/chromium/extension/lib/settings.js#sha256-4sWEls1YYZYb4u+Ch+Ihp9k1D5rhkeHBZG5HmXocHlo= |
261 | 261 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@97c86fb/chromium/extension/lib/ui.js#sha256-Sp/JEpkGx5SO7TY5pkdirv+FUtTiUurrjcHVtwv+/u8=
|
262 | 262 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@d1e9f45/chromium/extension/components/buttons.js#sha256-AVGHLGzgiWvYtt0q04e5PtVWG4OIplqJAwD3VAsFkGc=
|
263 | 263 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@2d8a888/chromium/extension/components/modals.js#sha256-Gi04K42Nwcnq8wBeAPoYE8jnWtBWBdD4nUtQvVuH3q0=
|
|
466 | 466 | // Create toggles for available features if script not disabled via Site Settings
|
467 | 467 | if (!config[`${env.site}Disabled`]) Object.keys(settings.controls).forEach(key => {
|
468 | 468 | if (sites[env.site].availFeatures.includes(key)) {
|
469 |
| - const settingIsEnabled = config[key] ^ key.includes('Disabled') |
470 |
| - const menuLabel = `${ settings.controls[key].symbol || this.state.symbols[+settingIsEnabled] } ` |
| 469 | + const menuLabel = `${ settings.controls[key].symbol |
| 470 | + || this.state.symbols[+settings.isEnabled(key)] } ` |
471 | 471 | + settings.controls[key].label
|
472 |
| - + this.state.separator + this.state.words[+settingIsEnabled] |
| 472 | + + this.state.separator + this.state.words[+settings.isEnabled(key)] |
473 | 473 | this.ids.push(GM_registerMenuCommand(menuLabel, () => {
|
474 | 474 | settings.save(key, !config[key]) ; sync.configToUI({ updatedKey: key })
|
475 | 475 | notify(`${settings.controls[key].label}: ${
|
|
0 commit comments