Reddit Sub Filter

Filter subs from r/all.

目前为 2015-05-30 提交的版本。查看 最新版本

// ==UserScript==
// @name        Reddit Sub Filter
// @namespace   http://*.reddit.*/r/all*
// @version     1.01
// @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',
	'creepy'
];

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 = ""
		}
	}
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址