B站隐藏动态直播和话题
// ==UserScript==
// @name B站动态中隐藏直播和话题
// @namespace http://tampermonkey.net/
// @version 0.1
// @description B站隐藏动态直播和话题
// @author y-hh
// @match https://t.bilibili.com/*
// @grant none
// @license MIT
// ==/UserScript==
var auto_close_live=document.getElementsByClassName('live-panel');
var auto_close2_huati=document.getElementsByClassName('new-topic-panel');
var myDate = new Date();
(function() {
'use strict';
//输出时间
var time=setInterval(function () {
console.log( "1.时间………………………………");
console.log(myDate.getHours()+"H,"+myDate.getMinutes()+"M");
clearInterval(time);
},500);
// B站动态中隐藏直播和话题
var auto_close=setInterval(function () {
console.log("2。````````````````");
auto_close_live[0].style.display = 'none';
auto_close2_huati[0].style.display = 'none';
clearInterval(auto_close);
},500);
var auto_close2=setInterval(function () {
clearInterval(auto_close);
clearInterval(auto_close2);
},1000);
}
)();