|
148 | 148 | // @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!) |
149 | 149 | // @author KudoAI |
150 | 150 | // @namespace https://kudoai.com |
151 | | -// @version 2026.7.26 |
| 151 | +// @version 2026.7.26.1 |
152 | 152 | // @license MIT |
153 | 153 | // @icon https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@2f21b5f/assets/images/icons/app/icon48.png |
154 | 154 | // @icon64 https://cdn.jsdelivr.net/gh/KudoAI/bravegpt@2f21b5f/assets/images/icons/app/icon64.png |
|
1860 | 1860 | + `<span class="about-em">${app.version}</span>\n` |
1861 | 1861 | + `<span style="${labelStyles}">📜 ${app.msgs.about_openSourceCode}:</span> ` |
1862 | 1862 | + `<a href="${app.urls.github}" target="_blank" rel="nopener">` |
1863 | | - + app.urls.github + '</a>\n' |
| 1863 | + + `${app.urls.github}</a>\n` |
1864 | 1864 | + `<span style="${labelStyles}">🚀 ${app.msgs.about_latestChanges}:</span> ` |
1865 | 1865 | + `<a href="${app.urls.github}/commits" target="_blank" rel="nopener">` |
1866 | 1866 | + `${app.urls.github}/commits</a>\n` |
|
1949 | 1949 | btnsDiv.style.cssText = `margin-top: 23px !important ; ${ env.browser.isCompact ? '' |
1950 | 1950 | : 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify wide view btns |
1951 | 1951 | 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 |
1953 | 1953 | else btn.classList.toggle('primary-modal-btn', // emphasize preferred API |
1954 | 1954 | app.config.preferredAPI && app.config.preferredAPI.toLowerCase() == btn.textContent.toLowerCase() |
1955 | 1955 | || btn.textContent == app.msgs.menuLabel_random && !app.config.preferredAPI) |
|
1985 | 1985 | // Hack buttons |
1986 | 1986 | btns = btnsDiv.querySelectorAll('button') |
1987 | 1987 | 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 |
1989 | 1989 | if (idx == btns.length -1) btn.classList.remove('primary-modal-btn') // de-emphasize last link |
1990 | 1990 | btn.style.marginTop = btn.style.marginBottom = '5px' // v-pad btns |
1991 | 1991 |
|
|
2105 | 2105 | const modalBG = modal.parentNode |
2106 | 2106 | new MutationObserver(([mutation], obs) => |
2107 | 2107 | mutation.removedNodes.forEach(removedNode => { |
2108 | | - if (removedNode != modalBG) return |
| 2108 | + if (removedNode !== modalBG) return |
2109 | 2109 | if (modals.stack[0].includes(modalSubType || modalType)) { // new modal not launched so nav back |
2110 | 2110 | modals.stack.shift() // remove this modal type from stack 1st |
2111 | 2111 | const prevModalType = modals.stack[0] |
|
0 commit comments