So after @Rick-Sanchez got banned, I decided to take it upon myself to write some JavaScript to make it so that you can ignore people's posts. I wrote a TamperMonkey script, which is a Google Chrome extension that lets you tamper with web pages you visit after the fact. Once there, you can just plop some JavaScript in there and it'll plop that ontop of your page. Pretty neat.
I call this code NodeBB STFU. It works on all MU Soapbox URLs, but if you change the @match line, you can make it match other sites, too.
Here's the code:
// ==UserScript==
// @name         NodeBB STFU
// @namespace    http://nodebb.stfu/
// @version      0.1
// @description  Make people shut the fuck up on NodeBB by ignoring them
// @author       Bug In A Jar
// @match        http://musoapbox.net/*
// @grant        none
// @require      https://code.jquery.com/jquery-2.2.3.min.js
// ==/UserScript==
jQuery.noConflict();
shit_list = ["silentsophia", "vorpal"];
for (i = 0; i< shit_list.length; i++)
{
  shit_list[i] = shit_list[i].toLowerCase();
}
show_hidden = true;
function stfu()
{
  jQuery.each(jQuery("li[component=post]"), function (k, v) {
    username = jQuery(v).attr("data-username");
    if (shit_list.indexOf(username.toLowerCase()) != -1)
    {
      console.log("Found post by shitlisted user: " + username);
      if (show_hidden) {
        jQuery(v).addClass("deleted");
        jQuery(v).find(".content").html("Shitpost detected.");
      } else {
        jQuery(v).remove();
      }
    }
  });
}
$(window).on('action:ajaxify.end', stfu);
There are two parts of this code that you'll need to modify in order to get this to work:
- the shit_listvariable to include whoever you want to shut the fuck up. This is a standard JavaScript array, but it is not case sensitive
- the show_hiddenvariable lets you choose eithertrueorfalse. If you choosefalse, then it just deletes the post completely, but if you choosetrue, it shows that the person is blocked, but doesn't show their post. It looks something like this:
  
So, there you have it. You can now block posts on NodeBB, which is what MUSoapbox runs off of.
 
		
		
		
	

