您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
移除b站首页右下角按钮广告和对应的横幅广告
// ==UserScript== // @name 去除b站首页右下角推广广告 // @namespace http://tampermonkey.net/ // @license Apache-2.0 // @version 0.1.1 // @author byhgz // @description 移除b站首页右下角按钮广告和对应的横幅广告 // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com // @noframes // @match *://www.bilibili.com/* // @require https://update.gf.qytechs.cn/scripts/462234/1470493/Message.js // ==/UserScript== "use strict"; "use strict"; const removeAds = () => { const i1 = setInterval(() => { const el = document.querySelectorAll(".ad-img"); if (el.length === 0) return; clearInterval(i1); for (let v of el) { v.remove(); } Qmsg.success("成功移除右下角按钮广告!"); }, 1000); const i2 = setInterval(() => { const el = document.querySelector(".adcard"); if (el === null) return; clearInterval(i2); el.remove(); Qmsg.success("成功移除右下角横幅广告!"); }, 1000); }; if (document.title === "哔哩哔哩 (゜-゜)つロ 干杯~-bilibili") { debugger; removeAds(); } else { console.log("非B站首页页面,不执行移除广告操作!"); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址