File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 220
220
// @description :zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221
221
// @author Adam Lui
222
222
// @namespace https://github.com/adamlui
223
- // @version 2025.2.21
223
+ // @version 2025.2.21.1
224
224
// @license MIT
225
225
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226
226
// @icon 64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
434
434
435
435
// Add toggles
436
436
Object . keys ( settings . controls ) . forEach ( key => {
437
- const controlType = settings . controls [ key ] . type
437
+ const ctrlType = settings . controls [ key ] . type
438
+ const ctrlStatus = settings . controls [ key ] . status
438
439
const menuLabel = `${ settings . controls [ key ] . symbol || this . state . symbols [ + settingIsEnabled ( key ) ] } `
439
440
+ settings . controls [ key ] . label
440
- + ( controlType == 'toggle' ? this . state . separator
441
- + this . state . words [ + settingIsEnabled ( key ) ]
442
- : `— ${ settings . controls [ key ] . status } ` )
441
+ + ( ctrlType == 'toggle' ? this . state . separator
442
+ + this . state . words [ + settingIsEnabled ( key ) ]
443
+ : ctrlStatus ? `— ${ settings . controls [ key ] . status } ` : '' )
443
444
this . ids . push ( GM_registerMenuCommand ( menuLabel , ( ) => {
444
- if ( controlType == 'toggle' ) {
445
+ if ( ctrlType == 'toggle' ) {
445
446
settings . save ( key , ! config [ key ] )
446
447
notify ( `${ settings . controls [ key ] . label } : ${
447
448
this . state . words [ + ( config [ key ] ^ / d i s a b l e d | h i d d e n / i. test ( key ) ) ] } `)
You can’t perform that action at this time.
0 commit comments