|
199 | 199 | // @description:zh-TW 從無所不知的 ChatGPT 生成無窮無盡的答案 (用任何語言!)
|
200 | 200 | // @author Adam Lui
|
201 | 201 | // @namespace https://github.com/adamlui
|
202 |
| -// @version 2025.4.1 |
| 202 | +// @version 2025.4.1.1 |
203 | 203 | // @license MIT
|
204 | 204 | // @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@8df6f33/assets/images/icons/infinity-symbol/circled/with-robot/icon48.png
|
205 | 205 | // @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@8df6f33/assets/images/icons/infinity-symbol/circled/with-robot/icon64.png
|
|
223 | 223 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@02523e3/chromium/extension/components/modals.js#sha256-ARDA7a8Td27PNs20OZ+OHFXqOBL2tbPFy2rQLcOWUpw=
|
224 | 224 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@1920a70/chromium/extension/components/toggles.js#sha256-NB7hi4nvjegGUAnedewXXiJYEeMELMNrn3pu2Ozp57w=
|
225 | 225 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@1ae4e33/chromium/extension/lib/dom.js#sha256-U+SUWAkqLIY6krdR2WPhVy5/f+cTV03n3F8b+Y+/Py0=
|
226 |
| -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@2ec25ce/chromium/extension/lib/settings.js#sha256-cyRP9w9Di8RjzNZSJeah3ILK7dx57598Rn4BZL/eiv0= |
| 226 | +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@0d11d9a/chromium/extension/lib/settings.js#sha256-6TUEuqq5UgRRL+9movbFf3eeTqWloP7Y4S04392BHso= |
227 | 227 | // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@6089211/chromium/extension/lib/ui.js#sha256-/szI0bDpLL1aVTrc29iyToff58VMfeM/lSyjHWTipt0=
|
228 | 228 | // @resource rpgCSS https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@727feff/assets/styles/rising-particles/dist/gray.min.css#sha256-48sEWzNUGUOP04ur52G5VOfGZPSnZQfrF3szUr4VaRs=
|
229 | 229 | // @resource rpwCSS https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@727feff/assets/styles/rising-particles/dist/white.min.css#sha256-6xBXczm7yM1MZ/v0o1KVFfJGehHk47KJjq8oTktH4KE=
|
|
410 | 410 | // ...or add settings entries
|
411 | 411 | : Object.keys(settings.controls).map(key => {
|
412 | 412 | const ctrlType = settings.controls[key].type
|
413 |
| - const menuLabel = `${ settings.controls[key].symbol |
414 |
| - || this.state.symbols[+settings.isEnabled(key)] } ` |
415 |
| - + settings.controls[key].label |
416 |
| - + ( ctrlType == 'toggle' ? this.state.separator |
417 |
| - + this.state.words[+settings.isEnabled(key)] |
418 |
| - : `— ${settings.controls[key].status}` ) |
| 413 | + const ctrlStatus = settings.controls[key].status |
| 414 | + const menuLabel = `${ |
| 415 | + settings.controls[key].symbol || this.state.symbols[+settings.typeIsEnabled(key)] } ${ |
| 416 | + settings.controls[key].label} ${ |
| 417 | + ctrlType == 'toggle' ? this.state.separator |
| 418 | + + this.state.words[+settings.typeIsEnabled(key)] |
| 419 | + : ctrlStatus ? `— ${ctrlStatus}` : '' }` |
419 | 420 | return GM_registerMenuCommand(menuLabel, () => {
|
420 | 421 | if (ctrlType == 'toggle') {
|
421 | 422 | settings.save(key, !config[key])
|
|
0 commit comments