Created
July 27, 2014 17:35
-
-
Save titanous/8ff674965094e875c2ec to your computer and use it in GitHub Desktop.
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 Declutter Twitter | |
// @namespace https://titanous.com | |
// @description Removes "Who To Follow", "Trends" and the legalese/footer | |
// @include http://twitter.com/* | |
// @include http://www.twitter.com/* | |
// @include https://twitter.com/* | |
// @include https://www.twitter.com/* | |
// @grant none | |
// ==/UserScript== | |
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
var css = "div.component[data-component-term='user_recommendations'], " + | |
"div.component[data-component-term='trends'], " + | |
"div.component[data-component-term='footer'], " + | |
"div.recent-followers-module, " + | |
"div.promoted-tweet, " + | |
"div.module.trends," + | |
"div.promptbird," + | |
"div.wtf-module, " + | |
"div.site-footer, " + | |
"div.Footer, " + | |
"div.ScrollBump--recentlyFollowed, " + | |
"div.ProfileWTFAndTrends, " + | |
"div#js-empty-timeline-recommendations-module-hook " + | |
"{ display: none !important; }"; | |
style.appendChild(document.createTextNode(css)); | |
document.getElementsByTagName("head")[0].appendChild(style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After installing the script and reloading the main page, twitter.com didn't notice any difference.
Mozilla Firefox 99.0.1 (64-bit), Tampermonkey 4.16.6160 (6 April 2022).