B站首页插件提示屏蔽

屏蔽B站首页的浏览器插件提示条

// ==UserScript==
// @name            B站首页插件提示屏蔽
// @name:en         Bilibili Extension Alert Block
// @namespace       http://tampermonkey.net/
// @version         0.15
// @description     屏蔽B站首页的浏览器插件提示条
// @description:en  Hide the extension alert on the main page of bilibili.com
// @author          Hikara
// @license         MIT
// @match           https://www.bilibili.com/*
// @icon            https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
// @grant           none
// ==/UserScript==

(function() {
    'use strict';

    // Function to hide elements
    function hideElements() {
            // remove the extension tip
            const elements = document.querySelectorAll('.adblock-tips').forEach(el => el.remove());
    }

    // Run the function after the page loads
    window.addEventListener('load', hideElements);
})();