Skip to content

Commit f3d984b

Browse files
committed
Renamed alert to perplexityAlert ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-widescreen]
1 parent 991be34 commit f3d984b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 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-poe.com!
236236
// @author Adam Lui
237237
// @namespace https://github.com/adamlui
238-
// @version 2025.9.24.2
238+
// @version 2025.9.24.3
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
@@ -296,9 +296,9 @@
296296
if (location.hostname.includes('git')) {
297297
if (location.pathname.includes('chatgpt-widescreen')) {
298298
const alertObserver = new MutationObserver(() => {
299-
const alert = [...document.querySelectorAll('.markdown-alert')]
299+
const perplexityAlert = [...document.querySelectorAll('.markdown-alert')]
300300
.find(alert => alert.textContent.includes('Perplexity'))
301-
if (alert) { alert.style.display = 'none' ; alertObserver.disconnect() }
301+
if (perplexityAlert) { perplexityAlert.style.display = 'none' ; alertObserver.disconnect() }
302302
})
303303
alertObserver.observe(document.body, { childList: true, subtree: true })
304304
setTimeout(() => alertObserver.disconnect(), 5000) // don't observe forever

0 commit comments

Comments
 (0)