Автоматически очищает историю чата при посещении chatgpt.com
Ниже показаны версии этого скрипта, в которых изменялся код. Показать все версии.
Added config.greasyForkURL, renamed config.ghRepoURL ↞ [auto-sync from adamlui/autoclear-chatgpt-history]
config.greasyForkURL
config.ghRepoURL
adamlui/autoclear-chatgpt-history
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]
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
config.assetHostURL
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
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
Показать все версии скрипта