您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
删除特定页面一些广告和没用的东西
// ==UserScript== // @name 删除广告 // @namespace 删除特定页面一些广告和没用的东西 // @description 删除特定页面一些广告和没用的东西 // @match https://baijiahao.baidu.com/* // @match https://mbd.baidu.com/* // @match http://mbd.baidu.com/* // @match https://www.baidu.com/* // @grant none // @version 1.0 // @author Pastors // @description 2022/11/18 下午4:51:05 // @license MIT // ==/UserScript== //百度系 if(location.host.indexOf("mbd.baidu.com") == 0){ if('https:' == document.location.protocol){ deleteChild("commentModule") }else{ deleteChild("commentContainer") } return; } else if (location.host.indexOf("baijiahao.baidu.com") == 0){ deleteChild("commentModule") return; } else { console.log('不是应用网站') return; } function deleteChild(str) { var div = document.getElementById(str); if(div != null){ div.remove(); } }