Greasy Fork is available in English.

SMTH_BLACKLIST

blacklist based on oooOOOooo's code

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         SMTH_BLACKLIST
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  blacklist based on oooOOOooo's code
// @author       You
// @match        https://www.mysmth.net/nForum/
// @grant        none
// ==/UserScript==

(function() {

    var code = `
//黑名单,英文逗号分隔
//修改完记得刷新页面,重新加载这个js
var blacklist = "coollpe,xiaoju,baoai";

bArray = blacklist.split(',');

$("body").on('DOMSubtreeModified', "#body", function() {
//隐藏主题
document.querySelectorAll('a.c63f').forEach(a=>{
bArray.forEach(b=>{
if(a.innerText==b){
a.parentNode.parentNode.style.display = 'none';
}
});
});
//隐藏回复
document.querySelectorAll('span.a-u-name').forEach(n=>{
bArray.forEach(b=>{
if(n.childNodes[0].innerText==b){
n.parentNode.parentNode.parentNode.parentNode.parentNode.style.display="none"
}
});
});
});
`;

    var script = document.createElement('script');
    script.textContent = code;
    (document.head||document.documentElement).appendChild(script);
    script.remove();

})();