diff --git a/chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js b/chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js index b895077455..c7f37a90bb 100644 --- a/chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js +++ b/chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js @@ -220,7 +220,7 @@ // @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT. // @author Adam Lui // @namespace https://github.com/adamlui -// @version 2025.1.29.1 +// @version 2025.1.29.2 // @license MIT // @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8 // @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8 @@ -497,7 +497,6 @@ // Define FEEDBACK functions function notify(msg, pos = '', notifDuration = '', shadow = '') { - if (config.notifDisabled && !msg.includes(app.msgs.menuLabel_modeNotifs)) return // Strip state word to append colored one later const foundState = menu.state.words.find(word => msg.includes(word)) @@ -509,10 +508,18 @@ // Append styled state word if (foundState) { + const stateStyles = { + on: { + light: 'color: #5cef48 ; text-shadow: rgba(255,250,169,0.38) 2px 1px 5px', + dark: 'color: #5cef48 ; text-shadow: rgb(55, 255, 0) 3px 0 10px' + }, + off: { + light: 'color: #ef4848 ; text-shadow: rgba(255,169,225,0.44) 2px 1px 5px', + dark: 'color: #ef4848 ; text-shadow: rgba(255, 116, 116, 0.87) 3px 0 9px' + } + } const styledStateSpan = document.createElement('span') - styledStateSpan.style.cssText = `color: ${ - foundState == menu.state.words[0] ? '#ef4848 ; text-shadow: rgba(255,169,225,0.44) 2px 1px 5px' - : '#5cef48 ; text-shadow: rgba(255,250,169,0.38) 2px 1px 5px' }` + styledStateSpan.style.cssText = stateStyles[foundState == menu.state.words[0] ? 'off' : 'on'][env.ui.scheme] styledStateSpan.append(foundState) ; notif.append(styledStateSpan) } }