Skip to content

Commit f91cdec

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chatgpt/bravegpt/bravegpt.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-Brave Search (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.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2
154154
// @icon64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2
@@ -1874,7 +1874,7 @@
18741874
const aboutHeaderLogo = logos.bravegpt.create() ; aboutHeaderLogo.width = 375
18751875
aboutHeaderLogo.style.cssText = `max-width: 98% ; margin: 1px ${
18761876
env.browser.isMobile ? 'auto' : '16%' } 0`
1877-
aboutModal.firstChild.nextSibling.before(aboutHeaderLogo) // after close btn
1877+
aboutModal.firstChild.nextElementSibling.before(aboutHeaderLogo) // after close btn
18781878

18791879
// Center text
18801880
aboutModal.querySelector('h2').remove() // remove empty title h2

0 commit comments

Comments
 (0)