Bilibili Hider

bilibili hide

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Bilibili Hider
// @description  bilibili hide
// @version      0.1.2
// @author       Kanna阿飘大hentai
// @namespace    http://weibo.com/Mr256luch
// @grant        none
// @include      https://live.bilibili.com/p/eden/area-tags?areaId=0&parentAreaId=9
// ==/UserScript==

(function() {
	setInterval(function() {

		var list = document.querySelectorAll('.text-info-ctnr span'), i;

		for(i=0; i<list.length; i++){
            if(list[i].getAttribute("title")){
                var thisStr = list[i].getAttribute("title")
                var findStr = ["转播","测试直播"]
                findStr.forEach(function (item, index, array) {
                    if(list[i].getAttribute("title").indexOf(item)+1){

                        list[i].parentNode.parentNode.parentNode.style.display = 'none';
                    }
                });
            }
        }
	}, 10);
})();