So, after over two decades of Internet exposure (I started with dial-up back before graphical browsers were even a thing), someone has
finally come along that has actually made me feel the necessity for the capability to block users on an Internet forum. One poster in over 2 decades. I always thought blocking other users was for pussies, but there comes a point where it's just plain practical.
So, without further ado, I introduce you all to the first iteration of my script:
var posts = document.getElementsByClassName('post');
console.log(posts);
for (var i = 0; i < posts.length; i++) {
var post = posts[i];
var user = post.getElementsByClassName('user-block')[0].getElementsByTagName('a')[0];
var user_id = parseInt(user.href.split("/").slice(-1)[0]);
var user_name = user.innerText;
console.log(user_id);
console.log(user_name);
if (user_id > 5791) {
console.log("User, "+user_name+", has been blocked.");
post.innerHTML = "<div style='color: #D5DEE5;'>User, "+user_name+", has been blocked.</div>";
};
};
Now, there might very well be others out there, even specifically for NiS... No idea. But what this one
currently does, is it basically just blocks posts from every user that has registered as of ~yesterday.
I'll probably tweak it to be more versatile over time, but for now, it's sufficient.
I would also add a search for "infinityshock", but, I imagine that would be pretty quickly overcome.
Also, this is clearly meant to be a temporary plugin, because it essentially "closes registration", in effect.
But it might be helpful for some of you right now.
If you don't use Firefox, I'm pretty sure there's an equivalent addon for Chrome and other browsers.