B站直播马赛克去除

在live.bilibili.com中移除id为 'web-player-module-area-mask-panel' 的元素

// ==UserScript==
// @name         B站直播马赛克去除
// @namespace    http://github.com/x7z0
// @version      0.1
// @description  在live.bilibili.com中移除id为 'web-player-module-area-mask-panel' 的元素
// @author       x7z0
// @match        *://live.bilibili.com/*
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to remove the element
    function removeElement() {
        var element = document.getElementById('web-player-module-area-mask-panel');
        if (element) {
            element.remove();
        }
    }

    // Run the function once the page has fully loaded
    window.addEventListener('load', removeElement);

    // Optionally, use a MutationObserver to handle dynamic content changes
    var observer = new MutationObserver(removeElement);
    observer.observe(document.body, { childList: true, subtree: true });
})();