Nova Hill Refresh on error

Automatically refreshes when encountering an error

  1. // ==UserScript==
  2. // @name Nova Hill Refresh on error
  3. // @description Automatically refreshes when encountering an error
  4. // @author Noah
  5. // @match https://nova-hill.com/*
  6. // @version 1.0
  7. // @namespace https://greasyfork.org/users/1436145
  8. // ==/UserScript==
  9.  
  10. if(document.querySelectorAll("body center h1").length != 0 && document.querySelectorAll("body center h1")[0].innerText.includes("503")) {
  11. document.location.reload()
  12. }