87f589 No.5303
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
87f589 No.5320
找到了😡
(function() {
'use strict';
var id;
// 屏蔽词
var wordList = ["支那猪不屠能行吗",]
// 过滤所有主题内容含屏蔽词的串(包括其回复)
var threads = document.getElementsByClassName("thread");
for (let i = 0; i < threads.length; i++) {
var t = threads[i];
for (const j in wordList) {
if(t.children[1].innerText.indexOf(wordList[j]) != -1){
id = t.id;
document.getElementById(id).className = "hidden";
i-=1;
break;
}
}
}
//过滤所有内容含屏蔽词的回复
var replies = document.getElementsByClassName("post reply");
for (let i = 0; i < replies.length; i++) {
var r = replies[i];
for (const j in wordList) {
if(r.innerText.indexOf(wordList[j]) != -1){
id = r.id;
document.getElementById(id).className = "hidden";
i-=1;
break;
}
}
}
// Your code here...
})();
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.