From 3ea55eff941fde574d539faafaf4d93cf3812b4b Mon Sep 17 00:00:00 2001 From: adamlui Date: Thu, 27 Jun 2024 15:34:37 +0000 Subject: [PATCH] =?UTF-8?q?Added=20`config.mediaHostURL`=20=E2=86=9E=20[au?= =?UTF-8?q?to-sync=20from=20`adamlui/chatgpt-apps`]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- greasemonkey/autoclear-chatgpt-history.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/greasemonkey/autoclear-chatgpt-history.user.js b/greasemonkey/autoclear-chatgpt-history.user.js index 1a09ba2..c7e8eca 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.6.27 +// @version 2024.6.27.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 @@ -267,6 +267,7 @@ appName: 'Autoclear ChatGPT History', appSymbol: '🕶️', keyPrefix: 'autoclearChatGPThistory', gitHubURL: 'https://github.com/adamlui/autoclear-chatgpt-history', greasyForkURL: 'https://greasyfork.org/scripts/460805-autoclear-chatgpt-history', + mediaHostURL: 'https://media.autoclearchatgpt.com/', latestAssetCommitHash: 'f34c294' } // for cached messages.json + navicon config.updateURL = config.greasyForkURL.replace('https://', 'https://update.') .replace(/(\d+)-?([a-zA-Z-]*)$/, (_, id, name) => `${ id }/${ !name ? 'script' : name }.meta.js`) @@ -548,10 +549,9 @@ if (isGPT4oUI) navToggleDiv.style.flexGrow = 'unset' // overcome OpenAI .grow if (!firstLink) parentToInsertInto.children[0].style.marginBottom = '5px' navToggleDiv.style.paddingLeft = '8px' - document.getElementById('autoclear-toggle-navicon').src = ( // update navicon color in case scheme changed - 'https://media.autoclearchatgpt.com/images/icons/incognito/' + document.getElementById('autoclear-toggle-navicon').src = `${ // update navicon color in case scheme changed + config.mediaHostURL}images/icons/incognito/` + `${ chatgpt.isDarkMode() ? 'white' : 'black' }/icon32.png?${config.latestAssetCommitHash}` - ) } function updateToggleHTML() {