Quote (Reset @ Jan 25 2016 11:00pm)
when is the script going to be updated to take an array for the userid instead of variable
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';
}
}
http://forums.d2jsp.org/topic.php?t=73325562&f=27&p=495901955That is the most updated version with bug fixes.
This post was edited by AnimeFTW on Jan 26 2016 12:02am