|
3 | 3 | // @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o! |
4 | 4 | // @author KudoAI |
5 | 5 | // @namespace https://kudoai.com |
6 | | -// @version 2026.7.26 |
| 6 | +// @version 2026.7.26.1 |
7 | 7 | // @license MIT |
8 | 8 | // @icon https://cdn.jsdelivr.net/gh/KudoAI/amazongpt@8e8ed1c/assets/images/icons/app/black-gold-teal/icon48.png |
9 | 9 | // @icon64 https://cdn.jsdelivr.net/gh/KudoAI/amazongpt@8e8ed1c/assets/images/icons/app/black-gold-teal/icon64.png |
|
1236 | 1236 | + `<span class="about-em">${app.version}</span>\n` |
1237 | 1237 | + `<span style="${labelStyles}">📜 ${app.msgs.about_openSourceCode}:</span> ` |
1238 | 1238 | + `<a href="${app.urls.github}" target="_blank" rel="nopener">` |
1239 | | - + app.urls.github + '</a>\n' |
| 1239 | + + `${app.urls.github}</a>\n` |
1240 | 1240 | + `<span style="${labelStyles}">🚀 ${app.msgs.about_latestChanges}:</span> ` |
1241 | 1241 | + `<a href="${app.urls.github}/commits" target="_blank" rel="nopener">` |
1242 | 1242 | + `${app.urls.github}/commits</a>\n` |
|
1328 | 1328 | btnsDiv.style.cssText = `margin: 0 !important ; ${ env.browser.isCompact ? '' |
1329 | 1329 | : 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify wide view btns |
1330 | 1330 | 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 |
1332 | 1332 | else btn.classList.toggle('primary-modal-btn', // emphasize preferred API |
1333 | 1333 | app.config.preferredAPI && app.config.preferredAPI.toLowerCase() == btn.textContent.toLowerCase() |
1334 | 1334 | || btn.textContent == app.msgs.menuLabel_random && !app.config.preferredAPI) |
|
1358 | 1358 | // Hack buttons |
1359 | 1359 | btns = btnsDiv.querySelectorAll('button') |
1360 | 1360 | 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 |
1362 | 1362 | if (idx == btns.length -1) btn.classList.remove('primary-modal-btn') // de-emphasize last link |
1363 | 1363 | btn.style.marginTop = btn.style.marginBottom = '5px' // v-pad btns |
1364 | 1364 |
|
|
1476 | 1476 | const modalBG = modal.parentNode |
1477 | 1477 | new MutationObserver(([mutation], obs) => |
1478 | 1478 | mutation.removedNodes.forEach(removedNode => { |
1479 | | - if (removedNode != modalBG) return |
| 1479 | + if (removedNode !== modalBG) return |
1480 | 1480 | if (modals.stack[0].includes(modalSubType || modalType)) { // new modal not launched so nav back |
1481 | 1481 | modals.stack.shift() // remove this modal type from stack 1st |
1482 | 1482 | const prevModalType = modals.stack[0] |
|
0 commit comments