How to catch status 503 in tampermonkey

后端 未结 3 492
粉色の甜心
粉色の甜心 2021-01-13 15:23

I have a userscript that refreshes the page every second, but sometimes the website it\'s trying to refresh runs into the status 503 error, and that stops the script from ru

3条回答
  •  无人及你
    2021-01-13 16:11

    The user-script run at page load, they won't run if page does not load at all for any status code other than 200. You can use