Skip to content

Commit 1da81fa

Browse files
committed
Moved semicolons to left of leading arrays for easier maintenance ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-refresh]
1 parent f944936 commit 1da81fa

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
// @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221221
// @author Adam Lui
222222
// @namespace https://github.com/adamlui
223-
// @version 2025.5.9
223+
// @version 2025.5.9.1
224224
// @license MIT
225225
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226226
// @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
@@ -463,10 +463,10 @@
463463
}
464464
syncConfigToUI({ updatedKey: key })
465465
}, env.scriptManager.supportsTooltips ? { title: ctrl.helptip || ' ' } : undefined)
466-
});
466+
})
467467

468468
// Add About/Donate entries
469-
['about', 'donate'].forEach(entryType => this.entryIDs.push(GM_registerMenuCommand(
469+
;['about', 'donate'].forEach(entryType => this.entryIDs.push(GM_registerMenuCommand(
470470
`${ entryType == 'about' ? '💡' : '💖' } ${
471471
app.msgs[`menuLabel_${entryType}`]} ${ entryType == 'about' ? app.msgs.appName : '' }`,
472472
() => entryType == 'about' ? modals.open(entryType) : modals.safeWinOpen(app.urls.donate['ko-fi']),
@@ -949,11 +949,9 @@
949949

950950
toolbarMenu.register() // create browser toolbar menu
951951
toggles.sidebar.update.navicon({ preload: true }) // preload sidebar NAVICON variants
952-
await Promise.race([chatgpt.isLoaded(), new Promise(resolve => setTimeout(resolve, 5000))]); // initial UI loaded
953-
954-
// Add RISING PARTICLES styles
955-
['rpg', 'rpw'].forEach(cssType => document.head.append(dom.create.style(GM_getResourceText(`${cssType}CSS`))))
956-
952+
await Promise.race([chatgpt.isLoaded(), new Promise(resolve => setTimeout(resolve, 5000))]) // initial UI loaded
953+
;['rpg', 'rpw'].forEach(cssType => // add Rising Particles styles
954+
document.head.append(dom.create.style(GM_getResourceText(`${cssType}CSS`))))
957955
toggles.sidebar.insert()
958956

959957
// Prevent sporadic convo RESETS

0 commit comments

Comments
 (0)