您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
移除B站直播播放器对聊天区和游戏击杀信息的马赛克(基于 MutationObserver)
// ==UserScript== // @name 移除B站直播马赛克 // @namespace https://github.com/SihenZhang // @license MIT // @version 1.0.0 // @description 移除B站直播播放器对聊天区和游戏击杀信息的马赛克(基于 MutationObserver) // @author SihenZhang // @match *://live.bilibili.com/* // @icon https://www.bilibili.com/favicon.ico // @grant none // ==/UserScript== (function() { 'use strict'; var observer = new MutationObserver(function (mutationsList, observer) { for (var i = 0; i < mutationsList.length; i++) { var mutation = mutationsList[i]; if (mutation.type === 'childList') { var element = document.getElementById('web-player-module-area-mask-panel'); if (element) { element.parentNode.removeChild(element); console.log('[移除B站直播马赛克] 马赛克已被移除'); } } } }); var livePlayer = document.getElementById('live-player'); observer.observe(livePlayer !== null && livePlayer !== void 0 ? livePlayer : document.body, { childList: true, subtree: true }); })();