Last active
June 5, 2021 00:32
-
-
Save lmika/d351fd229f67af2050a1ea2e2f33039a to your computer and use it in GitHub Desktop.
Hides trending topics and recommendations from 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 De-trend Twitter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hide trending topics from Twitter | |
// @author Leon Mika | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let newStyleSheetElem = document.createElement("STYLE"); | |
newStyleSheetElem.innerText = ` | |
div[aria-label='Timeline: Trending now'], | |
aside[aria-label='Who to follow'], | |
div[aria-label='Timeline: '] { | |
display: none !important; | |
} | |
`; | |
document.head.append(newStyleSheetElem); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment