Skip to content

Commit ed9fab8

Browse files
committed
Bumped JS resources, refactored menuLabel init to align w/ my other userscripts for easier maintenance ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-continue]
1 parent 2902f24 commit ed9fab8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

chatgpt/chatgpt-auto-continue/chatgpt-auto-continue.user.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
// @description:zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu
220220
// @author Adam Lui
221221
// @namespace https://github.com/adamlui
222-
// @version 2025.4.1
222+
// @version 2025.4.1.1
223223
// @license MIT
224224
// @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@a8c9387/assets/images/icons/continue-symbol/black/icon48.png
225225
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@a8c9387/assets/images/icons/continue-symbol/black/icon64.png
@@ -230,7 +230,7 @@
230230
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.7.1/dist/chatgpt.min.js#sha256-uv1k2VxGy+ri3+2C+D/kTYSBCom5JzvrNCLxzItgD6M=
231231
// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@ab099a3/chromium/extension/components/modals.js#sha256-NGaCScpnN0140ej6eFh/+Yorx6VLea1uNoZ5kY5cX4Q=
232232
// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@762a364/chromium/extension/lib/dom.js#sha256-U+SUWAkqLIY6krdR2WPhVy5/f+cTV03n3F8b+Y+/Py0=
233-
// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@c2aac90/chromium/extension/lib/settings.js#sha256-TuYeKA5lzdAQdgsZgR7TjlUamABhWwdfVgZsPM0+IJM=
233+
// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@9f4e5b1/chromium/extension/lib/settings.js#sha256-lwjhc3z5/1zCooHxCyaf+BlVJqkBwf26kLfkddHWiLs=
234234
// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@80e800c/chromium/extension/lib/ui.js#sha256-/szI0bDpLL1aVTrc29iyToff58VMfeM/lSyjHWTipt0=
235235
// @resource rpgCSS https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@727feff/assets/styles/rising-particles/dist/gray.min.css#sha256-48sEWzNUGUOP04ur52G5VOfGZPSnZQfrF3szUr4VaRs=
236236
// @resource rpwCSS https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@727feff/assets/styles/rising-particles/dist/white.min.css#sha256-6xBXczm7yM1MZ/v0o1KVFfJGehHk47KJjq8oTktH4KE=
@@ -390,9 +390,13 @@
390390

391391
// ...or add settings toggles
392392
: Object.keys(settings.controls).map(key => {
393-
const menuLabel = `${ settings.controls[key].symbol || this.state.symbols[+settings.isEnabled(key)] } `
394-
+ settings.controls[key].label
395-
+ this.state.separator + this.state.words[+settings.isEnabled(key)]
393+
const ctrlType = settings.controls[key].type
394+
const ctrlStatus = settings.controls[key].status
395+
const menuLabel = `${
396+
settings.controls[key].symbol || this.state.symbols[+settings.typeIsEnabled(key)] } ${
397+
settings.controls[key].label} ${
398+
ctrlType == 'toggle' ? this.state.separator + this.state.words[+settings.typeIsEnabled(key)]
399+
: ctrlStatus ? `— ${ctrlStatus}` : '' }`
396400
return GM_registerMenuCommand(menuLabel, () => {
397401
settings.save(key, !config[key]) ; syncConfigToUI({ updatedKey: key })
398402
notify(`${settings.controls[key].label}: ${

0 commit comments

Comments
 (0)