Skip to content

Instantly share code, notes, and snippets.

@bpceee
Last active September 4, 2018 05:16
Show Gist options
  • Save bpceee/073b20886e3a4e6eb9c961d60653bfc1 to your computer and use it in GitHub Desktop.
Save bpceee/073b20886e3a4e6eb9c961d60653bfc1 to your computer and use it in GitHub Desktop.
redditAdBlock
// ==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