移除 bilibili 动态话题

移除 bilibili 网页端动态页面中的话题面板

// ==UserScript==
// @name         移除 bilibili 动态话题
// @namespace    http://tampermonkey.net/
// @version      0.1.0
// @description  移除 bilibili 网页端动态页面中的话题面板
// @author       wivl
// @match        https://t.bilibili.com/
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    let elemenDetection = setInterval(function(){
        if (document.getElementsByClassName('topic-panel')[0] != undefined) {
            let panels = document.getElementsByClassName('topic-panel')
            // console.log("panels[0]", panels[0])
            panels[0].style.display = "none"
            // console.log("panels[0].style.display", panels[0].style.display)
            clearInterval(elemenDetection)
        }
    }, 1)

})();