The previous version was too half-assed, so I removed it. Then I actually got interested in making things work better, so here's version 2 of the userscript, which is about three-quarters-assed. It seems to work in Greasemonkey in Firefox, and will probably work in Tampermonkey in Chrome as well. Put users you want to ignore in the users array, and threads in the threads array. Spelling, capitalization, and punctuation matter. It doesn't eliminate users entirely (they can still message you, you'll still see quotes of them, threads they reply to will still pop up as having a new post, etc.) but it hides their posts and optionally threads they started.
If I get bored/inspired maybe I'll make a version 3 with more bells and whistles, but for now, here you go.
// ==UserScript==
// @name Go Away
// @namespace MSB
// @include http://musoapbox.net/*
// @version 2.0
// @run-at document-end
// @grant none
// ==/UserScript==
'use strict';
(function ($) {
// Users you want to ignore
var users = ["Name1","Name2","NameN"];
// Threads you want to ignore
var threads = ["Thread1","Thread2","ThreadN"];
// Ignore threads started by ignored users? (true or false)
var hideStartedBy = true;
function cleanUsers() {
$.each(users,function(index,value) {
$('li[data-username="'+value+'"]').css('display','none');
$('strong:contains("'+value+'")').closest('.card').css('display','none');
});
}
function cleanThreads() {
$.each(threads,function(index,value) {
$('meta[content="'+value+'"]').parent('li.row').css('display','none');
});
if (hideStartedBy) {
$.each(users,function(index,value) {
$('.pull-left img[data-original-title="'+value+'"]').closest('li[component="category/topic"]').css('display','none');
});
}
}
cleanUsers();
cleanThreads();
$(window).on('action:ajaxify.end', function(data) {
cleanUsers();
cleanThreads();
});
$(window).on('action:posts.loaded', function(data) {
cleanUsers();
});
$(window).on('action:topics.loaded', function(data) {
cleanUsers();
cleanThreads();
});
})(jQuery)