Nova Hill Refresh on error

Automatically refreshes when encountering an error

// ==UserScript==
// @name         Nova Hill Refresh on error
// @description  Automatically refreshes when encountering an error
// @author       Noah
// @match        https://nova-hill.com/*
// @version      1.0
// @namespace https://greasyfork.org/users/1436145
// ==/UserScript==

if(document.querySelectorAll("body center h1").length != 0 && document.querySelectorAll("body center h1")[0].innerText.includes("503")) {
    document.location.reload()
}