banner
绘素

绘素的Blog

twitter
github
email

Using a Tampermonkey script to solve the problem of needing to refresh the web version of ChatGPT.

The biggest problem with using the web version of ChatGPT is that you often encounter the error "Something went wrong." Usually, the only solution to this problem is to refresh the page. Previously, Plus users were spared from this issue, but recently OpenAI updated their risk control policy, so even Plus users can experience the same problem.

This error is mainly due to Cloudflare's risk control. Generally, the IP addresses of VPN services are more likely to encounter this risk control. You can use the website scamalytics.com to check the score of the IP address you are currently using, but please note that it is only for reference.

One feasible solution is to change to a clean IP address with fewer users. Generally, IP addresses that are less used in VPN services are either expensive or have high latency. However, this method is difficult for VPN users because there is no way to know the IP addresses of a VPN service before purchasing it. It is possible to spend a high price on a VPN service and still be subject to risk control.

Another solution is to deploy your own frontend and use an API key for access, but this means wasting Plus and not having GPT4.

Here are two Tampermonkey scripts that can solve the refreshing problem of ChatGPT.

Before using the Tampermonkey scripts, you need to install a Tampermonkey script manager. For desktop, there are Tampermonkey and Violentmonkey, and for iOS, there is Userscripts.

KeepChatGPT

Installation Link | Github

After installing the script, an icon will appear in the upper left corner of the webpage, indicating that the installation is complete.

The script will maintain the connection of the web version of ChatGPT at regular intervals. After the recent update, you can set the interval for maintaining the connection, such as every 60 seconds. The setting of this interval depends on your network environment. If the IP address is good, it won't disconnect even after 150 seconds. If the IP address is poor, it may disconnect after 60 seconds.

If you set the interval too long after using the script, resulting in the "Something went wrong." error, you will need to manually refresh the page. Before refreshing the page, remember to copy your input.

Auto reload

Installation Link | Github

This script has a similar function, but it automatically refreshes the page when there is an error or disconnection in the web version of ChatGPT. It also restores the previous input in the input box.

The script can also set the interval for maintaining the connection and the duration for stopping the maintenance in the background.

However, there is a small issue that if the input is too long and causes ChatGPT to error, it will also refresh the page.

Note:

Cloudflare's risk control not only detects IP addresses, but also keeping the ChatGPT web page in the foreground can effectively reduce the need for refreshing.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.