From 6facbbee34465e8dae821fd6841ffa1a0395af81 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Thu, 30 Jan 2025 06:09:28 -0800 Subject: [PATCH] =?UTF-8?q?Made=20sidebar=20toggle=20only=20animate=20on?= =?UTF-8?q?=20not=20off=20=E2=86=9E=20[auto-sync=20from=20https://github.c?= =?UTF-8?q?om/adamlui/ai-web-extensions/tree/main/autoclear-chatgpt-histor?= =?UTF-8?q?y]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../autoclear-chatgpt-history.user.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chatgpt/autoclear-chatgpt-history/autoclear-chatgpt-history.user.js b/chatgpt/autoclear-chatgpt-history/autoclear-chatgpt-history.user.js index 6f8a4e1de8..094ade456c 100644 --- a/chatgpt/autoclear-chatgpt-history/autoclear-chatgpt-history.user.js +++ b/chatgpt/autoclear-chatgpt-history/autoclear-chatgpt-history.user.js @@ -225,7 +225,7 @@ // @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com // @author Adam Lui // @namespace https://github.com/adamlui -// @version 2025.1.30.4 +// @version 2025.1.30.5 // @license MIT // @icon https://assets.autoclearchatgpt.com/images/icons/openai/black/icon48.png?v=f461c06 // @icon64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06 @@ -797,7 +797,7 @@ } // Update scheme/state - this.update.scheme() ; this.update.state() // to opposite init state for animation on 1st load + this.update.scheme() ; this.update.state() // Add hover/click listeners this.div.onmouseover = this.div.onmouseout = event => // trigger OpenAI hover overlay @@ -828,8 +828,7 @@ + `.${this.class} > input { display: none }` // hide checkbox + `.${this.class} > span {` // switch span + 'position: relative ; width: 30px ; height: 15px ; border-radius: 28px ;' - + `background-color: var(--switch-${ // init opposite final color - config.autoclear ? 'disabled' : 'enabled' }-bg-color) ;` + + 'background-color: var(--switch-disabled-bg-color) ;' + `bottom: ${ env.ui.firstLink ? 0 : -0.15 }em ;` + `left: ${ env.browser.isMobile ? 169 : env.ui.firstLink ? 154 : 160 }px ;` + 'transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;' @@ -847,7 +846,6 @@ + 'position: absolute ; width: 12px ; height: 12px ; content: "" ; border-radius: 28px ;' + 'background-color: white ; left: 3px ; bottom: 1.25px ;' + 'box-shadow: var(--knob-box-shadow) ;' // make 3D - + `transform: translateX(${ config.autoclear ? 0 : 13 }px) ;` // init opposite final pos + 'transition: 0.4s ; -webkit-transition: 0.4s ; -moz-transition: 0.4s ;' + '-o-transition: 0.4s ; -ms-transition: 0.4s }' + `.${this.class} > label {` // toggle label