As you all know, the TI5 group stages started two days ago and undoubtedly you have been eagerly watching the streams and browsing the LR threads in anticipation of the finest Dota tournament of the year. If you are like me, however, every once in a while you may encounter an annoying post that you wish you didn't read. You may even notice that some users are more inclined to write annoying posts than others, and for an even smaller amount of users, virtually everything they post is nothing that you would ever want to read.
That is why I decided to take some 15 minutes of my life to hack up a userscript that allows you to mute posts in LR threads. You simply edit a line of code and install it and voila, all your problems will go away! If you aren't comfortable writing code, don't worry because most users in this forum will probably be satisfied with the default setting.
Installation Instructions
1. Install Greasemonkey if you're on Firefox and Tampermonkey if you're on Chrome.
2. Copy the following block of code:
+ Show Spoiler +
// ==UserScript==
// @name Mute Users in LiquidDota
// @description Mutes users in LiquidDota forums
// @match http://www.liquiddota.com/forum/*
// @grant none
// ==/UserScript==
// edit MUTED_USERS with the users you want to mute
// e.g. ["foo", "bar", "baz"]
// usernames are case sensitive
var MUTED_USERS = ["Azarkon"];
$(".fpost-username > span").each(function(index) {
var el = $(this);
for (var i = 0; i < MUTED_USERS.length; i++) {
if (el.text() == MUTED_USERS[i]) {
el.closest("header.titelhigh").siblings("article.forumPost").children().text("herp derp herp derp");
}
}
});
3. Open Greasemonkey/Tampermonkey and look for an option to add a new script.
4. Paste the code, adjusting MUTED_USERS as necessary.
5. Save it and make sure the script is enabled (Greasemonkey disables new scripts by default).
FAQ
Q: How do I specify which users I want to mute?
A: Edit MUTED_USERS to include the usernames that you want to mute.
Q: OMG you mean I have to actually edit code and reinstall this script every time I want to add/remove someone??!?! Why didn't you write a GUI interface?
A: Because this code wasn't written using Visual Basic and isn't being used to track an IP address.
How do I know you aren't writing malicious code to infect my browser?!?!
A: Learn JavaScript and find out for yourself