// ==UserScript== // @name 百度知道 简洁版 // @namespace Waley.Z // @version 0.0.1 // @description 去除百度知道的广告等 // @license unlicense // @grant GM_addStyle // @run-at document-start // @match *://*.zhidao.baidu.com/* // @downloadURL none // ==/UserScript== (function() { let css = ` #answer-bar.exp-answerbtn-yh:after{ display: none !important; } .task-list-button{ display: none !important; } .jump-top-box{ display: none !important; } .wgt-header-title .wgt-header-title-content .exp-topwld-tip{ display: none !important; } .nav-menu-container .nav-show-control .nav-menu-layout .nav-menu .nav-menu-content .content-box .menu-right-section .menu-right-list .menu-right-list-item .menu-right-list-link .new-icon{ display: none !important; } .nav-menu-container .nav-show-control .nav-menu-layout .nav-menu .nav-menu-content .content-box .menu-right-section .menu-right-list .menu-right-list-item .menu-right-list-link .phone-icon{ display: none !important; } .qb-section .qb-side{ display: none !important; } .question-all-answers-number .question-number-text-chain{ display: none !important; } .qb-section .qb-content{ width: 850px !important; border-right: none !important } `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();