52pojie搜索固定导航去除板块

去掉了规则板块,固定了导航

  1. // ==UserScript==
  2. // @name 52pojie搜索固定导航去除板块
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.1
  5. // @description 去掉了规则板块,固定了导航
  6. // @author You
  7. // @match https://www.52pojie.cn/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. document.onreadystatechange = function(){
  13. if(document.readyState == "complete"){
  14. var rule = document.querySelector('div[id^="forum_rules"]');
  15. if(rule) rule.style.display="none";
  16. }
  17. }
  18. var thred = document.getElementById("threadlisttableid");
  19. if(thred){
  20. var child = thred.children;
  21. for(var i=0,len=child.length;i<len;i++){
  22. if(child[i+1].getAttribute("id") == "separatorline"){
  23. break;
  24. }else{
  25. child[i].style.display="none";
  26. }
  27. }
  28. }
  29. window.onscroll=function(e){
  30. var scroll=document.documentElement.scrollTop || document.body.scrollTop;
  31. var doc=document.getElementById("scbar");
  32. if(doc){
  33. if(scroll>84){
  34. doc.style.cssText="position:fixed;top:33px;z-index:999;width:100%"
  35. }else{
  36. doc.style.cssText=""
  37. }
  38. }
  39. }
  40. //让页面显示回到顶部按钮
  41. var pre = document.getElementById("goTopBtn");
  42. pre.style.display = "block";
  43. //var goto = document.createElement("li");
  44. })();

QingJ © 2025

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