Last active
September 9, 2020 14:44
-
-
Save mrchief/74e25cc7a5a47efc1929fd79d7e86661 to your computer and use it in GitHub Desktop.
Remove Promoted Reddit Posts the simple way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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