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-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name 500 Internal ERROR - MAL
  3. // @namespace MALFunction
  4. // @version 0.1
  5. // @description When the ERROR message "500 Internal ERROR" is displayed the script will reload the page until MAL is sucessfully loaded...
  6. // @author hacker
  7. // @match https://myanimelist.net/*
  8. // @icon https://www.google.com/s2/favicons?domain=myanimelist.net
  9. // @run-at document-end
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. if (document.querySelector("title").innerText === "500 Internal Server Error")
  16. {
  17. location.reload(); //Reloads the page
  18. }
  19. })();