Skip to content

Commit 6ff9b0d

Browse files
committed
Restored needed parentheses to getScheme()
1 parent 43f0027 commit 6ff9b0d

File tree

9 files changed

+19
-14
lines changed

9 files changed

+19
-14
lines changed

autoclear-chatgpt-history/greasemonkey/autoclear-chatgpt-history.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
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
// @icon64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06
@@ -775,7 +775,7 @@
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) {

chatgpt-auto-continue/chromium/extension/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
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

chatgpt-auto-continue/firefox/extension/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
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

chatgpt-auto-continue/greasemonkey/chatgpt-auto-continue.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
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
// @icon64 https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon64.png?v=8b39fb4
@@ -490,7 +490,7 @@
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 */ }

chatgpt-auto-refresh/greasemonkey/chatgpt-auto-refresh.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
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
// @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
@@ -785,7 +785,7 @@
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) {

chatgpt-auto-talk/greasemonkey/chatgpt-auto-talk.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
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
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
@@ -731,7 +731,7 @@
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() {

chatgpt-infinity/chromium/extension/content.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
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
@@ -94,7 +96,7 @@
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
@@ -213,4 +215,7 @@
213215
document.documentElement.setAttribute('sidebar-click-zoom-observed', true)
214216
}
215217

218+
console.log(getScheme())
219+
setTimeout(() => console.log(getScheme()), 5000)
220+
216221
})()

chatgpt-infinity/firefox/extension/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
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

chatgpt-infinity/greasemonkey/chatgpt-infinity.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
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
// @icon64 https://assets.chatgptinfinity.com/images/icons/infinity-symbol/circled/with-robot/icon64.png?v=69e434b
@@ -559,7 +559,7 @@
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) {

0 commit comments

Comments
 (0)