Skip to content

Instantly share code, notes, and snippets.

@alexander-yakushev
Last active August 10, 2019 16:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexander-yakushev/28936845b418410da4bdde8747bfa31b to your computer and use it in GitHub Desktop.
Save alexander-yakushev/28936845b418410da4bdde8747bfa31b to your computer and use it in GitHub Desktop.
TamperMonkey script for hiding the distracting UI elements on Twitter
// ==UserScript==
// @name Twitter hide garbage
// @namespace http://tampermonkey.net/
// @version 0.1
// @match https://twitter.com/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle('div[data-testid="sidebarColumn"] { display: none; }');
GM_addStyle('header[role="banner"] { display: none; }');
GM_addStyle('div.r-rthrr5 { margin: auto; }');
GM_addStyle('div[aria-label="Top Tweets on"] { background-color: red; }');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment