NGA hidden message auto open

simple but useful

  1. // ==UserScript==
  2. // @name NGA hidden message auto open
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description simple but useful
  6. // @author GitHub: isaacveg
  7. // @match *://*.nga.cn/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var pageURLCheckTimer = setInterval (
  12. function () {
  13. if ( this.lastPathStr !== location.pathname
  14. || this.lastQueryStr !== location.search
  15. || this.lastPathStr === null
  16. || this.lastQueryStr === null
  17. ) {
  18. this.lastPathStr = location.pathname;
  19. this.lastQueryStr = location.search;
  20. setTimeout(gmMain,500);
  21. }
  22. }
  23. , 100
  24. );
  25.  
  26. function gmMain () {
  27. var x = document.getElementsByName("lessernukeblk");
  28. for(var i=0;i<x.length;i++)
  29. {x[i].style.display = ""}
  30. x = document.getElementsByClassName("lessernuke lessernuke2")
  31. while(x.length != 0)
  32. {
  33. x[0].className = "postcontent ubbcode"
  34. }
  35. }

QingJ © 2025

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