百度百科 排版优化

去掉不必要的元素

目前为 2019-06-09 提交的版本。查看 最新版本

// ==UserScript==
// @name         百度百科 排版优化
// @namespace    http://tampermonkey.net/
// @version      0.1.0
// @description  去掉不必要的元素
// @author       Mr.NameNull
// @match        *://baike.baidu.com/item/*
// ==/UserScript==

(function() {
    var styleText = 'A.topA,div#side-share,div.top-tool,div.professional-header,.navbar-wrapper{display:none !important;} div.page-background{Visibility:hidden;} div.polysemant-list{width:1400px;} div.polysemant-list-normal .polysemantList-header{width:1368px;} div.content{width:1400px !important;} div.main-content{width:1050px !important;} .content-wrapper .content{font:12px/1.5 "微软雅黑",sans-serif;} .body-wrapper div.para{font-size: 16px;}'
    var domURL = document.URL;
    var element = document.createElement('style');
    if(domURL.indexOf('baike.baidu.com')!==-1){
       element.innerHTML = styleText
    }
    document.documentElement.appendChild(element);
})();

QingJ © 2025

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