# Autoclear ChatGPT History [License: MIT] [CodeFactor grade] [Powered by chatgpt.js] [SonarCloud vulnerabilities] [Mentioned in Awesome] [jsDelivr stats] ### Auto-clears chat history when visiting chatgpt.com for maximum privacy [Install this script][How to install]
[Discuss](https://github.com/adamlui/autoclear-chatgpt-history/discussions) / [Get support](https://github.com/adamlui/autoclear-chatgpt-history/issues) / [Contact author](https://github.com/adamlui) # ![](https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history/assets/images/screenshots/demo.png)
## 🚀 Installation 1. Install a userscript manager, such as: - ScriptCat for [Chrome](https://chromewebstore.google.com/detail/scriptcat/ndcooeababalnlpkfedmmbbbgkljhpjf), [Firefox](https://addons.mozilla.org/firefox/addon/scriptcat/) or [Edge](https://microsoftedge.microsoft.com/addons/detail/scriptcat/liilgpjgabokdklappibcjfablkpcekh) - Violentmonkey for [Firefox](https://addons.mozilla.org/firefox/addon/violentmonkey/) or [Edge](https://microsoftedge.microsoft.com/addons/detail/eeagobfjdenkkddmbclomhiblgggliao) - OrangeMonkey for [Chrome](https://chromewebstore.google.com/detail/orangemonkey/ekmeppjgajofkpiofbebgcbohbmfldaf) - Tampermonkey for [Chrome](https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo), [Firefox](https://addons.mozilla.org/firefox/addon/tampermonkey/) or [Edge](https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd) - [Stay](https://apps.apple.com/app/stay-for-safari/id1591620171) or [Userscripts](https://apps.apple.com/app/userscripts/id1463298887) for Safari 2. Install [Autoclear ChatGPT History](https://raw.githubusercontent.com/adamlui/autoclear-chatgpt-history/refs/heads/main/greasemonkey/autoclear-chatgpt-history.user.js) userscript (will load in manager installed above) 3. Visit [chatgpt.com](https://chatgpt.com) as normal, and a toggle appears!
![](https://cdn.jsdelivr.net/gh/adamlui/autoclear-chatgpt-history/assets/images/screenshots/sidebar-toggle-on.png)
## ⚡ Dependencies


Autoclear ChatGPT History relies on code from the powerful chatgpt.js library
© 2023–2026 KudoAI & contributors under the MIT license.
## 🌐 Compatibility Autoclear ChatGPT History is compatible w/ the following browsers using [ScriptCat](https://docs.scriptcat.org), [Violentmonkey](https://violentmonkey.github.io), [OrangeMonkey](https://chromewebstore.google.com/detail/orangemonkey/ekmeppjgajofkpiofbebgcbohbmfldaf), [OrangeMonkey Pro](https://chromewebstore.google.com/detail/orangemonkey-pro/ggdmdoodcfamjggeigifpjfnnjfbland) or [Tampermonkey](https://www.tampermonkey.net): - [Google Chrome](https://www.chrome.com) - [Mozilla Firefox](https://www.firefox.com) - [Microsoft Edge](https://www.microsoft.com/edge) - [Opera](https://www.opera.com) - [Brave](https://brave.com) - [Vivaldi](https://vivaldi.com) - [LibreWolf](https://librewolf.net) - [Ghost](https://ghostbrowser.com) - [QQ](https://browser.qq.com)
[Install this script][How to install]
[Discuss](https://github.com/adamlui/autoclear-chatgpt-history/discussions) / [Get support](https://github.com/adamlui/autoclear-chatgpt-history/issues) / [More ChatGPT userscripts](https://github.com/adamlui/userscripts/tree/master/chatgpt) ## 🧠 Contributors

All contributions are very welcome! ## 🤖 More ChatGPT extensions For even more ChatGPT extensions, visit: ## 📜 Related scripts ### [ChatGPT Auto Refresh ↻](https://github.com/adamlui/chatgpt-auto-refresh/#readme)   > Keeps ChatGPT sessions fresh, eliminating chat time limits + network errors + Cloudflare checks.
[Install](https://github.com/adamlui/chatgpt-auto-refresh/#-installation) / [Readme](https://github.com/adamlui/chatgpt-auto-refresh/#readme) / [Discuss](https://github.com/adamlui/chatgpt-auto-refresh/discussions) ### [BraveGPT](https://bravegpt.com)   > Add AI answers to Brave Search (powered by GPT-4o!)
[Install](https://github.com/KudoAI/bravegpt/#-installation) / [Readme](https://github.com/KudoAI/bravegpt/#readme) / [Discuss](https://github.com/KudoAI/bravegpt/discussions) ### [ChatGPT Widescreen](https://github.com/adamlui/chatgpt-widescreen/#readme) > Enhances ChatGPT with wide/full/tall-screen + spamblock modes. Also works on poe.com!
[Install](https://github.com/adamlui/chatgpt-widescreen/#-installation) / [Readme](https://github.com/adamlui/chatgpt-widescreen/#readme) / [Discuss](https://github.com/adamlui/chatgpt-widescreen/discussions) **More userscripts** / Back to top ↑