Skip to content

Commit 4ed7584

Browse files
committed
Replaced .parentNode check w/ isConnected
1 parent f5cc279 commit 4ed7584

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

amazongpt/greasemonkey/amazongpt.user.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.5.16.13
6+
// @version 2025.5.16.14
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -1766,8 +1766,7 @@
17661766
if (isDragging) moveThumb(startLeft + event.clientX - startX) })
17671767
document.addEventListener(inputEvents.up, () => {
17681768
isDragging = false
1769-
if (fontSizeSlider.cursorOverlay.parentNode)
1770-
fontSizeSlider.cursorOverlay.remove()
1769+
if (fontSizeSlider.cursorOverlay?.isConnected) fontSizeSlider.cursorOverlay.remove()
17711770
})
17721771

17731772
// Add event listener for wheel-scrolling thumb

bravegpt/greasemonkey/bravegpt.user.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.5.16.14
151+
// @version 2025.5.16.15
152152
// @license MIT
153153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -2468,8 +2468,7 @@
24682468
if (isDragging) moveThumb(startLeft + event.clientX - startX) })
24692469
document.addEventListener(inputEvents.up, () => {
24702470
isDragging = false
2471-
if (fontSizeSlider.cursorOverlay.parentNode)
2472-
fontSizeSlider.cursorOverlay.remove()
2471+
if (fontSizeSlider.cursorOverlay?.isConnected) fontSizeSlider.cursorOverlay.remove()
24732472
})
24742473

24752474
// Add event listener for wheel-scrolling thumb

duckduckgpt/greasemonkey/duckduckgpt.user.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.5.16.15
151+
// @version 2025.5.16.16
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -2461,8 +2461,7 @@
24612461
if (isDragging) moveThumb(startLeft + event.clientX - startX) })
24622462
document.addEventListener(inputEvents.up, () => {
24632463
isDragging = false
2464-
if (fontSizeSlider.cursorOverlay.parentNode)
2465-
fontSizeSlider.cursorOverlay.remove()
2464+
if (fontSizeSlider.cursorOverlay?.isConnected) fontSizeSlider.cursorOverlay.remove()
24662465
})
24672466

24682467
// Add event listener for wheel-scrolling thumb

googlegpt/greasemonkey/googlegpt.user.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
150150
// @author KudoAI
151151
// @namespace https://kudoai.com
152-
// @version 2025.5.16.14
152+
// @version 2025.5.16.15
153153
// @license MIT
154154
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
155155
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
@@ -2678,8 +2678,7 @@
26782678
if (isDragging) moveThumb(startLeft + event.clientX - startX) })
26792679
document.addEventListener(inputEvents.up, () => {
26802680
isDragging = false
2681-
if (fontSizeSlider.cursorOverlay.parentNode)
2682-
fontSizeSlider.cursorOverlay.remove()
2681+
if (fontSizeSlider.cursorOverlay?.isConnected) fontSizeSlider.cursorOverlay.remove()
26832682
})
26842683

26852684
// Add event listener for wheel-scrolling thumb

0 commit comments

Comments
 (0)