File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
chatgpt/chatgpt-auto-continue Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 219
219
// @description :zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu
220
220
// @author Adam Lui
221
221
// @namespace https://github.com/adamlui
222
- // @version 2025.2.27
222
+ // @version 2025.2.28
223
223
// @license MIT
224
224
// @icon https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon48.png?v=8b39fb4
225
225
// @icon 64 https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon64.png?v=8b39fb4
497
497
498
498
// Run MAIN routine
499
499
500
+ // Init EXTENSION ACTIVE state
501
+ env . extensionActive = false
502
+ postMessage ( { action : 'getExtensionInfo' , source : `${ app . slug } .user.js` } )
503
+ addEventListener ( 'message' , handleMsgResp )
504
+ function handleMsgResp ( resp ) {
505
+ const sender = resp . data . source . toLowerCase ( )
506
+ env . extensionActive = sender . includes ( app . slug . toLowerCase ( ) ) && sender . includes ( 'extension' )
507
+ }
508
+ await new Promise ( resolve => setTimeout ( resolve , 100 ) ) // wait for extension response
509
+ removeEventListener ( 'message' , handleMsgResp )
510
+
500
511
// Create browser TOOLBAR MENU + DISABLE SCRIPT if extension active
501
- env . extensionActive = sessionStorage . chatgptAutoContisdnueExtensionActive == 'true'
502
512
toolbarMenu . register ( ) ; if ( env . extensionActive ) return
503
513
504
514
// Add RISING PARTICLES styles
You can’t perform that action at this time.
0 commit comments