Skip to content

Commit 407609e

Browse files
committed
Tightened notify() conditions when config.notifDisabled ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-continue]
1 parent 1fb3959 commit 407609e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 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.5.22
222+
// @version 2025.5.22.1
223223
// @license MIT
224224
// @icon https://assets.chatgptautocontinue.com/images/icons/continue-symbol/black/icon48.png?v=a8c9387
225225
// @icon64 https://assets.chatgptautocontinue.com/images/icons/continue-symbol/black/icon64.png?v=a8c9387
@@ -401,8 +401,9 @@
401401

402402
function notify(msg, pos = '', notifDuration = '', shadow = '') {
403403
if (!styles.toast.node) styles.update({ key: 'toast' })
404-
if (config.notifDisabled && !new RegExp(`${app.msgs.menuLabel_notifs}|${app.msgs.mode_toast}|🧩`).test(msg))
405-
return
404+
if (config.notifDisabled
405+
&& !new RegExp(`${app.msgs.menuLabel_show} ${app.msgs.menuLabel_notifs}|🧩`, 'i').test(msg)
406+
) return
406407

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

0 commit comments

Comments
 (0)