问题
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