diff --git a/greasemonkey/chatgpt-auto-continue.user.js b/greasemonkey/chatgpt-auto-continue.user.js index c2cb5c11..116262ee 100644 --- a/greasemonkey/chatgpt-auto-continue.user.js +++ b/greasemonkey/chatgpt-auto-continue.user.js @@ -219,7 +219,7 @@ // @description:zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu // @author Adam Lui // @namespace https://github.com/adamlui -// @version 2024.11.27.1 +// @version 2024.11.29 // @license MIT // @match *://chatgpt.com/* // @match *://chat.openai.com/* @@ -633,14 +633,14 @@ // Run MAIN routine // Create browser TOOLBAR MENU or DISABLE SCRIPT if extension installed - const extensionInstalled = await Promise.race([ + env.extensionInstalled = await Promise.race([ new Promise(resolve => { (function checkExtensionInstalled() { if (document.documentElement.hasAttribute('chatgpt-auto-continue-extension-installed')) resolve(true) else setTimeout(checkExtensionInstalled, 200) })() }), new Promise(resolve => setTimeout(() => resolve(false), 1500))]) - if (extensionInstalled) { // disable script/menu + if (env.extensionInstalled) { // disable script/menu GM_registerMenuCommand(`${menu.state.symbols[0]} ${app.msgs.menuLabel_disabled}`, modals.about.show) return // exit script } else menu.register() // create functional menu