Can I make a tampermonkey userscript reload the page when encountering 500 http codes?

泪湿孤枕 提交于 2019-12-11 02:56:48

问题


I have a userscript that travels from one page to another (using window.location). In about 10% times the page fails to load because of the target website being overhelmed by it's hude traffic (at times) or due to some other reasons. Refreshing fixes the issue, but it requires my presence, which is very limiting.

How can I get my userscript to reload the page? I haven't found a way to include the chrome's error page into @includes.

来源:https://stackoverflow.com/questions/21303027/can-i-make-a-tampermonkey-userscript-reload-the-page-when-encountering-500-http

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!