Greasy Fork

Greasy Fork is available in English.

简书微改-美化

小庄的脚本园

目前为 2021-04-22 提交的版本。查看 最新版本

// ==UserScript==
// @name         简书微改-美化
// @namespace    http://tampermonkey.net/
// @version      2.7.6
// @description  小庄的脚本园
// @author       zjazn
// @match        *://*.jianshu.com/p/*
// @grant        GM_getValue
// @grant        GM.getValue
// @grant        GM_setValue
// @grant        GM.setValue
// @run-at       document-start
// @match        <$URL$>
// ==/UserScript==

(function () {
    var i=0;
    var timeout = setInterval(function() {
         //console.log("查找");
        if(document.getElementsByClassName("_gp-ck")[0]) {
            document.getElementsByClassName("_gp-ck")[0].style="display:block;width:100%;padding:0px 80px;margin:10px auto;background:#ffffff;position:absolute;left:0px;right:0px;z-index:1000;opacity:1"

            /*var timeout1 = setTimeout(function() {
                if(document.getElementsByClassName("_2gPNSa")[0]) {
                    document.getElementsByClassName("_2gPNSa")[0].style="height:0px;background:red"
                }else {
                    clearTimeout(timeout1);
                }
            },20)*/




























        }else {
            //console.log("关闭");
            clearInterval(timeout);
        }
        i++
        if(i>500) {
           clearInterval(timeout);
        }

    },20)



})();