巴哈姆特之隨時隨地使用樓層電梯

在Co頁(單一樓層文章)也能使用樓層電梯,不限於C頁。

目前為 2018-11-16 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name 巴哈姆特之隨時隨地使用樓層電梯
  3. // @description 在Co頁(單一樓層文章)也能使用樓層電梯,不限於C頁。
  4. // @namespace nathan60107
  5. // @version 1.0
  6. // @author nathan60107(貝果)
  7. // @homepage https://home.gamer.com.tw/homeindex.php?owner=nathan60107
  8. // @include https://forum.gamer.com.tw/Co.php?*
  9. // ==/UserScript==
  10.  
  11. Forum.C.elevator = function(a, i, n) {//改寫電梯function使得Co頁也能使用
  12. if (a = a || window.event, 13 == a.keyCode) {
  13. var o = parseInt((a.target || a.srcElement).value, 10);
  14. if (!isNaN(o)){
  15. var c = window.location;
  16. c.href = "https://" + c.host + "/C.php" + "?bsn=" + i + "&snA=" + n + "&to=" + o
  17. }
  18. }
  19. }
  20.  
  21. //啟用被隱藏的電梯相關界面
  22. var obj = document.getElementsByClassName("jumpfloor");
  23. obj[0].style.display = "";

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址