Skip to content

Instantly share code, notes, and snippets.

@mrchief
Last active September 9, 2020 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchief/74e25cc7a5a47efc1929fd79d7e86661 to your computer and use it in GitHub Desktop.
Save mrchief/74e25cc7a5a47efc1929fd79d7e86661 to your computer and use it in GitHub Desktop.
Remove Promoted Reddit Posts the simple way
// ==UserScript==
// @name Remove Promoted Reddit Posts
// @namespace http://reddit.com/
// @version 1.0
// @description try to take over the world!
// @author You
// @match https://www.reddit.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
function addGlobalStyle(css) {
let style = document.createElement('style')
style.innerHTML = css
document.head.appendChild(style)
}
addGlobalStyle('.promotedlink { display: none !important; }')
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment