|
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 2025.6.2.1 |
| 152 | +// @version 2025.6.8 |
153 | 153 | // @license MIT
|
154 | 154 | // @icon https://assets.googlegpt.io/images/icons/app/black/icon48.png?v=12a91c0
|
155 | 155 | // @icon64 https://assets.googlegpt.io/images/icons/app/black/icon64.png?v=12a91c0
|
|
732 | 732 | )
|
733 | 733 | },
|
734 | 734 |
|
735 |
| - appBottomPos() { app.div.style.bottom = `${ config.minimized ? 35 - app.div.offsetHeight : -33 }px` }, |
| 735 | + appBottomPos() { app.div.style.bottom = `${ config.minimized ? 22 - app.div.offsetHeight : -33 }px` }, |
736 | 736 |
|
737 | 737 | appStyle() { // used in toggle.animations() + update.scheme() + main's app init
|
738 | 738 | const isParticlizedDS = env.ui.app.scheme == 'dark' && !config.bgAnimationsDisabled,
|
|
906 | 906 | -o-transition: var(--font-size-slider-thumb-transition) ;
|
907 | 907 | -ms-transition: var(--font-size-slider-thumb-transition)` }}
|
908 | 908 | ${ env.browser.isMobile ? '' : `#${app.slug}-font-size-slider-thumb:hover { transform: scale(1.125) }`}
|
909 |
| - .${app.slug}-standby-btns { margin: 15px 0 -14px } |
| 909 | + .${app.slug}-standby-btns { margin: 20px 0 -14px } |
910 | 910 | .${app.slug}-standby-btn {
|
911 | 911 | --skew: skew(-13deg) ; --counter-skew: skew(13deg) ;
|
912 | 912 | --content-color: ${ env.ui.app.scheme == 'dark' ? 'white' : 'black' };
|
|
3012 | 3012 | document.head.append(dom.create.style(GM_getResourceText(`${cssType}CSS`))))
|
3013 | 3013 |
|
3014 | 3014 | // Hide GF alert on GitHub if found
|
3015 |
| - if (location.host == 'github.com') { |
| 3015 | + if (location.host == 'github.com') { // hide GF alert |
3016 | 3016 | const gfAlert = [...document.querySelectorAll('.markdown-alert')]
|
3017 | 3017 | .find(alert => alert.textContent.includes('Greasy Fork'))
|
3018 | 3018 | return !gfAlert ? undefined : gfAlert.style.display = 'none'
|
|
3030 | 3030 | appDivParent.prepend(app.div)
|
3031 | 3031 | setTimeout(() => app.div.classList.add('active'), 100) // fade in
|
3032 | 3032 |
|
| 3033 | + // ANCHOR GoogleGPT in Google AI Mode |
| 3034 | + if (/udm=50(?:&|$)/.test(location.search)) { |
| 3035 | + toggle.anchorMode('on') |
| 3036 | + if (!env.browser.isMobile) { // hide Pin button + Anchor Mode setting |
| 3037 | + dom.get.loadedElem(`#${app.slug}-pin-btn`).then(btn => btn.style.display = 'none') |
| 3038 | + document.head.append(dom.create.style('li#anchored-settings-entry { display: none }')) |
| 3039 | + } |
| 3040 | + |
3033 | 3041 | // Strip Google TRACKING
|
3034 |
| - document.addEventListener(inputEvents.down, event => { |
| 3042 | + } else document.addEventListener(inputEvents.down, event => { |
3035 | 3043 | let a = event.target ; while (a && !a.href) a = a.parentElement ; if (!a) return // find closest ancestor href
|
3036 | 3044 | a.removeAttribute('ping') // prevent pingback on link click
|
3037 | 3045 | if (a.getAttribute('onmousedown')?.includes('rwt(')) {
|
|
0 commit comments