Skip to content

Commit 15de974

Browse files
committed
Converted strings to template literal, tightened comparisons ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent 6825f98 commit 15de974

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 5 additions & 5 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.7.26
6+
// @version 2026.7.26.1
77
// @license MIT
88
// @icon https://cdn.jsdelivr.net/gh/KudoAI/amazongpt@8e8ed1c/assets/images/icons/app/black-gold-teal/icon48.png
99
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/amazongpt@8e8ed1c/assets/images/icons/app/black-gold-teal/icon64.png
@@ -1236,7 +1236,7 @@
12361236
+ `<span class="about-em">${app.version}</span>\n`
12371237
+ `<span style="${labelStyles}">📜 ${app.msgs.about_openSourceCode}:</span> `
12381238
+ `<a href="${app.urls.github}" target="_blank" rel="nopener">`
1239-
+ app.urls.github + '</a>\n'
1239+
+ `${app.urls.github}</a>\n`
12401240
+ `<span style="${labelStyles}">🚀 ${app.msgs.about_latestChanges}:</span> `
12411241
+ `<a href="${app.urls.github}/commits" target="_blank" rel="nopener">`
12421242
+ `${app.urls.github}/commits</a>\n`
@@ -1328,7 +1328,7 @@
13281328
btnsDiv.style.cssText = `margin: 0 !important ; ${ env.browser.isCompact ? ''
13291329
: 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify wide view btns
13301330
btnsDiv.querySelectorAll('button').forEach((btn, idx) => {
1331-
if (idx == 0) btn.style.display = 'none' // hide Dismiss button
1331+
if (idx === 0) btn.style.display = 'none' // hide Dismiss button
13321332
else btn.classList.toggle('primary-modal-btn', // emphasize preferred API
13331333
app.config.preferredAPI && app.config.preferredAPI.toLowerCase() == btn.textContent.toLowerCase()
13341334
|| btn.textContent == app.msgs.menuLabel_random && !app.config.preferredAPI)
@@ -1358,7 +1358,7 @@
13581358
// Hack buttons
13591359
btns = btnsDiv.querySelectorAll('button')
13601360
btns.forEach((btn, idx) => {
1361-
if (idx == 0) btn.style.display = 'none' // hide Dismiss button
1361+
if (idx === 0) btn.style.display = 'none' // hide Dismiss button
13621362
if (idx == btns.length -1) btn.classList.remove('primary-modal-btn') // de-emphasize last link
13631363
btn.style.marginTop = btn.style.marginBottom = '5px' // v-pad btns
13641364

@@ -1476,7 +1476,7 @@
14761476
const modalBG = modal.parentNode
14771477
new MutationObserver(([mutation], obs) =>
14781478
mutation.removedNodes.forEach(removedNode => {
1479-
if (removedNode != modalBG) return
1479+
if (removedNode !== modalBG) return
14801480
if (modals.stack[0].includes(modalSubType || modalType)) { // new modal not launched so nav back
14811481
modals.stack.shift() // remove this modal type from stack 1st
14821482
const prevModalType = modals.stack[0]

0 commit comments

Comments
 (0)