Reddit Remove More From

Removes the "more from subreddit" links that appear on comments pages when you are not signed in

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Reddit Remove More From
// @namespace    reddit_remove_more_from
// @description  Removes the "more from subreddit" links that appear on comments pages when you are not signed in
// @homepageURL  https://github.com/daraeman/reddit_remove_more_from
// @author       daraeman
// @version      1.2
// @date         2017-06-10
// @include      https://www.reddit.com/r/*/comments/*
// ==/UserScript==

(function() {
	var classes = [
		"seo-comments-recommendations",
		"seo-comments",
	];
	var ids = [
		"bottom-comments",
	];
	var children = [];
	classes.forEach( function( classname ){
		children.push( document.getElementsByClassName( classname ) );
	});
	ids.forEach( function( id ){
		children.push( [ document.getElementById( id ) ] );
	});
	for ( var a = 0; a < children.length; a++ ) {
		for ( var b = 0; b < children[ a ].length; b++ ) {
			children[a][b].parentNode.removeChild( children[a][b] );
		}
	}
})();