您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
remove live mosaic mask
// ==UserScript== // @name b站直播马赛克去除 // @namespace http://msnets.com/ // @version 2024-10-27 // @description remove live mosaic mask // @author MeteorSky // @match https://live.bilibili.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com // @license Apache-2.0 // ==/UserScript== (function() { 'use strict'; function removeElementsByClassNames(classNames) { classNames.forEach(className => { const elements = document.querySelectorAll(`.${className}`); elements.forEach(element => element.remove()); }); } const classNamesToRemove = ['web-player-module-area-mask', 'web-player-module-area-mask-panel']; removeElementsByClassNames(classNamesToRemove); const observer = new MutationObserver(() => { removeElementsByClassNames(classNamesToRemove); }); observer.observe(document.body, { childList: true, subtree: true }); })();