Greasy Fork is available in English.
Автоматично изчиства чат историята при посещение на chatgpt.com
Има други версии на този скрипт, където кодът е обновен. Покажи всички версии.
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
msgs
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
updateToggleHTML()
insertToggle()
... 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]
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
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
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