用于饥饿的猫的一个过滤评论的插件
// ==UserScript==
// @name 饥饿的猫评论过滤
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 用于饥饿的猫的一个过滤评论的插件
// @author HaiJeng
// @license MIT
// @match https://cn.ff14angler.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant none
// ==/UserScript==
(function (param) {
let fun = function () {
'use strict';
// Your code here...
let sar = [
'死一死', '屁股', '长嘴', '司马',
]
const cmls = document.getElementsByClassName('comment_list')[0];
let chls = cmls.childNodes;
let arr = [];
for (let it of chls) {
for (let s of sar) {
if (it.textContent.indexOf(s) > 0)
arr.push(it)
else if (it.innerText.indexOf(s) > 0)
arr.push(it)
}
}
for (let it of arr) {
cmls.removeChild(it);
}
};
window.onload = fun;
})()