|
148 | 148 | // @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (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/duckduckgpt@e73859f/assets/images/icons/app/icon48.png |
154 | 154 | // @icon64 https://cdn.jsdelivr.net/gh/KudoAI/duckduckgpt@e73859f/assets/images/icons/app/icon64.png |
|
1633 | 1633 | return // since big Summarize button exists |
1634 | 1634 | const btn = dom.create.elem('button', { |
1635 | 1635 | id: `${app.slug}-${btnType}-btn`, class: `${app.slug}-chatbar-btn no-mobile-tap-outline` }) |
1636 | | - btn.style.right = `${ idx == 0 ? 5 : 0.3 }px` |
| 1636 | + btn.style.right = `${ idx === 0 ? 5 : 0.3 }px` |
1637 | 1637 | if (env.browser.isFF && btnType == 'shuffle') btn.style.right = '1.4px' |
1638 | 1638 | btn.append(icons.create({ key: btnType, size: btnType == 'send' ? 14 : 18 })) |
1639 | 1639 | continueChatDiv.append(btn) |
|
1863 | 1863 | + `<span class="about-em">${app.version}</span>\n` |
1864 | 1864 | + `<span style="${labelStyles}">📜 ${app.msgs.about_openSourceCode}:</span> ` |
1865 | 1865 | + `<a href="${app.urls.github}" target="_blank" rel="nopener">` |
1866 | | - + app.urls.github + '</a>\n' |
| 1866 | + + `${app.urls.github}</a>\n` |
1867 | 1867 | + `<span style="${labelStyles}">🚀 ${app.msgs.about_latestChanges}:</span> ` |
1868 | 1868 | + `<a href="${app.urls.github}/commits" target="_blank" rel="nopener">` |
1869 | 1869 | + `${app.urls.github}/commits</a>\n` |
|
1952 | 1952 | btnsDiv.style.cssText = `margin: 18px 0px 6px !important ; ${ env.browser.isCompact ? '' |
1953 | 1953 | : 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify wide view btns |
1954 | 1954 | btnsDiv.querySelectorAll('button').forEach((btn, idx) => { |
1955 | | - if (idx == 0) btn.style.display = 'none' // hide Dismiss button |
| 1955 | + if (idx === 0) btn.style.display = 'none' // hide Dismiss button |
1956 | 1956 | else btn.classList.toggle('primary-modal-btn', // emphasize preferred API |
1957 | 1957 | app.config.preferredAPI && app.config.preferredAPI.toLowerCase() == btn.textContent.toLowerCase() |
1958 | 1958 | || btn.textContent == app.msgs.menuLabel_random && !app.config.preferredAPI) |
|
1982 | 1982 | // Hack buttons |
1983 | 1983 | btns = btnsDiv.querySelectorAll('button') |
1984 | 1984 | btns.forEach((btn, idx) => { |
1985 | | - if (idx == 0) btn.style.display = 'none' // hide Dismiss button |
| 1985 | + if (idx === 0) btn.style.display = 'none' // hide Dismiss button |
1986 | 1986 | if (idx == btns.length -1) btn.classList.remove('primary-modal-btn') // de-emphasize last link |
1987 | 1987 | btn.style.marginTop = btn.style.marginBottom = '5px' // v-pad btns |
1988 | 1988 |
|
|
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