|
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.1.30.3 |
| 152 | +// @version 2025.1.30.4 |
153 | 153 | // @license MIT
|
154 | 154 | // @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
|
155 | 155 | // @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
|
|
1476 | 1476 | const switchSpan = document.createElement('span')
|
1477 | 1477 | Object.assign(switchSpan.style, {
|
1478 | 1478 | position: 'relative', left: '-1px', bottom:'-5.5px', float: 'right',
|
1479 |
| - backgroundColor: settingToggle.checked ? '#ccc' : '#AD68FF', // init opposite final color |
1480 |
| - width: '26px', height: '13px', borderRadius: '28px', |
| 1479 | + backgroundColor: '#ccc', width: '26px', height: '13px', borderRadius: '28px', |
1481 | 1480 | transition: '0.4s', '-webkit-transition': '0.4s', '-moz-transition': '0.4s',
|
1482 | 1481 | '-o-transition': '0.4s', '-ms-transition': '0.4s'
|
1483 | 1482 | })
|
1484 | 1483 |
|
1485 | 1484 | // Create/stylize knob
|
1486 | 1485 | const knobSpan = document.createElement('span')
|
1487 | 1486 | Object.assign(knobSpan.style, {
|
1488 |
| - position: 'absolute', left: '1px', bottom: '1px', backgroundColor: 'white', |
1489 |
| - width: '11px', height: '11px', content: '""', borderRadius: '28px', |
1490 |
| - transform: settingToggle.checked ? // init opposite final pos |
1491 |
| - 'translateX(0)' : 'translateX(14px) translateY(0)', |
| 1487 | + position: 'absolute', left: '1px', bottom: '1px', backgroundColor: 'white', content: '""', |
| 1488 | + width: '11px', height: '11px', borderRadius: '28px', transform: 'translateX(0)', |
1492 | 1489 | transition: '0.2s', '-webkit-transition': '0.2s', '-moz-transition': '0.2s',
|
1493 | 1490 | '-o-transition': '0.2s', '-ms-transition': '0.2s'
|
1494 | 1491 | })
|
|
1497 | 1494 | switchSpan.append(knobSpan) ; settingItem.append(settingToggle, switchSpan)
|
1498 | 1495 |
|
1499 | 1496 | // Update visual state w/ animation
|
1500 |
| - setTimeout(() => modals.settings.toggle.updateStyles(settingToggle), idx *25 -25) |
| 1497 | + setTimeout(() => modals.settings.toggle.updateStyles(settingToggle), +155) |
1501 | 1498 |
|
1502 | 1499 | // Add click listener
|
1503 | 1500 | settingItem.onclick = () => {
|
|
0 commit comments