Greasy Fork is available in English.

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

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

// ==UserScript==
// @name         52pojie搜索固定导航去除板块
// @namespace    http://tampermonkey.net/
// @version      0.1.1
// @description  去掉了规则板块,固定了导航
// @author       You
// @match        https://www.52pojie.cn/*
// @grant        none
// ==/UserScript==

(function() {
    document.onreadystatechange = function(){
        if(document.readyState == "complete"){
            var rule = document.querySelector('div[id^="forum_rules"]');
            if(rule) rule.style.display="none";
        }
    }
    var thred = document.getElementById("threadlisttableid");
    if(thred){
        var child = thred.children;
		for(var i=0,len=child.length;i<len;i++){
			if(child[i+1].getAttribute("id") == "separatorline"){
				break;
			}else{
				child[i].style.display="none";
			}
		}
    }
    window.onscroll=function(e){
        var scroll=document.documentElement.scrollTop || document.body.scrollTop;
        var doc=document.getElementById("scbar");
        if(doc){
            if(scroll>84){
                doc.style.cssText="position:fixed;top:33px;z-index:999;width:100%"
            }else{
                doc.style.cssText=""
            }
        }
    }
    //让页面显示回到顶部按钮
    var pre = document.getElementById("goTopBtn");
    pre.style.display = "block";
    //var goto = document.createElement("li");
})();