From 7ea9e94e8e26e4f19f26a50a5df18f9f8456d17f Mon Sep 17 00:00:00 2001 From: WhatTheMike Date: Mon, 8 Mar 2021 16:50:04 -0500 Subject: [PATCH] Added Reddit-RemovePostBar.js. --- README.md | 3 +++ javascript/Reddit-RemovePostBar.js | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 javascript/Reddit-RemovePostBar.js diff --git a/README.md b/README.md index a7c0c83..306334b 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,9 @@ Edit the script to point to the executables for each program and create a shortc **USPS-CollapseTracking.js** This is a tampermonkey script that collapses the 'see more' portion of the USPS tracking page and scrolls to the top. +**Reddit-RemovePostBar.js** +This script deletes the new post bar at the top of the reddit page that serves no purpose. + ### AppTweaks These items aren't really scripts but they are useful little changes I've made to various programs I use that I wanted to consolidate in to one place. Hopefully the comments explain what they all do well enough. diff --git a/javascript/Reddit-RemovePostBar.js b/javascript/Reddit-RemovePostBar.js new file mode 100644 index 0000000..cb5d927 --- /dev/null +++ b/javascript/Reddit-RemovePostBar.js @@ -0,0 +1,17 @@ +// ==UserScript== +// @name Delete New Reddit Post Bar +// @namespace http://reddit.com/ +// @version 1.0 +// @description Deletes the new post field that serves no purpose. +// @author WTMike24 +// @match https://www.reddit.com/* +// @icon https://www.google.com/s2/favicons?domain=reddit.com +// @grant none +// ==/UserScript== + +(function() { + 'use strict'; + + // Your code here... + document.body.getElementsByClassName("_2jJNpBqXMbbyOiGCElTYxZ")[0].remove(); +})();