Last active
August 10, 2019 16:31
-
-
Save alexander-yakushev/28936845b418410da4bdde8747bfa31b to your computer and use it in GitHub Desktop.
TamperMonkey script for hiding the distracting UI elements on Twitter
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 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