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() {