Greasy Fork

500 Internal ERROR - MAL

When the ERROR message "500 Internal ERROR" is displayed the script will reload the page until MAL is sucessfully loaded...

目前为 2020-12-28 提交的版本。查看 最新版本

// ==UserScript==
// @name         500 Internal ERROR - MAL
// @namespace    MALFunction
// @version      0.6
// @description  When the ERROR message "500 Internal ERROR" is displayed the script will reload the page until MAL is sucessfully loaded...
// @author       hacker
// @match        https://myanimelist.net/*
// @icon         https://www.google.com/s2/favicons?domain=myanimelist.net
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if (document.querySelector("title").innerText === "500 Internal Server Error" || document.querySelector("title").innerText === "504 Gateway Time-out" || document.querySelector("title").innerText === "ERROR: The request could not be satisfied")
      {
        location.reload(); //Reloads the page
      }
})();