巴哈-插入圖片-無限捲動

開啟「插入圖片」的視窗後,不用點「更多圖片」,就會自動一直冒出新的圖片

  1. // ==UserScript==
  2. // @name 巴哈-插入圖片-無限捲動
  3. // @namespace hbl917070
  4. // @homepage https://home.gamer.com.tw/homeindex.php?owner=hbl917070
  5. // @version 0.2
  6. // @description 開啟「插入圖片」的視窗後,不用點「更多圖片」,就會自動一直冒出新的圖片
  7. // @author hbl917070
  8. // @include https://forum.gamer.com.tw/C.php?bsn*
  9. // @include https://forum.gamer.com.tw/Co.php?bsn*
  10. // @include https://forum.gamer.com.tw/post1.php?bsn*
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14.  
  15. /**
  16. * 說明:
  17. * 開啟「插入圖片」的視窗後,不用點最下面的「更多圖片」,就會自動一直冒出新的圖片
  18. * https://forum.gamer.com.tw/C.php?bsn=60076&snA=4761161
  19. *
  20. * 更新資訊
  21. * 2019-03-26:改為自動不斷載入更多圖片
  22. *
  23. */
  24.  
  25. (function () {
  26.  
  27.  
  28. function func_取得更多小屋圖片() {
  29.  
  30. if (document.getElementsByClassName("uploadimage-home").length > 0) {
  31. document.getElementsByClassName("uploadimage-home__btn")[0].click(); //取得更多圖片
  32. }
  33.  
  34. setTimeout(function () {
  35. func_取得更多小屋圖片();
  36. }, 800);
  37. }
  38.  
  39. func_取得更多小屋圖片();
  40.  
  41.  
  42.  
  43.  
  44. })();

QingJ © 2025

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