Skip to content

Commit dd0f3bc

Browse files
committed
Renamed toolbarMenu.ids to entryIDs for readability ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/autoclear-chatgpt-history]
1 parent 4c17453 commit dd0f3bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chatgpt/autoclear-chatgpt-history/autoclear-chatgpt-history.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.4.1.3
228+
// @version 2025.4.2
229229
// @license MIT
230230
// @icon https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history@f461c06/assets/images/icons/openai/black/icon48.png
231231
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history@f461c06/assets/images/icons/openai/black/icon64.png
@@ -420,13 +420,13 @@
420420

421421
refresh() {
422422
if (typeof GM_unregisterMenuCommand == 'undefined') return
423-
for (const id of this.ids) { GM_unregisterMenuCommand(id) } this.register()
423+
for (const id of this.entryIDs) { GM_unregisterMenuCommand(id) } this.register()
424424
},
425425

426426
register() {
427427

428428
// Add toggles
429-
this.ids = Object.keys(settings.controls).map(key => {
429+
this.entryIDs = Object.keys(settings.controls).map(key => {
430430
const ctrlType = settings.controls[key].type
431431
const ctrlStatus = settings.controls[key].status
432432
const menuLabel = `${
@@ -444,7 +444,7 @@
444444
});
445445

446446
// Add About/Donate entries
447-
['about', 'donate'].forEach(entryType => this.ids.push(GM_registerMenuCommand(
447+
['about', 'donate'].forEach(entryType => this.entryIDs.push(GM_registerMenuCommand(
448448
`${ entryType == 'about' ? '💡' : '💖' } ${
449449
app.msgs[`menuLabel_${entryType}`]} ${ entryType == 'about' ? app.msgs.appName : '' }`,
450450
() => entryType == 'about' ? modals.open(entryType) : modals.safeWinOpen(app.urls.donate.gitHub),

0 commit comments

Comments
 (0)