// ==UserScript==
// @name Hide the topic I don't want to see
// @namespace http://tampermonkey.net/
// @version 0.1
// @author Neko_Aria
// @include /^https?:\/\/(bgm\.tv|bangumi\.tv|chii\.in)
// @run-at document-end
// @grant none
// ==/UserScript==
(function () {
'use strict';
var hot = document.querySelectorAll("ul.sideTpcList")[1];
var topic = hot.querySelectorAll("li");
// 手动设置不想看到的话题关键词
var keyword = "リズと青い鳥";
for (let index = 0; index < topic.length; index++) {
const element = topic[index];
if (element.innerHTML.includes(keyword)) {
element.style.display = "none";
}
}
// ==UserScript==
// @name Hide the topic I don't want to see
// @namespace http://tampermonkey.net/
// @version 0.1
// @author Neko_Aria
// @include /^https?:\/\/(bgm\.tv|bangumi\.tv|chii\.in)
// @run-at document-end
// @grant none
// ==/UserScript==
(function () {
'use strict';
var hot = document.querySelectorAll("ul.sideTpcList")[1];
var topic = hot.querySelectorAll("li");
var keywordList = [];
// 手动添加不想看到的话题关键词,也可以直接是这个话题的标题
keywordList.push("分数");
keywordList.push("致郁");
for (let index = 0; index < topic.length; index++) {
const element = topic[index];
for (let index = 0; index < keywordList.length; index++) {
const keyword = keywordList[index];
if (element.innerHTML.includes(keyword)) {
element.style.display = "none";
}
}
}
不是,你怎么知道我想屏蔽那个的(
妹妹H不想看