File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
chatgpt/autoclear-chatgpt-history Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 225
225
// @description :zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
226
226
// @author Adam Lui
227
227
// @namespace https://github.com/adamlui
228
- // @version 2025.4.1.3
228
+ // @version 2025.4.2
229
229
// @license MIT
230
230
// @icon https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history@f461c06/assets/images/icons/openai/black/icon48.png
231
231
// @icon 64 https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history@f461c06/assets/images/icons/openai/black/icon64.png
420
420
421
421
refresh ( ) {
422
422
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 ( )
424
424
} ,
425
425
426
426
register ( ) {
427
427
428
428
// Add toggles
429
- this . ids = Object . keys ( settings . controls ) . map ( key => {
429
+ this . entryIDs = Object . keys ( settings . controls ) . map ( key => {
430
430
const ctrlType = settings . controls [ key ] . type
431
431
const ctrlStatus = settings . controls [ key ] . status
432
432
const menuLabel = `${
444
444
} ) ;
445
445
446
446
// Add About/Donate entries
447
- [ 'about' , 'donate' ] . forEach ( entryType => this . ids . push ( GM_registerMenuCommand (
447
+ [ 'about' , 'donate' ] . forEach ( entryType => this . entryIDs . push ( GM_registerMenuCommand (
448
448
`${ entryType == 'about' ? '💡' : '💖' } ${
449
449
app . msgs [ `menuLabel_${ entryType } ` ] } ${ entryType == 'about' ? app . msgs . appName : '' } `,
450
450
( ) => entryType == 'about' ? modals . open ( entryType ) : modals . safeWinOpen ( app . urls . donate . gitHub ) ,
You can’t perform that action at this time.
0 commit comments