Skip to content

Commit 2d5c08e

Browse files
committed
Replaced nextSibling w/ more performant nextElementSibling ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent cd8d65f commit 2d5c08e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 2 additions & 2 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 2026.1.4
151+
// @version 2026.1.5
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -1879,7 +1879,7 @@
18791879
const aboutHeaderLogo = logos.duckduckgpt.create() ; aboutHeaderLogo.width = 420
18801880
aboutHeaderLogo.style.cssText = 'max-width: 98% ;'
18811881
+ `margin: -1px ${ env.browser.isMobile ? 'auto' : '13.5%' } 1px`
1882-
aboutModal.firstChild.nextSibling.before(aboutHeaderLogo) // after close btn
1882+
aboutModal.firstChild.nextElementSibling.before(aboutHeaderLogo) // after close btn
18831883

18841884
// Format text
18851885
aboutModal.querySelector('h2').remove() // remove empty title h2

0 commit comments

Comments
 (0)