Reddit Remove More From

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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] );
		}
	}
})();