Filter subs from r/all.
目前為
// ==UserScript==
// @name RedditShitKiller
// @namespace http://*.reddit.*/r/all*
// @version 1.0
// @grant none
// @description:en Filter subs from r/all.
// @description Filter subs from r/all.
// ==/UserScript==
// This list based on: https://gist.github.com/kimagure/4490644
// Edit to your Reddit preferences.
horriblesubreddits = [
'trees',
'wtf',
// 'politics',
// 'gonewild',
// 'todayilearned',
// '4chan',
// 'pokemon',
// 'reactiongifs',
// 'fffffffuuuuuuuuuuuu',
// 'atheism',
// 'adviceanimals',
'firstworldanarchists',
'ImGoingToHellForThis',
'TwoXChromosomes',
// 'mildlyinteresting',
// 'nsfw',
'gentlemanboners',
// 'RealGirls'
];
var shitty_subs = document.getElementsByClassName("subreddit");
for (var i = shitty_subs.length - 1; i > -1; i--) {
var url = shitty_subs[i].href.toLowerCase();
for (var j = 0; j < horriblesubreddits.length; j++) {
if (url.indexOf(horriblesubreddits[j].toLowerCase()) != -1) {
// shitty_subs[i].parentNode.parentNode.remove();
shitty_subs[i].parentNode.parentNode.children[0].children[0].innerHTML = "{CENSORED}"
shitty_subs[i].parentNode.parentNode.children[0].children[0].style["font-weight"] = "bold"
shitty_subs[i].parentNode.parentNode.children[0].children[0].href = ""
shitty_subs[i].parentNode.parentNode.parentNode.children[3].href = ""
}
}
}