From 54d6c5ea38d54720b6df9bf85fee226b6924c9b6 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Sun, 15 Dec 2024 10:08:25 -0800 Subject: [PATCH] =?UTF-8?q?Removed=20no-longer=20needed=20skinny=20FF=20sc?= =?UTF-8?q?rollbar=20style=20=E2=86=9E=20[auto-sync=20from=20https://githu?= =?UTF-8?q?b.com/adamlui/ai-web-extensions]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- greasemonkey/autoclear-chatgpt-history.user.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/greasemonkey/autoclear-chatgpt-history.user.js b/greasemonkey/autoclear-chatgpt-history.user.js index c77ea06..c28c717 100644 --- a/greasemonkey/autoclear-chatgpt-history.user.js +++ b/greasemonkey/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 2024.12.15 +// @version 2024.12.15.1 // @license MIT // @icon https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?a8868ef // @icon64 https://media.autoclearchatgpt.com/images/icons/openai/black/icon64.png?a8868ef @@ -899,19 +899,7 @@ // Init UI props await Promise.race([chatgpt.isLoaded(), new Promise(resolve => setTimeout(resolve, 5000))]) // initial UI loaded await chatgpt.sidebar.isLoaded() - env.ui = { firstLink: chatgpt.getNewChatLink() } - - // Add/update TWEAKS style - const tweaksStyleUpdated = 1733992854076 // timestamp of last edit for this file's tweaksStyle - let tweaksStyle = document.getElementById('tweaks-style') // try to select existing style - if (!tweaksStyle || parseInt(tweaksStyle.getAttribute('last-updated')) < tweaksStyleUpdated) { - if (!tweaksStyle) { // outright missing, create/id/attr/append it first - tweaksStyle = document.createElement('style') ; tweaksStyle.id = 'tweaks-style' - tweaksStyle.setAttribute('last-updated', tweaksStyleUpdated.toString()) - document.head.append(tweaksStyle) - } - tweaksStyle.innerText = '* { scrollbar-width: thin }' // make FF scrollbar skinny to not crop toggle - } + env.ui = { firstLink: chatgpt.getNewChatLink() }; // Add STARS styles ['brs', 'wrs'].forEach(cssType => document.head.append(createStyle(GM_getResourceText(`${cssType}CSS`))))