Code
// ==UserScript==
// @name Block Nekosama
// @description Block NekoSama's threads
// @match http://forums.d2jsp.org/forum.php?f=27*
// ==/UserScript==
// Preloaded with Nekosama and TABITHACAT
var userId = [ '434436', '1076980' ];
// Loop through all blocked users
for(var uid=0;uid<userId.length;uid++){
// Get all threads made by specific user
var els = document.querySelectorAll('tr > td:nth-child(3) > a[href="user.php?i=' + userId[uid] + '"]');
// Loop through all threads we just found
for(var i=0,l=els.length; i<l; i++){
// Make each thread invisible
els[i].parentNode.parentNode.style.display = 'none';
}
}
Really fucked up the script, this fixes a
major bug. Please use this version.