Skip to content

Commit 950b2fa

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

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

chatgpt/bravegpt/bravegpt.user.js

Lines changed: 5 additions & 5 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.7.26
151+
// @version 2026.7.26.1
152152
// @license MIT
153153
// @icon https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@2f21b5f/assets/images/icons/app/icon48.png
154154
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@2f21b5f/assets/images/icons/app/icon64.png
@@ -1860,7 +1860,7 @@
18601860
+ `<span class="about-em">${app.version}</span>\n`
18611861
+ `<span style="${labelStyles}">📜 ${app.msgs.about_openSourceCode}:</span> `
18621862
+ `<a href="${app.urls.github}" target="_blank" rel="nopener">`
1863-
+ app.urls.github + '</a>\n'
1863+
+ `${app.urls.github}</a>\n`
18641864
+ `<span style="${labelStyles}">🚀 ${app.msgs.about_latestChanges}:</span> `
18651865
+ `<a href="${app.urls.github}/commits" target="_blank" rel="nopener">`
18661866
+ `${app.urls.github}/commits</a>\n`
@@ -1949,7 +1949,7 @@
19491949
btnsDiv.style.cssText = `margin-top: 23px !important ; ${ env.browser.isCompact ? ''
19501950
: 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify wide view btns
19511951
btnsDiv.querySelectorAll('button').forEach((btn, idx) => {
1952-
if (idx == 0) btn.style.display = 'none' // hide Dismiss button
1952+
if (idx === 0) btn.style.display = 'none' // hide Dismiss button
19531953
else btn.classList.toggle('primary-modal-btn', // emphasize preferred API
19541954
app.config.preferredAPI && app.config.preferredAPI.toLowerCase() == btn.textContent.toLowerCase()
19551955
|| btn.textContent == app.msgs.menuLabel_random && !app.config.preferredAPI)
@@ -1985,7 +1985,7 @@
19851985
// Hack buttons
19861986
btns = btnsDiv.querySelectorAll('button')
19871987
btns.forEach((btn, idx) => {
1988-
if (idx == 0) btn.style.display = 'none' // hide Dismiss button
1988+
if (idx === 0) btn.style.display = 'none' // hide Dismiss button
19891989
if (idx == btns.length -1) btn.classList.remove('primary-modal-btn') // de-emphasize last link
19901990
btn.style.marginTop = btn.style.marginBottom = '5px' // v-pad btns
19911991

@@ -2105,7 +2105,7 @@
21052105
const modalBG = modal.parentNode
21062106
new MutationObserver(([mutation], obs) =>
21072107
mutation.removedNodes.forEach(removedNode => {
2108-
if (removedNode != modalBG) return
2108+
if (removedNode !== modalBG) return
21092109
if (modals.stack[0].includes(modalSubType || modalType)) { // new modal not launched so nav back
21102110
modals.stack.shift() // remove this modal type from stack 1st
21112111
const prevModalType = modals.stack[0]

0 commit comments

Comments
 (0)