Skip to content

Commit 3cd234f

Browse files
committed
1 parent 60c957d commit 3cd234f

3 files changed

Lines changed: 881 additions & 0 deletions

File tree

Lines changed: 293 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,293 @@
1+
<a id="top"></a>
2+
3+
<div align="right">
4+
<h6>
5+
<picture>
6+
<source type="image/svg+xml" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptautorefresh.com/images/icons/earth/white/icon32.svg">
7+
<img height=14 src="https://assets.chatgptautorefresh.com/images/icons/earth/black/icon32.svg">
8+
</picture>
9+
&nbsp;English |
10+
<a href="zh-cn/#readme">简体中文</a>
11+
</h6>
12+
</div>
13+
14+
# <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptautorefresh.com/images/icons/openai/white/icon32.png"><img width=23 src="https://assets.chatgptautorefresh.com/images/icons/openai/black/icon32.png"></picture> ChatGPT Auto Refresh ↻
15+
16+
<a href="../LICENSE.md">
17+
<img height=31 alt="[License: MIT]" src="https://img.shields.io/badge/License-MIT-orange.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
18+
<a href="https://github.com/adamlui/chatgpt-auto-refresh/blob/main/greasemonkey/chatgpt-auto-refresh.user.js">
19+
<img height=32 src="https://img.shields.io/github/size/adamlui/chatgpt-auto-refresh/greasemonkey/chatgpt-auto-refresh.user.js?label=Filesize&logo=databricks&logoColor=white&labelColor=464646&color=ff69b4&style=for-the-badge"></a>
20+
<a href="https://www.codefactor.io/repository/github/adamlui/chatgpt-auto-refresh">
21+
<img height=31 alt="[CodeFactor grade]" src="https://img.shields.io/codefactor/grade/github/adamlui/chatgpt-auto-refresh?label=Code+Quality&logo=codefactor&logoColor=white&labelColor=464646&color=b3ff68&style=for-the-badge"></a>
22+
<a href="https://github.com/KudoAI/chatgpt.js?utm_source=chatgpt_auto_refresh&utm_content=github_shield">
23+
<img height=31 alt="[Powered by chatgpt.js]" src="https://img.shields.io/badge/Powered_by-chatgpt.js-black?logo=gamejolt&logoColor=white&labelColor=464646&style=for-the-badge"></a>
24+
<a href="https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=adamlui_chatgpt-auto-refresh">
25+
<img height=31 alt="[SonarCloud vulnerabilities]" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dadamlui_chatgpt-auto-refresh%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonar&logoColor=white&labelColor=464646&label=Vulnerabilities&color=gold"></a>
26+
<a href="https://github.com/awesome-scripts/awesome-userscripts#-chatgpt">
27+
<img height=31 alt="[Mentioned in Awesome]" src="https://img.shields.io/badge/Mentioned_in-Awesome-cb48dc?logo=awesomelists&logoColor=white&labelColor=464646&style=for-the-badge"></a>
28+
<a href="https://www.jsdelivr.com/package/gh/adamlui/chatgpt-auto-refresh?tab=stats">
29+
<img height=31 alt="[jsDelivr stats]" src="https://img.shields.io/jsdelivr/gh/hm/adamlui/chatgpt-auto-refresh?style=for-the-badge&logo=jsdelivr&logoColor=white&label=jsDelivr%20Requests&labelColor=464646&color=2bbbd8"></a>
30+
31+
### Keeps ChatGPT sessions fresh via background requests to eliminate network errors + Cloudflare checks.
32+
33+
<a href="https://gm.chatgptautorefresh.com"><img height=45 alt="[Install this script]" src="https://assets.chatgptautorefresh.com/images/buttons/greasy-fork/install-button.svg"></a><a href="#-installation"><img height=45 alt="[How to install]" title="How to install" src="https://assets.chatgptautorefresh.com/images/buttons/greasy-fork/help-button.svg"></a>
34+
<br>
35+
[Discuss](https://github.com/adamlui/chatgpt-auto-refresh/discussions) /
36+
[Get support](https://support.chatgptautorefresh.com) /
37+
[Contact author](https://github.com/adamlui)
38+
39+
#
40+
41+
<div align="center">
42+
43+
![](https://user-images.githubusercontent.com/10906554/234756105-cf367acc-644a-49ee-8586-43c51d43e359.png)
44+
<img width=355 src="https://assets.chatgptautorefresh.com/images/screenshots/mode-notification-on.png">
45+
46+
</div>
47+
48+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
49+
50+
## 💡 What it does
51+
52+
- Removes **10-minute time limit** from conversations (when in Temporary Chat mode)
53+
54+
- Get rid of annoying **Cloudflare checks**:
55+
56+
<div align="center">
57+
58+
![](https://assets.chatgptautorefresh.com/images/alerts/cloudflare-stand-by.png)
59+
60+
</div>
61+
62+
- Get rid of annoying **ChatGPT network errors**:
63+
64+
<div align="center">
65+
66+
![](https://assets.chatgptautorefresh.com/images/alerts/chatgpt-something-went-wrong.png)
67+
![](https://assets.chatgptautorefresh.com/images/alerts/chatgpt-network-error.png)
68+
<img width=333 src="https://assets.chatgptautorefresh.com/images/alerts/chatgpt-error-generating-response.png">
69+
70+
</div>
71+
72+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
73+
74+
## 💊 Benefits
75+
76+
&nbsp;&nbsp;&nbsp;🛡️ <strong>Safe</strong> — No unnecessary account-related requests sent
77+
78+
&nbsp;&nbsp;&nbsp;🪶 <strong>Lightweight</strong> — Very little code used, only what's neccessary (keep session alive) saving memory
79+
80+
&nbsp;&nbsp;&nbsp;⌛ <strong>Time-saver</strong> — No more constant copy/paste/refresh just from minutes of inactivity!
81+
82+
&nbsp;&nbsp;&nbsp;🤯 <mark>Works ***even in background tabs!***</mark>
83+
84+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
85+
86+
## 🗨️ User feedback
87+
88+
<img width=535 src="https://assets.chatgptautorefresh.com/images/reviews/greasy-fork.png">
89+
90+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
91+
92+
## 🚀 Installation
93+
94+
1. Install a userscript manager, such as:
95+
- 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)
96+
- Violentmonkey for [Firefox](https://addons.mozilla.org/firefox/addon/violentmonkey/) or [Edge](https://microsoftedge.microsoft.com/addons/detail/eeagobfjdenkkddmbclomhiblgggliao)
97+
- OrangeMonkey for [Chrome](https://chromewebstore.google.com/detail/orangemonkey/ekmeppjgajofkpiofbebgcbohbmfldaf)
98+
- 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)
99+
- [Stay](https://apps.apple.com/app/stay-for-safari/id1591620171) or [Userscripts](https://apps.apple.com/app/userscripts/id1463298887) for Safari
100+
101+
2. Install [ChatGPT Auto Refresh](https://gm.chatgptautorefresh.com) userscript (will load in manager installed above)
102+
103+
3. Visit [chatgpt.com](https://chatgpt.com) as normal, and sessions will auto-refresh at a regular interval!
104+
105+
<div align="center">
106+
107+
![](https://assets.chatgptautorefresh.com/images/screenshots/sidebar-toggle-on.png)
108+
109+
</div>
110+
111+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
112+
113+
## ⚡ Dependencies
114+
115+
<h6>
116+
<div align="center">
117+
118+
<a href="https://chatgpt.js.org">
119+
<picture>
120+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptjs.org/images/logos/chatgpt.js/with-reflection/darkmode/logo-6014x1334.png?v=8169c77">
121+
<img width=546 src="https://assets.chatgptjs.org/images/logos/chatgpt.js/with-reflection/lightmode/logo-6014x1334.png?v=8169c77">
122+
</picture>
123+
</a>
124+
<br><br>
125+
126+
ChatGPT Auto Refresh relies on code from the powerful <a href="https://github.com/KudoAI/chatgpt.js">chatgpt.js</a> library
127+
<br>© 2023–2026 <a href="https://www.kudoai.com">KudoAI</a> & contributors under the MIT license.
128+
129+
</div>
130+
</h6>
131+
132+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
133+
134+
## 🌐 Compatibility
135+
136+
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):
137+
138+
- [Google Chrome](https://www.chrome.com)
139+
- [Mozilla Firefox](https://www.firefox.com)
140+
- [Microsoft Edge](https://www.microsoft.com/edge)
141+
- [Opera](https://www.opera.com)
142+
- [Brave](https://brave.com)
143+
- [Vivaldi](https://vivaldi.com)
144+
- [Waterfox](https://www.waterfox.net)
145+
- [LibreWolf](https://librewolf.net)
146+
- [Ghost](https://ghostbrowser.com)
147+
- [QQ](https://browser.qq.com)
148+
149+
<br>
150+
151+
<a href="https://gm.chatgptautorefresh.com"><img height=45 alt="[Install this script]" src="https://assets.chatgptautorefresh.com/images/buttons/greasy-fork/install-button.svg"></a><a href="#-installation"><img height=45 alt="[How to install]" title="How to install" src="https://assets.chatgptautorefresh.com/images/buttons/greasy-fork/help-button.svg"></a>
152+
<br>
153+
[Discuss](https://github.com/adamlui/chatgpt-auto-refresh/discussions) /
154+
[Get support](https://support.chatgptautorefresh.com) /
155+
[More ChatGPT userscripts](https://github.com/adamlui/userscripts/tree/master/chatgpt)
156+
157+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
158+
159+
## 🧠 Contributors
160+
161+
This project exists thanks to code, testing, issues, translations & ideas from the following contributors:
162+
163+
<div align="center">
164+
165+
<a href="https://github.com/adamlui">
166+
<img width=50 title="@adamlui" src="https://avatars.githubusercontent.com/u/10906554?first-contrib=2023.03.23"></a>
167+
<a href="https://github.com/Camouflager">
168+
<img width=50 title="@Camouflager" src="https://avatars.githubusercontent.com/u/26111796?first-contrib=2023.04.02"></a>
169+
<a href="https://github.com/ArtificialTruth">
170+
<img width=50 title="@ArtificialTruth" src="https://avatars.githubusercontent.com/u/3297866?first-contrib=2023.04.04"></a>
171+
<a href="https://github.com/Liumeng404">
172+
<img width=50 title="@Liumeng404" src="https://avatars.githubusercontent.com/u/25640306?first-contrib=2023.04.05"></a>
173+
<a href="https://github.com/mzvast">
174+
<img width=50 title="@mzvast" src="https://avatars.githubusercontent.com/u/8097465?first-contrib=2023.04.08"></a>
175+
<a href="https://github.com/halvabner">
176+
<img width=50 title="@halvabner" src="https://avatars.githubusercontent.com/u/130675714?first-contrib=2023.04.13"></a>
177+
<a href="https://github.com/Cupcc">
178+
<img width=50 title="@Cupcc" src="https://avatars.githubusercontent.com/u/53716543?first-contrib=2023.04.15"></a>
179+
<a href="https://github.com/gydx6">
180+
<img width=50 title="@gydx6" src="https://avatars.githubusercontent.com/u/45654564?first-contrib=2023.04.16"></a>
181+
<a href="https://github.com/NoahXcl">
182+
<img width=50 title="@NoahXcl" src="https://avatars.githubusercontent.com/u/81360639?first-contrib=2023.04.16"></a>
183+
<a href="https://github.com/selfboot">
184+
<img width=50 title="@selfboot" src="https://avatars.githubusercontent.com/u/2769831?first-contrib=2023.04.17"></a>
185+
<a href="https://github.com/maplepicker">
186+
<img width=50 title="@maplepicker" src="https://avatars.githubusercontent.com/u/116735067?first-contrib=2023.04.18"></a>
187+
<a href="https://github.com/Cloudkkk">
188+
<img width=50 title="@Cloudkkk" src="https://avatars.githubusercontent.com/u/58101940?first-contrib=2023.04.19"></a>
189+
<a href="https://github.com/chenzhihao1040728129">
190+
<img width=50 title="@chenzhihao1040728129" src="https://avatars.githubusercontent.com/u/49114216?first-contrib=2023.04.23"></a>
191+
<a href="https://greasyfork.org/users/1041317-dlzrncsb">
192+
<picture>
193+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptautorefresh.com/images/icons/web-stores/greasy-fork/white/icon50.png">
194+
<img width=50 src="https://assets.chatgptautorefresh.com/images/icons/web-stores/greasy-fork/black/icon50.png?first-contrib=2023.4.24-short-interval-complaint-leading-to-custom-interval-idea" title="dlzrncsb">
195+
</picture></a>
196+
<a href="https://github.com/Zin6969">
197+
<img width=50 title="@Zin6969" src="https://avatars.githubusercontent.com/u/131989355?first-contrib=2023.04.27"></a>
198+
<a href="https://github.com/nabilfreeman">
199+
<img width=50 title="@nabilfreeman" src="https://avatars.githubusercontent.com/u/2470659?first-contrib=2023.08.03-chat-reset-issue"></a>
200+
<a href="https://github.com/h-h-h-h">
201+
<img width=50 title="@h-h-h-h" src="https://avatars.githubusercontent.com/u/13482553?first-contrib=2023.10.05-chat-reset-fix"></a>
202+
<a href="https://github.com/xspeed1989">
203+
<img width=50 title="@xspeed1989" src="https://avatars.githubusercontent.com/u/5162926?first-contrib=2023.11.27-ui-change-report"></a>
204+
<a href="https://github.com/Chipsum">
205+
<img width=50 title="@Chipsum" src="https://avatars.githubusercontent.com/u/37517008?first-contrib=2023.12.05-first-button-bug-report"></a>
206+
<a href="https://github.com/Yash-Singh1">
207+
<img width=50 title="@Yash-Singh1" src="https://avatars.githubusercontent.com/u/53054099?first-contrib=2023.2.3-added-eslint-plugin-userscripts"></a>
208+
<a href="https://github.com/sanchomuzax">
209+
<img width=50 title="@sanchomuzax" src="https://avatars.githubusercontent.com/u/2911588?first-contrib=2023.2.26-shortened-hungarian-menu-label"></a>
210+
<a href="https://greasyfork.org/users/670188-hacker09">
211+
<picture>
212+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptautorefresh.com/images/icons/web-stores/greasy-fork/white/icon50.png">
213+
<img width=50 src="https://assets.chatgptautorefresh.com/images/icons/web-stores/greasy-fork/black/icon50.png?first-contrib=2024.6.27-portuguese-translation-corrections" title="hacker09">
214+
</picture></a>
215+
<a href="https://github.com/eltociear">
216+
<img width=50 title="@eltociear" src="https://avatars.githubusercontent.com/u/22633385?first-contrib=2023.07.17-add-ja-doc-md"></a>
217+
<a href="https://github.com/ChinaGodMan">
218+
<img width=50 title="@ChinaGodMan" src="https://avatars.githubusercontent.com/u/96548841?first-contrib=2024.9.7-improved-chinese-msgs"></a>
219+
<a href="https://github.com/9romise">
220+
<img width=50 title="@9romise" src="https://avatars.githubusercontent.com/u/38204901?first-contrib=2024.12.13-revealed-unneeded-semicolons"></a>
221+
<a href="https://github.com/zkisaboss">
222+
<img width=50 title="@zkisaboss" src="https://avatars.githubusercontent.com/u/51681731?first-contrib=2025.7.5-suggested-scheme-aware-icons"></a>
223+
<a href="https://github.com/ImgBotApp">
224+
<img width=50 title="@ImgBotApp" src="https://avatars.githubusercontent.com/u/31427850"></a>
225+
<a href="https://github.com/dependabot">
226+
<img width=50 title="Dependabot" src="https://avatars.githubusercontent.com/in/29110"></a>
227+
<a href="https://chatgpt.com">
228+
<picture>
229+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptautorefresh.com/images/icons/chatgpt/black-on-white/icon50.png">
230+
<img title="ChatGPT" src="https://assets.chatgptautorefresh.com/images/icons/chatgpt/white-on-gray/icon50.png">
231+
</picture></a>
232+
<a href="https://https://chat.deepseek.com/">
233+
<picture>
234+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.aiwebextensions.com/images/icons/chatbots/deepseek/white/icon64.png">
235+
<img width=50 title="DeepSeek AI" src="https://assets.aiwebextensions.com/images/icons/chatbots/deepseek/black/icon64.png">
236+
</picture></a>
237+
238+
</div>
239+
240+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
241+
242+
<div id="sponsors" align="center">
243+
<br>
244+
245+
### Supported by:
246+
247+
<div id="warp">
248+
<br><br>
249+
<a href="https://www.warp.dev/chatgptjs">
250+
<img width="600" src="https://assets.chatgptjs.org/images/banners/warp/banner-1500x500.png?v=476e837">
251+
</a>
252+
<h3><a href="https://www.warp.dev/chatgptjs">
253+
Warp, the AI Devtool that lives in your terminal</a></h3>
254+
<i><a href="https://www.warp.dev/chatgptjs">
255+
Available for MacOS, Linux, & Windows</a></i>
256+
</div>
257+
<br><br>
258+
259+
</div>
260+
261+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
262+
263+
## 🤖 More ChatGPT apps
264+
265+
For even more epic ChatGPT apps, visit: https://github.com/adamlui/ai-web-extensions
266+
<br><br>
267+
268+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
269+
270+
## 📜 Related scripts
271+
272+
### <img width=17 src="https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon32.png"> [ChatGPT Widescreen](https://chatgptwidescreen.com) &nbsp;<img src="https://assets.chatgptwidescreen.com/images/badges/product-hunt/product-of-the-week-2-larger-centered-rounded-light.svg?v=02d9942" width="auto" height="24">
273+
> Enhances ChatGPT with wide/full/tall-screen + spamblock modes. Also works on poe.com!
274+
<br>[Install](https://docs.chatgptwidescreen.com/#-greasemonkey-userscript) /
275+
[Readme](https://docs.chatgptwidescreen.com/#readme) /
276+
[Discuss](https://github.com/adamlui/chatgpt-widescreen/discussions)
277+
278+
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptautocontinue.com/images/icons/app/white/icon32.png?v=7e2c739"><img height=16 src="https://assets.chatgptautocontinue.com/images/icons/app/black/icon32.png?v=7e2c739"></picture> [ChatGPT Auto-Continue](https://chatgptautocontinue.com) &nbsp;<a href="https://github.com/awesome-scripts/awesome-userscripts#-chatgpt"><img src="https://assets.chatgptautocontinue.com/images/badges/awesome/badge.svg"></a>
279+
> Automatically continue generating answers when ChatGPT responses get cut-off.<br>
280+
[Install](https://docs.chatgptautocontinue.com/#-installation) /
281+
[Readme](https://docs.chatgptautocontinue.com/#readme) /
282+
[Discuss](https://github.com/adamlui/chatgpt-auto-continue/discussions)
283+
284+
### <img width=16 src="https://assets.chatgptinfinity.com/images/icons/infinity-symbol/circled/icon32.png?65fcf31"> [ChatGPT Infinity](https://chatgptinfinity.com) &nbsp;<a href="https://chrome.chatgptinfinity.com/?utm_source=github&utm_medium=referral&utm_content=featured-by-google-badge"><img height=20 src="https://assets.chatgptinfinity.com/images/badges/chrome-web-store/featured-by-google/badge500x91.png"></a>
285+
> Generate endless answers from all-knowing ChatGPT (in any language!)
286+
<br>[Install](https://docs.chatgptinfinity.com/#-greasemonkey-userscript) /
287+
[Readme](https://docs.chatgptinfinity.com/#readme) /
288+
[Discuss](https://github.com/adamlui/chatgpt-infinity/discussions)
289+
290+
<img height=6px width="100%" src="https://assets.chatgptautorefresh.com/images/separators/gradient-aqua.png">
291+
292+
<a href="https://github.com/adamlui/userscripts">**More userscripts**</a> /
293+
<a href="#top">Back to top ↑</a>

0 commit comments

Comments
 (0)