EE:DB 500 Error Redirect

Works around a bug in HabboUK's EE:DB code to redirect to the log in page if signed out.

目前为 2024-11-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name EE:DB 500 Error Redirect
  3. // @description Works around a bug in HabboUK's EE:DB code to redirect to the log in page if signed out.
  4. // @namespace NDYC
  5. // @homepageURL https://github.com/noahc500
  6. // @match https://habbouk.com/eedb
  7. // @version 1.1
  8. // @author NDYC
  9. // @license GPL-3.0
  10. // ==/UserScript==
  11. if (document.getElementsByTagName('div')[2].innerText == "Server Error") {
  12. document.getElementsByTagName('div')[2].innerHTML = "Restricted Page<br/>Redirecting to Login"
  13. window.location.replace("https://habbouk.com/login")
  14. }