Wis automatisch de chatgeschiedenis bij een bezoek aan chatgpt.com
Dit zijn versies van het script waarin de code is bijgewerkt. Alle versies tonen.
Simplified handling post-localizedMsgs init ↞ [auto-sync from adamlui/chatgpt-apps]
localizedMsgs
adamlui/chatgpt-apps
Improved settings.load() to accept arrays for flexibility ↞ [auto-sync from adamlui/chatgpt-apps]
settings.load()
Moved config.notifDisabled check inside notify() to simplify calls ↞ [auto-sync from adamlui/chatgpt-apps]
config.notifDisabled
notify()
Updated localized msg handling to merge w/ instead of replace app.msgs ↞ [auto-sync from adamlui/chatgpt-apps]
app.msgs
Renamed menu.state.<symbol|word> to .<symbols|words> for readability ↞ [auto-sync from adamlui/chatgpt-apps]
menu.state.<symbol|word>
.<symbols|words>
Removed whitespace from No Update Found alert title ↞ [auto-sync from adamlui/chatgpt-apps]
Refactored No Update Available alert code for improved readability ↞ [auto-sync from adamlui/chatgpt-apps]
Removed duplicate app name from Update Available alert ↞ [auto-sync from adamlui/chatgpt-apps]
Moved app.msgs fallbacks in refs to obj init to condense code ↞ [auto-sync from adamlui/chatgpt-apps]
Moved msgs to app.msgs for improved structure ↞ [auto-sync from adamlui/chatgpt-apps]
msgs
Aligned symbols in menu.register() for readability ↞ [auto-sync from adamlui/chatgpt-apps]
menu.register()
Renamed amLabel to aboutLabel for readability ↞ [auto-sync from adamlui/userscripts]
amLabel
aboutLabel
adamlui/userscripts
Corrected launchAboutModal ref to modals.about.show ↞ [auto-sync from adamlui/userscripts]
launchAboutModal
modals.about.show
Moved modal functions into obj for improved structure ↞ [auto-sync from adamlui/userscripts]
Moved config init before settings for readability ↞ [auto-sync from adamlui/chatgpt-apps]
config
settings
Stripped trailing slashes from app.urls.assetHost + app.urls.mediaHost for readability ↞ [auto-sync from adamlui/chatgpt-apps]
app.urls.assetHost
app.urls.mediaHost
Moved menu objs/functions into menu obj for improved structure ↞ [auto-sync from adamlui/chatgpt-apps]
menu
Moved function defs up to align w/ my other userscripts ↞ [auto-sync from adamlui/chatgpt-apps]
Bumped chatgpt.js to 3.3.1 ↞ [auto-sync from adamlui/chatgpt-apps]
Moved safeWindowOpen() below modal function defs, shortened name ↞ [auto-sync from adamlui/chatgpt-apps]
safeWindowOpen()
Shortened app.urls.update init ↞ [auto-sync from adamlui/chatgpt-apps]
app.urls.update
Merged chatgpt.browser.isMobile() calls into env.browser.isMobile ↞ [auto-sync from adamlui/chatgpt-apps]
chatgpt.browser.isMobile()
env.browser.isMobile
Shortened env.browser.isFirefox to env.browser.isFF ↞ [auto-sync from adamlui/chatgpt-apps]
env.browser.isFirefox
env.browser.isFF
Shortened env.userscriptManager to env.scriptManager ↞ [auto-sync from adamlui/chatgpt-apps]
env.userscriptManager
env.scriptManager
Merged getUserscriptManager() calls + browser into env for improved structure ↞ [auto-sync from adamlui/chatgpt-apps]
getUserscriptManager()
browser
env
Removed erroneously added indents ↞ [auto-sync from adamlui/chatgpt-apps]
Wrapped settings methods to align w/ my Chrome extensions for improved readability ↞ [auto-sync from adamlui/chatgpt-apps]
Added fallbacks to first<Icon|Label> class extractions to futureproof vs. UI changes ↞ [auto-sync from adamlui/chatgpt-apps]
first<Icon|Label>
Moved browser/UI props into obj for readability/scalability ↞ [auto-sync from adamlui/chatgpt-apps]
Removed no-longer needed isGPT4oUI ↞ [auto-sync from adamlui/chatgpt-apps]
isGPT4oUI
Bumped chatgpt.js to 3.3.0 ↞ [auto-sync from adamlui/chatgpt-apps]
Bumped chatgpt.js to 3.2.1 ↞ [auto-sync from adamlui/chatgpt-apps]
Bumped app.latestAssetCommitHash ↞ [auto-sync from adamlui/chatgpt-apps]
app.latestAssetCommitHash
Abstracted URLs into app.urls for improved maintainability ↞ [auto-sync from adamlui/chatgpt-apps]
app.urls
Separated static app data from config for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Shortened notif init in notify() ↞ [auto-sync from adamlui/chatgpt-apps]
notif
Bumped chatgpt.js to 3.0.2 ↞ [auto-sync from adamlui/chatgpt-apps]
Limited XHR request for msgs init to non-English user languages ↞ [auto-sync from adamlui/chatgpt-apps]
Added space after 🚀 in update alert ↞ [auto-sync from adamlui/chatgpt-apps]
Removed config.appSymbol from siteAlert(title) ↞ [auto-sync from adamlui/chatgpt-apps]
config.appSymbol
siteAlert(title)
Shortened Review button label in About modal ↞ [auto-sync from adamlui/chatgpt-apps]
Added 2nd layer shadow to dark mode toggle for more depth
± Moved assignment to insertToggle() to sync w/ scheme changes ↞ [auto-sync from adamlui/chatgpt-apps]
insertToggle()
Shrank toggle knob, added shadow ↞ [auto-sync from adamlui/chatgpt-apps]
Updated button label msg key names ↞ [auto-sync from adamlui/chatgpt-apps]
Eliminated unnecessary reliance on GM_openInTab ↞ [auto-sync from adamlui/chatgpt-apps]
GM_openInTab
Bumped config.latestAssetCommitHash
config.latestAssetCommitHash
Added glow to state word in notifs ↞ [auto-sync from adamlui/chatgpt-apps]
Added hover-zoom to modal buttons ↞ [auto-sync from adamlui/chatgpt-apps]
Updated Futurepedia URLs ↞ [auto-sync from adamlui/chatgpt-apps]
Bumped chatgpt.js to 3.0.1 ↞ [auto-sync from adamlui/chatgpt-apps]
Bumped chatgpt.js to 3.0.0 ↞ [auto-sync from adamlui/chatgpt-apps]
Refined sidebar toggle elem positioning, made usable in Temporary Chat mode ↞ [auto-sync from adamlui/chatgpt-apps]
Updated parentToInsertInto in insertToggle() ↞ [auto-sync from adamlui/chatgpt-apps]
parentToInsertInto
Corrected menu state symbol for Toggle Visibility ↞ [auto-sync from adamlui/chatgpt-apps]
Removed notification from 1st auto-clear ↞ [auto-sync from adamlui/chatgpt-apps]
Styled state words in notifications ↞ [auto-sync from adamlui/chatgpt-apps]
Added white border to dark scheme chatgpt.alert()s ↞ [auto-sync from adamlui/chatgpt-apps]
chatgpt.alert()
Added OrangeMonkey + OrangeMonkey Pro support ↞ [auto-sync from adamlui/chatgpt-apps]
Added config.mediaHostURL ↞ [auto-sync from adamlui/chatgpt-apps]
config.mediaHostURL
Abstracted config.latestAssetCommitHash ↞ [auto-sync from adamlui/chatgpt-apps]
Removed erroneously duplicated code from updateToggleHTML() ↞ [auto-sync from adamlui/chatgpt-apps]
updateToggleHTML()
Condensed toggle update routine ↞ [auto-sync from adamlui/chatgpt-apps]
Unabbr'd + hyphen-cased ID names for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced 'Favicon' w/ more semantic 'Navicon' in ID name ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced .addEventListener()s w/ .on<event>s against best practices since it shortens codebase + widens browser compatibility ↞ [auto-sync from adamlui/chatgpt-apps]
.addEventListener()
.on<event>
Added // @contributionURL ↞ [auto-sync from adamlui/chatgpt-apps]
// @contributionURL
Condensed state init, renamed to menuState for readability ↞ [auto-sync from adamlui/chatgpt-apps]
state
menuState
Changed all document.querySelector()s of IDs to use .getElementById for improved efficiency ↞ [auto-sync from adamlui/chatgpt-apps]
document.querySelector()
.getElementById
Corrected region-stripping regex in msgs getter ↞ [auto-sync from adamlui/chatgpt-apps]
Updated insertToggle() to target outside links/history div post-GPT-4o UI to bypass temp chat mode disables toggle ↞ [auto-sync from adamlui/chatgpt-apps]
Reduced gap preceding 'View changes' link in Update Available alert ↞ [auto-sync from adamlui/chatgpt-apps]
Renamed alert() to siteAlert() to avoid potential namespace conflicts ↞ [auto-sync from adamlui/chatgpt-apps]
alert()
siteAlert()
Renamed modal ID var names for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Abstracted refreshMenu() ↞ [auto-sync from adamlui/chatgpt-apps]
refreshMenu()
Added timeouts to `await`s of `isLoaded` promises for unhindered program flow
Eliminated toCamelCase() for smaller filesize
toCamelCase()
Restricted global msg fetching to non-English sys lang env for faster load ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
adamlui/autoclear-chatgpt-history
Bumped chatgpt.js to 2.6.10 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Re-added chat.openai.com @match in case OpenAI changes mind again in futur ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
@match
Replaced chat..openai.com in description/match meta w/ new chatgpt.com ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Updated icon meta URLs to cdn.jsdelivr.net ones ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Generalized config.assetHostURL for easier re-use ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.assetHostURL
Replaced raw.githubusercontent.com config.assetHostURL w/ cdn.jsdelivr.net one ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.6.9 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Removed outdated chatgpt.history.is(On|Off)() conditions/logic ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
chatgpt.history.is(On|Off)()
Refactored msg fetcher for readability + if en/messages.json ever goes missing
const messages
Bumped chatgpt.js to 2.6.8 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.6.7 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added hyphens to script name regex in config.updateURL ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.updateURL
Further reduced potential for backtracking in config.updateURL regex ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Improved regex
± Eliminated potential for exponential/polynomial backracking in msgHref.replace regex by increasing specificity in capturing groups
msgHref.replace
Increased specificity in regex group to eliminate potential for polynomial backtracking ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.6.6 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added truncation to toggle label (adamlui/chatgpt-apps#30) ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.6.5 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added SRI hash to chatgpt.js ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added content comparison to doc sync to support sync_src ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
sync_src
Update auto-sync.yml ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Shrank toggle glow radius ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added hiding of sidebar gradient div in private mode ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added comment to navicon icon assignment ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Moved navicon.src assignment from updateToggleHTML() to insertToggle()
navicon.src
... to accomodate live scheme changes ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added background to toggle parent to hide chat log ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added light mode navicon ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Converted unnecessary template literal to string literal ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Replaced chatgpt.js import URL w/ npm one ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.6.4 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Updated copyright years ↞ [auto-sync from adamlui/chatgpt-apps]
Bumped chatgpt.js to 2.6.3 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Replaced all .appendChild()'s w/ .append()'s to shorten codebase ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
.appendChild()
.append()
Merged re_firstLinkText + re_firstButton, moved init up
re_firstLinkText
re_firstButton
updateButtons
updateBtns
Updated sidebar btn selector for free users
± Bumped chatgpt.js to 2.6.2 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.6.1 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Re-added await chatgpt.isLoaded() for style-check ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
await chatgpt.isLoaded()
Made FF scrollbar skinny to not crop toggle
± Renamed chatgptAlertStyle to tweaksStyle ± Renamed alertStyleUpdated to tweaksStyleUpdated ± Renamed #chatgpt-alert-override-style to #tweaks-style
chatgptAlertStyle
tweaksStyle
alertStyleUpdated
tweaksStyleUpdated
#chatgpt-alert-override-style
#tweaks-style
Bumped chatgpt.js to 2.6.0, removed isGizmoUI ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
isGizmoUI
Bumped chatgpt.js to 2.5.2 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Renamed camelCase(input) to toCamelCase(str) ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
camelCase(input)
toCamelCase(str)
Updated config key prefix var name in (load|save)Setting() ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
(load|save)Setting()
Added hyphen-stripping to camelCase(input) ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added config.appName + camelCase(input) ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.appName
Renamed notifHidden to notifDisabled ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
notifHidden
notifDisabled
Bumped chatgpt.js to 2.5.1 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Re-positioned mobile toggle switch ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added condition before removing forced cloaking on toggle ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added optional chaining to 1st toggle icon selection for class assignment ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Updated // @version ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
// @version
Updated hash in chatgpt.js import URL ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.5.0, replaced isMobileDevice()
isMobileDevice()
... w/ chatgpt.browser.isMobile() ± Updated mobile toggle switch position ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Shortened error args ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Tightened/loosened equality comparisons ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Moved toggle styling inline, renamed elem var names ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Updated switch style datestamp, corrected isGizmoUI casing ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Positioned mobile toggle, inserted space in toggle label ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Localized toggle label text ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Replaced .className ='s w/ more performant .classList.add()'s
.className =
.classList.add()
...when number of classes to add is low ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.4.2 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.4.1 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Re-added await chatgpt.history.isLoaded() to insertToggle()
await chatgpt.history.isLoaded()
...since 1st call for styles is async ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Updated config.updateURL init to allow nameless greasyForkURL's
greasyForkURL
Updated download/update URLs
Replaced .match() w/ faster method ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
.match()
Updated update/download URLs ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Removed post-initial await chatgpt.history.isLoaded()'s ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Replaced chatHistoryIsLoaded() w/ chatgpt.history.isLoaded() ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
chatHistoryIsLoaded()
chatgpt.history.isLoaded()
Narrowed update alerts ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Corrected latestVer name ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
latestVer
Added English fallbacks to localized messages ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.4.0 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Removed selicons + () around unmodded arg ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
()
Moved chatHistoryIsLoaded() last ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added comma, removed double negation ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Refactored code to work w/ new UI + replace outdated styles
± Bumped chatgpt.js to 2.3.19 ± Moved auto-clear on first visit down ± Converted callbacks to arrow functions ± Renamed toggleLabel to navToggleDiv
toggleLabel
navToggleDiv
Bumped chatgpt.js to 2.3.18 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.17 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Re-ordered script/menu function defs ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Defined launchAboutModal(), added nav back on no update found ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
launchAboutModal()
Bumped chatgpt.js to 2.3.16 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.15 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.14 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.13 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.12 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.11, removed alert button hover styles ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added array fallback to chatgptJSver, moved index extraction out ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
chatgptJSver
Lightened toggle-on bg ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added glow to toggle-on ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Re-colored toggle-on bg purple ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.10 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.9 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.8 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Narrowed About dialog ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Moved alert stylization before toggle's ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Increased alert button font size, stretched cluster leftward ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Moved stylesheet ID checks before inits ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added new About dialog buttons + alert styles
config.supportURL
Localized review modal ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.5 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Removed deprecated GitHub button localization ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Localized About dialog text ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Prepended missing messages obj ref, added const updateAlertID ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
messages
const updateAlertID
Localized About menu label + dialog text/buttons ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.4 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.3 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Removed optional chaining from GM_info.script.header ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
GM_info.script.header
Updated chatgpt.js ver detection to utillize GM_info ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
GM_info
Bumped chatgpt.js to 2.3.2 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.1 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.3.0 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.2.0 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.1.1 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added base to parseInt()'s ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
parseInt()
Removed protocol from // @match ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
// @match
Changed switchStyle.innerText to string concatenation ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
switchStyle.innerText
Replaced source code emoji in about dialog ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Re-positioned about dialog's GitHub link ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added missing comma ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Combined const inits, updated about dialog style ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
const
Removed unnecessary escape character ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.1.0 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Converted tabs to spaces ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Removed update auto-alert, changed config.updateURL
± Replaced messages.link_viewChanges w/ string ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
messages.link_viewChanges
Bumped chatgpt.js to 2.0.6 to avoid menu open on empty chat history ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.0.5 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Removed locale from config.greasyForkURL ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.greasyForkURL
Added config.greasyForkURL, renamed config.ghRepoURL ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.ghRepoURL
Added About modal, moved update check into it...
± Renamed checkForUpdates() to updateCheck() to not conflict w/ named function for modal button ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
checkForUpdates()
updateCheck()
Bumped chatgpt.js to 2.0.3 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 2.0.2 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Replaced ternary w/ OR operation ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
OR
Replaced string matching of regex w/ faster method ↞ [auto-sync from adamlui/chatgpt-apps]
Added noopener rel to prevent backdoor attacks ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
noopener
Bumped chatgpt.js to 2.0.0, added chatgpt.getUserLanguage() ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
chatgpt.getUserLanguage()
Bumped chatgpt.js to 1.12.0 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Changed config.prefix, condensed settings functions ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.prefix
Bumped chatgpt.js to 1.11.0 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 1.10.6 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 1.10.5 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 1.10.4 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 1.10.3 ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Changed update check frequency to weekly ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Re-ordered function defs ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Bumped chatgpt.js to 1.10.2, shortened regex in Update Available alert ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Refactored code, improved reload on update
± Re-ordered config init for readability
window.open()
GM_openInTab()
onClose
Improved readability of obj's, further abstracted update alert ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Added/updated meta, replaced config.ghHostDir
config.ghHostDir
± Updated name/description meta
Inserted config.ghHostDir into navicon.src ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
Removed depracated config.isActive, added config.updateURL ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.isActive
Added msgHostDir to let msgHref in message getter ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
msgHostDir
let msgHref
Fixed message getter
const msgHostDir
ghHostDir
Updated meta + config/state obj's, refactored code
± Updated/moved version/author/namespace meta ± Moved configPrefix + appSymbol into config obj ± Added config.ghHostDir + config.updateURL ± Replaced var's with const & let ± Moved stateSeparator into state obj
configPrefix
appSymbol
var
let
stateSeparator
Updated checkForUpdates()
± Shortened by eliminating var data ± Converted var's to const's ± Improved comparison loop to break early if up-to-date ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
var data
Added auto-reload on auto-update
Re-formatted Update Available alert
Updated sidebar toggle + on-load notification
± Prevented double-toggle on switch clicks ± Removed reliance on innerHTML to mitigate XSS vulnerability
Moved reset of skipNextUpdate to before auto-alert ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
skipNextUpdate