How to run Tampermonkey script if page fails to load?

↘锁芯ラ 提交于 2019-12-07 03:32:29

问题


I have a script which runs on pages of a server that sometimes sends doesn't send anything back to the clients (I get the No data received error in Chrome). I want to register this event (notify another server via AJAX) and then reload the page.

How can I make sure my script runs even if the page fails to load?

来源:https://stackoverflow.com/questions/23722801/how-to-run-tampermonkey-script-if-page-fails-to-load

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