English | 简体中文
# ChatGPT Auto Refresh ↻ [License: MIT] [CodeFactor grade] [Powered by chatgpt.js] [SonarCloud vulnerabilities] [Mentioned in Awesome] [jsDelivr stats] ### Keeps ChatGPT sessions fresh via background requests to eliminate network errors + Cloudflare checks. [Install this script][How to install]
[Discuss](https://github.com/adamlui/chatgpt-auto-refresh/discussions) / [Get support](https://github.com/adamlui/chatgpt-auto-refresh/issues) / [Contact author](https://github.com/adamlui) #
![](https://user-images.githubusercontent.com/10906554/234756105-cf367acc-644a-49ee-8586-43c51d43e359.png)
## 💡 What it does - Removes **10-minute time limit** from conversations (when in Temporary Chat mode) - Get rid of annoying **Cloudflare checks**:
![](https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh/assets/images/alerts/cloudflare-stand-by.png)
- Get rid of annoying **ChatGPT network errors**:
![](https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh/assets/images/alerts/chatgpt-something-went-wrong.png) ![](https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh/assets/images/alerts/chatgpt-network-error.png)
## 💊 Benefits    🛡️ Safe — No unnecessary account-related requests sent    🪶 Lightweight — Very little code used, only what's neccessary (keep session alive) saving memory    ⌛ Time-saver — No more constant copy/paste/refresh just from minutes of inactivity!    🤯 Works ***even in background tabs!*** ## 🗨️ User feedback ## 🚀 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 [ChatGPT Auto Refresh](https://raw.githubusercontent.com/adamlui/chatgpt-auto-refresh/refs/heads/main/greasemonkey/chatgpt-auto-refresh.user.js) userscript (will load in manager installed above) 3. Visit [chatgpt.com](https://chatgpt.com) as normal, and sessions will auto-refresh at a regular interval!
![](https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh/assets/images/screenshots/sidebar-toggle-on.png)
## ⚡ Dependencies


ChatGPT Auto Refresh relies on code from the powerful chatgpt.js library
© 2023–2026 KudoAI & contributors under the MIT license.
## 🌐 Compatibility ChatGPT Auto Refresh 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) - [Waterfox](https://www.waterfox.net) - [LibreWolf](https://librewolf.net) - [Ghost](https://ghostbrowser.com) - [QQ](https://browser.qq.com)
[Install this script][How to install]
[Discuss](https://github.com/adamlui/chatgpt-auto-refresh/discussions) / [Get support](https://github.com/adamlui/chatgpt-auto-refresh/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 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/tree/main/docs/#-greasemonkey-userscript) / [Readme](https://github.com/adamlui/chatgpt-widescreen/tree/main/docs/#readme) / [Discuss](https://github.com/adamlui/chatgpt-widescreen/discussions) ### [ChatGPT Auto-Continue](https://github.com/adamlui/chatgpt-auto-continue/#readme)   > Automatically continue generating answers when ChatGPT responses get cut-off.
[Install](https://github.com/adamlui/chatgpt-auto-continue/tree/main/docs/#-installation) / [Readme](https://github.com/adamlui/chatgpt-auto-continue/tree/main/docs/#readme) / [Discuss](https://github.com/adamlui/chatgpt-auto-continue/discussions) ### [ChatGPT Infinity](https://github.com/adamlui/chatgpt-infinity/#readme)   > Generate endless answers from all-knowing ChatGPT (in any language!)
[Install](https://github.com/adamlui/chatgpt-infinity/tree/main/docs/#-greasemonkey-userscript) / [Readme](https://github.com/adamlui/chatgpt-infinity/tree/main/docs/#readme) / [Discuss](https://github.com/adamlui/chatgpt-infinity/discussions) **More userscripts** / Back to top ↑