|
225 | 225 | // @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
|
226 | 226 | // @author Adam Lui
|
227 | 227 | // @namespace https://github.com/adamlui
|
228 |
| -// @version 2025.1.30.4 |
| 228 | +// @version 2025.1.30.5 |
229 | 229 | // @license MIT
|
230 | 230 | // @icon https://assets.autoclearchatgpt.com/images/icons/openai/black/icon48.png?v=f461c06
|
231 | 231 | // @icon64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06
|
|
797 | 797 | }
|
798 | 798 |
|
799 | 799 | // Update scheme/state
|
800 |
| - this.update.scheme() ; this.update.state() // to opposite init state for animation on 1st load |
| 800 | + this.update.scheme() ; this.update.state() |
801 | 801 |
|
802 | 802 | // Add hover/click listeners
|
803 | 803 | this.div.onmouseover = this.div.onmouseout = event => // trigger OpenAI hover overlay
|
|
828 | 828 | + `.${this.class} > input { display: none }` // hide checkbox
|
829 | 829 | + `.${this.class} > span {` // switch span
|
830 | 830 | + 'position: relative ; width: 30px ; height: 15px ; border-radius: 28px ;'
|
831 |
| - + `background-color: var(--switch-${ // init opposite final color |
832 |
| - config.autoclear ? 'disabled' : 'enabled' }-bg-color) ;` |
| 831 | + + 'background-color: var(--switch-disabled-bg-color) ;' |
833 | 832 | + `bottom: ${ env.ui.firstLink ? 0 : -0.15 }em ;`
|
834 | 833 | + `left: ${ env.browser.isMobile ? 169 : env.ui.firstLink ? 154 : 160 }px ;`
|
835 | 834 | + 'transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;'
|
|
847 | 846 | + 'position: absolute ; width: 12px ; height: 12px ; content: "" ; border-radius: 28px ;'
|
848 | 847 | + 'background-color: white ; left: 3px ; bottom: 1.25px ;'
|
849 | 848 | + 'box-shadow: var(--knob-box-shadow) ;' // make 3D
|
850 |
| - + `transform: translateX(${ config.autoclear ? 0 : 13 }px) ;` // init opposite final pos |
851 | 849 | + 'transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;'
|
852 | 850 | + '-o-transition: 0.4s ; -ms-transition: 0.4s }'
|
853 | 851 | + `.${this.class} > label {` // toggle label
|
|
0 commit comments