Skip to content

Instantly share code, notes, and snippets.

@lmika
Last active June 5, 2021 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmika/d351fd229f67af2050a1ea2e2f33039a to your computer and use it in GitHub Desktop.
Save lmika/d351fd229f67af2050a1ea2e2f33039a to your computer and use it in GitHub Desktop.
Hides trending topics and recommendations from Twitter
// ==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