Skip to content

Commit 005f2ce

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
// @description:zu Thuthukisa iChatGPT ngemodi zesikrini ezibanzi/egcwele/ephezulu + imodi yokuvimbela i-spam. Futhi isebenza ku-perplexity.ai + poe.com!
236236
// @author Adam Lui
237237
// @namespace https://github.com/adamlui
238-
// @version 2025.5.22.3
238+
// @version 2025.5.22.4
239239
// @license MIT
240240
// @icon https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?v=844b16e
241241
// @icon64 https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?v=844b16e
@@ -552,8 +552,9 @@
552552

553553
window.notify = function(msg, pos = '', notifDuration = '', shadow = '') {
554554
if (!styles.toast.node) styles.update({ key: 'toast' })
555-
if (config.notifDisabled && !new RegExp(`${app.msgs.menuLabel_notifs}|${app.msgs.mode_toast}|🧩`).test(msg))
556-
return
555+
if (config.notifDisabled
556+
&& !new RegExp(`${app.msgs.menuLabel_show} ${app.msgs.menuLabel_notifs}|🧩`, 'i').test(msg)
557+
) return
557558

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

0 commit comments

Comments
 (0)