您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
屏蔽百度热搜、百度首页资讯、百度首页热榜、百度搜索页右侧相关网站.
当前为
// ==UserScript== // @name 屏蔽百度热搜、资讯、搜索页右侧相关网站、热榜 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 屏蔽百度热搜、百度首页资讯、百度首页热榜、百度搜索页右侧相关网站. // @author ysypnbh // @match *://www.baidu.com/* // @grant none // ==/UserScript== (function () { 'use strict'; // 未登录(不可用),关闭百度首页热榜 if (document.getElementById("s-hotsearch-wrapper")) { document.getElementById("s-hotsearch-wrapper").className += ' hide' } if (document.getElementById("head_wrapper")) { document.getElementById("head_wrapper").className += ' s-ps-islite' } // 已登录(不可用),关闭百度首页资讯 if (document.getElementsByClassName("s-manhattan-index")) { document.getElementsByClassName("s-manhattan-index").className += ' is-lite' } if (document.getElementById("s_menu_gurd")) { document.getElementById("s_menu_gurd").style.display = 'none' } if (document.getElementById("s_wrap")) { document.getElementById("s_wrap").style.display = 'none' } function closeContentRight() { if (location.hostname == "www.baidu.com") { var myVar = setInterval(function () { // 屏蔽百度搜closeContentRight索页右侧相关网站、百度热榜等 if (document.getElementById('content_right')) { document.getElementById('content_right').style.display = "none"; } if (document.getElementById('rrecom-container')) { document.getElementById('rrecom-container').style.display = "none"; } if (document.getElementsByClassName("opr-recommends-merge-content")[0]) { document.getElementsByClassName("opr-recommends-merge-content")[0].style.display = "none"; } }, 100); } } closeContentRight() // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址