File tree Expand file tree Collapse file tree 9 files changed +19
-14
lines changed
autoclear-chatgpt-history/greasemonkey
chatgpt-auto-refresh/greasemonkey
chatgpt-auto-talk/greasemonkey Expand file tree Collapse file tree 9 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 225225// @description :zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
226226// @author Adam Lui
227227// @namespace https://github.com/adamlui
228- // @version 2025.3.4.1
228+ // @version 2025.3.8
229229// @license MIT
230230// @icon https://assets.autoclearchatgpt.com/images/icons/openai/black/icon48.png?v=f461c06
231231// @icon 64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06
775775
776776 function getScheme ( ) {
777777 return document . documentElement . className
778- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
778+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
779779 }
780780
781781 function syncConfigToUI ( options ) {
Original file line number Diff line number Diff line change 9595
9696 function getScheme ( ) {
9797 return document . documentElement . className
98- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
98+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
9999 }
100100
101101 // Run MAIN routine
Original file line number Diff line number Diff line change 9595
9696 function getScheme ( ) {
9797 return document . documentElement . className
98- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
98+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
9999 }
100100
101101 // Run MAIN routine
Original file line number Diff line number Diff line change 219219// @description :zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu
220220// @author Adam Lui
221221// @namespace https://github.com/adamlui
222- // @version 2025.3.4.1
222+ // @version 2025.3.8
223223// @license MIT
224224// @icon https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon48.png?v=8b39fb4
225225// @icon 64 https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon64.png?v=8b39fb4
490490
491491 function getScheme ( ) {
492492 return document . documentElement . className
493- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
493+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
494494 }
495495
496496 function syncConfigToUI ( ) { toolbarMenu . refresh ( ) /* prefixes/suffixes */ }
Original file line number Diff line number Diff line change 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.3.4.1
223+ // @version 2025.3.8
224224// @license MIT
225225// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226226// @icon 64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
785785
786786 function getScheme ( ) {
787787 return document . documentElement . className
788- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
788+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
789789 }
790790
791791 function syncConfigToUI ( options ) {
Original file line number Diff line number Diff line change 225225// @description :zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
226226// @author Adam Lui
227227// @namespace https://github.com/adamlui
228- // @version 2025.3.4.1
228+ // @version 2025.3.8
229229// @license MIT
230230// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
231231// @icon 64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
731731
732732 function getScheme ( ) {
733733 return document . documentElement . className
734- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
734+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
735735 }
736736
737737 function syncConfigToUI ( ) {
Original file line number Diff line number Diff line change 3030
3131 // Init ENV context
3232 const env = { browser : { isMobile : chatgpt . browser . isMobile ( ) } , ui : { scheme : getScheme ( ) } }
33+ console . log ( env . ui . scheme )
34+ console . log ( getScheme ( ) )
3335 env . browser . isPortrait = env . browser . isMobile && ( innerWidth < innerHeight )
3436
3537 // Import APP data
9496
9597 function getScheme ( ) {
9698 return document . documentElement . className
97- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
99+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
98100 }
99101
100102 chatgpt . isIdle = function ( ) { // replace waiting for chat to start in case of interrupts
213215 document . documentElement . setAttribute ( 'sidebar-click-zoom-observed' , true )
214216 }
215217
218+ console . log ( getScheme ( ) )
219+ setTimeout ( ( ) => console . log ( getScheme ( ) ) , 5000 )
220+
216221} ) ( )
Original file line number Diff line number Diff line change 9797
9898 function getScheme ( ) {
9999 return document . documentElement . className
100- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
100+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
101101 }
102102
103103 chatgpt . isIdle = function ( ) { // replace waiting for chat to start in case of interrupts
Original file line number Diff line number Diff line change 199199// @description :zh-TW 從無所不知的 ChatGPT 生成無窮無盡的答案 (用任何語言!)
200200// @author Adam Lui
201201// @namespace https://github.com/adamlui
202- // @version 2025.3.4.1
202+ // @version 2025.3.8
203203// @license MIT
204204// @icon https://assets.chatgptinfinity.com/images/icons/infinity-symbol/circled/with-robot/icon48.png?v=69e434b
205205// @icon 64 https://assets.chatgptinfinity.com/images/icons/infinity-symbol/circled/with-robot/icon64.png?v=69e434b
559559
560560 function getScheme ( ) {
561561 return document . documentElement . className
562- || window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light'
562+ || ( window . matchMedia ?. ( '(prefers-color-scheme: dark)' ) ?. matches ? 'dark' : 'light' )
563563 }
564564
565565 function syncConfigToUI ( options ) {
You can’t perform that action at this time.
0 commit comments