|
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.4.1.5 |
| 238 | +// @version 2025.4.2 |
239 | 239 | // @license MIT |
240 | 240 | // @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@844b16e/assets/images/icons/widescreen-robot-emoji/icon48.png |
241 | 241 | // @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@844b16e/assets/images/icons/widescreen-robot-emoji/icon64.png |
|
453 | 453 |
|
454 | 454 | refresh() { |
455 | 455 | if (typeof GM_unregisterMenuCommand == 'undefined') return |
456 | | - for (const id of this.ids) { GM_unregisterMenuCommand(id) } this.register() |
| 456 | + for (const id of this.entryIDs) { GM_unregisterMenuCommand(id) } this.register() |
457 | 457 | }, |
458 | 458 |
|
459 | 459 | register() { |
460 | 460 |
|
461 | 461 | // Show "Disabled (extension active)" |
462 | | - this.ids = env.extensionActive ? [ |
| 462 | + this.entryIDs = env.extensionActive ? [ |
463 | 463 | GM_registerMenuCommand(`${this.state.symbols[0]} ${ |
464 | 464 | toTitleCase(app.msgs.state_disabled)} (${app.msgs.menuLabel_extensionActive})`, |
465 | 465 | () => modals.open('about'), env.scriptManager.supportsTooltips ? { title: ' ' } : undefined ) |
|
489 | 489 | // Add Site Settings |
490 | 490 | if (!env.extensionActive) { |
491 | 491 | const siteSettingsLabel = `🌐 ${settings.categories.siteSettings.label}` |
492 | | - this.ids.push(GM_registerMenuCommand(siteSettingsLabel, () => { |
| 492 | + this.entryIDs.push(GM_registerMenuCommand(siteSettingsLabel, () => { |
493 | 493 |
|
494 | 494 | // Show modal |
495 | 495 | const siteSettingsModal = modals.alert(siteSettingsLabel, |
|
590 | 590 | // Add About/Donate entries |
591 | 591 | ['about', 'donate'].forEach(entryType => { |
592 | 592 | if (entryType === 'donate' && env.extensionActive) return |
593 | | - this.ids.push(GM_registerMenuCommand( |
| 593 | + this.entryIDs.push(GM_registerMenuCommand( |
594 | 594 | `${ entryType == 'about' ? '💡' : '💖' }` |
595 | 595 | + ` ${app.msgs[`menuLabel_${entryType}`]} ${ entryType == 'about' ? app.msgs.appName : '' }`, |
596 | 596 | () => entryType == 'about' ? modals.open(entryType) : modals.safeWinOpen(app.urls.donate.gitHub), |
|
0 commit comments