Skip to content

Commit

Permalink
Added config.mediaHostURL ↞ [auto-sync from adamlui/chatgpt-apps]
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jun 27, 2024
1 parent bc2d4cb commit 3ea55ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions greasemonkey/autoclear-chatgpt-history.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`)
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 3ea55ef

Please sign in to comment.