|
149 | 149 | // @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!) |
150 | 150 | // @author KudoAI |
151 | 151 | // @namespace https://kudoai.com |
152 | | -// @version 2026.7.26 |
| 152 | +// @version 2026.7.26.1 |
153 | 153 | // @license MIT |
154 | 154 | // @icon data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22170.667%22%20height=%22170.667%22%3E%3Cstyle%3E:root%7B--fill:%23000%7D@media%20(prefers-color-scheme:dark)%7B:root%7B--fill:%23fff%7D%7D%3C/style%3E%3Cpath%20fill=%22var(--fill)%22%20d=%22M82.346%20159.79c-18.113-1.815-31.78-9.013-45.921-24.184C23.197%20121.416%2017.333%20106.18%2017.333%2086c0-21.982%205.984-36.245%2021.87-52.131C55.33%2017.74%2069.27%2011.867%2091.416%2011.867c17.574%200%2029.679%203.924%2044.309%2014.363l8.57%206.116-8.705%208.705-8.704%208.704-4.288-3.608c-13.91-11.704-35.932-14.167-53.085-5.939-3.4%201.631-9.833%206.601-14.297%2011.045C44.669%2061.753%2040.95%2070.811%2040.95%2086c0%2014.342%203.594%2023.555%2013.26%2033.995%2019.088%2020.618%2048.46%2022.539%2070.457%204.608l5.333-4.348%2011.333%203.844c6.234%202.114%2011.54%203.857%2011.791%203.873.252.015-2.037%203.008-5.087%206.65-6.343%207.577-20.148%2017.217-30.493%2021.295-8.764%203.454-23.358%205.06-35.198%203.873zM92%2086.333V74.667h60.648l-11.41%2011.41-11.411%2011.41-18.914.257L92%2098z%22/%3E%3C/svg%3E |
155 | 155 | // @icon64 data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22170.667%22%20height=%22170.667%22%3E%3Cstyle%3E:root%7B--fill:%23000%7D@media%20(prefers-color-scheme:dark)%7B:root%7B--fill:%23fff%7D%7D%3C/style%3E%3Cpath%20fill=%22var(--fill)%22%20d=%22M82.346%20159.79c-18.113-1.815-31.78-9.013-45.921-24.184C23.197%20121.416%2017.333%20106.18%2017.333%2086c0-21.982%205.984-36.245%2021.87-52.131C55.33%2017.74%2069.27%2011.867%2091.416%2011.867c17.574%200%2029.679%203.924%2044.309%2014.363l8.57%206.116-8.705%208.705-8.704%208.704-4.288-3.608c-13.91-11.704-35.932-14.167-53.085-5.939-3.4%201.631-9.833%206.601-14.297%2011.045C44.669%2061.753%2040.95%2070.811%2040.95%2086c0%2014.342%203.594%2023.555%2013.26%2033.995%2019.088%2020.618%2048.46%2022.539%2070.457%204.608l5.333-4.348%2011.333%203.844c6.234%202.114%2011.54%203.857%2011.791%203.873.252.015-2.037%203.008-5.087%206.65-6.343%207.577-20.148%2017.217-30.493%2021.295-8.764%203.454-23.358%205.06-35.198%203.873zM92%2086.333V74.667h60.648l-11.41%2011.41-11.411%2011.41-18.914.257L92%2098z%22/%3E%3C/svg%3E |
|
1841 | 1841 | return // since big Summarize button exists |
1842 | 1842 | const btn = dom.create.elem('button', { |
1843 | 1843 | id: `${app.slug}-${btnType}-btn`, class: `${app.slug}-chatbar-btn no-mobile-tap-outline` }) |
1844 | | - btn.style.right = `${ idx == 0 ? 3 : idx == 1 ? -3 : -5 }px` |
| 1844 | + btn.style.right = `${ idx === 0 ? 3 : idx == 1 ? -3 : -5 }px` |
1845 | 1845 | btn.append(icons.create({ key: btnType, size: btnType == 'send' ? 14 : 18 })) |
1846 | 1846 | continueChatDiv.append(btn) |
1847 | 1847 | }) |
|
2074 | 2074 | + `<span class="about-em">${app.version}</span>\n` |
2075 | 2075 | + `<span style="${labelStyles}">📜 ${app.msgs.about_openSourceCode}:</span> ` |
2076 | 2076 | + `<a href="${app.urls.github}" target="_blank" rel="nopener">` |
2077 | | - + app.urls.github + '</a>\n' |
| 2077 | + + `${app.urls.github}</a>\n` |
2078 | 2078 | + `<span style="${labelStyles}">🚀 ${app.msgs.about_latestChanges}:</span> ` |
2079 | 2079 | + `<a href="${app.urls.github}/commits" target="_blank" rel="nopener">` |
2080 | 2080 | + `${app.urls.github}/commits</a>\n` |
|
2164 | 2164 | btnsDiv.style.cssText = `margin: 18px 0px 4px !important ; ${ env.browser.isCompact ? '' |
2165 | 2165 | : 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify wide view btns |
2166 | 2166 | btnsDiv.querySelectorAll('button').forEach((btn, idx) => { |
2167 | | - if (idx == 0) btn.style.display = 'none' // hide Dismiss button |
| 2167 | + if (idx === 0) btn.style.display = 'none' // hide Dismiss button |
2168 | 2168 | else btn.classList.toggle('primary-modal-btn', // emphasize preferred API |
2169 | 2169 | app.config.preferredAPI && app.config.preferredAPI.toLowerCase() == btn.textContent.toLowerCase() |
2170 | 2170 | || btn.textContent == app.msgs.menuLabel_random && !app.config.preferredAPI) |
|
2194 | 2194 | // Hack buttons |
2195 | 2195 | btns = btnsDiv.querySelectorAll('button') |
2196 | 2196 | btns.forEach((btn, idx) => { |
2197 | | - if (idx == 0) btn.style.display = 'none' // hide Dismiss button |
| 2197 | + if (idx === 0) btn.style.display = 'none' // hide Dismiss button |
2198 | 2198 | if (idx == btns.length -1) btn.classList.remove('primary-modal-btn') // de-emphasize last link |
2199 | 2199 | btn.style.marginTop = btn.style.marginBottom = '5px' // v-pad btns |
2200 | 2200 |
|
|
2312 | 2312 | const modalBG = modal.parentNode |
2313 | 2313 | new MutationObserver(([mutation], obs) => |
2314 | 2314 | mutation.removedNodes.forEach(removedNode => { |
2315 | | - if (removedNode != modalBG) return |
| 2315 | + if (removedNode !== modalBG) return |
2316 | 2316 | if (modals.stack[0].includes(modalSubType || modalType)) { // new modal not launched so nav back |
2317 | 2317 | modals.stack.shift() // remove this modal type from stack 1st |
2318 | 2318 | const prevModalType = modals.stack[0] |
|
0 commit comments