Skip to content

Commit cd8d65f

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 2 additions & 2 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 2026.1.4
6+
// @version 2026.1.5
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
@@ -1257,7 +1257,7 @@
12571257
const aboutHeaderLogo = logos.amazongpt.create() ; aboutHeaderLogo.width = 420
12581258
aboutHeaderLogo.style.cssText = `max-width: 98% ; margin: 15px ${
12591259
env.browser.isMobile ? 'auto' : '15.5%' } 17px`
1260-
aboutModal.firstChild.nextSibling.before(aboutHeaderLogo) // after close btn
1260+
aboutModal.firstChild.nextElementSibling.before(aboutHeaderLogo) // after close btn
12611261

12621262
// Center text
12631263
aboutModal.querySelector('h2').remove() // remove empty title h2

0 commit comments

Comments
 (0)