Reddit Chat Nuker

Removes the Reddit chat Element on all Reddit Pages

Click here to install Browse More Scripts
// ==UserScript==
// @name         Reddit Chat Nuker
// @namespace    d0818b583d7b785928dd2b41ece33bac65252bbd
// @version      0.3
// @description  Removes the Reddit chat Element on all Reddit Pages
// @author       /u/AyrA_ch
// @match        https://www.reddit.com/*
// @grant        none
// ==/UserScript==

// Changelog
// 0.3 Also remove chat link
// 0.2 Changed from "chat" id to "chat-app"
// 0.1 Initial Version

(function ($) {
	'use strict';

	//Link
	var lnk = $("#chat");
	if (lnk) {
		//Separator
		if (lnk.nextSibling) {
			lnk.nextSibling.remove();
		}
		lnk.remove();
	}

	//iFrame
	var c = $("#chat-app");
	if (c) {
		console.log("Reddit Chat Removed");
		c.remove();
	}
})(document.querySelector.bind(document));

/*
LICENSE:
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The full license text can be found here: http://creativecommons.org/licenses/by-nc-sa/4.0/
The link has an easy to understand version of the license and the full license text.

DISCLAIMER:
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/

Copyright © 2018 by Kevin Gut 📧 | More services | Generated for 3.232.129.123