Last active
September 4, 2018 05:16
-
-
Save bpceee/073b20886e3a4e6eb9c961d60653bfc1 to your computer and use it in GitHub Desktop.
redditAdBlock
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 reddit ads | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.reddit.com/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let styleEl = document.createElement('style'); | |
document.head.appendChild(styleEl); | |
styleEl.sheet.insertRule("div[class*='promotedlink'] {display: none}", 0); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment