Skip to content

Commit 058999d

Browse files
committed
Added config check to notify() to honor Mode Notifications setting ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-refresh]
1 parent 22f6cad commit 058999d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

greasemonkey/chatgpt-auto-refresh.user.js

+3-1
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.4.1
223+
// @version 2025.4.1.1
224224
// @license MIT
225225
// @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh@f11a0a8/assets/images/icons/openai/black/icon48.png
226226
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh@f11a0a8/assets/images/icons/openai/black/icon64.png
@@ -418,6 +418,7 @@
418418
save(key, val) { GM_setValue(`${app.configKeyPrefix}_${key}`, val) ; config[key] = val }
419419
}
420420
settings.load(Object.keys(settings.controls))
421+
console.log(config)
421422
if (!config.refreshInterval) settings.save('refreshInterval', 30) // init refresh interval to 30 secs if unset
422423

423424
// Define MENU functions
@@ -508,6 +509,7 @@
508509
// Define FEEDBACK functions
509510

510511
function notify(msg, pos = '', notifDuration = '', shadow = '') {
512+
if (config.notifDisabled && !msg.includes(app.msgs.menuLabel_modeNotifs)) return
511513

512514
// Strip state word to append colored one later
513515
const foundState = toolbarMenu.state.words.find(word => msg.includes(word))

0 commit comments

Comments
 (0)