Skip to content

Instantly share code, notes, and snippets.

@1Marc
Created August 29, 2016 19:45
Show Gist options
  • Save 1Marc/b192b96639f82366a8600275fec91f7b to your computer and use it in GitHub Desktop.
Save 1Marc/b192b96639f82366a8600275fec91f7b to your computer and use it in GitHub Desktop.
Tampermonkey remove ads
// ==UserScript==
// @name Remove Promoted Tweets and Activity Tab
// @namespace http://twitter.com
// @version 0.1
// @description Remove Twitter Garbage
// @author You
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
localStorage.removeItem( 'promoted_accounts' );
var divNode = document.createElement("div");
divNode.innerHTML = "<br><style>li.moments,.promoted-trend,.promoted-account,.promoted-tweet { display:none; }</style>";
document.body.appendChild(divNode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment