Auto-clears chat history when visiting chatgpt.com
Dette er versjoner av dette scriptet hvor koden ble oppdatert. Vis alle versjoner.
Re-ordered function defs ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
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
config.assetHostURL
config.ghRepoURL
Inserted config.ghHostDir into navicon.src ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
navicon.src
Removed depracated config.isActive, added config.updateURL ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.isActive
config.updateURL
Added msgHostDir to let msgHref in message getter ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
msgHostDir
let msgHref
Fixed message getter
const msgHostDir
config
ghHostDir
Updated meta + config/state obj's, refactored code
state
± 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
const
let
stateSeparator
checkForUpdates()
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
Show all script versions