Created
May 29, 2009 15:34
-
-
Save bradly/120007 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Cleanup | |
// @namespace BradlyFeeley | |
// @description Clean up Twitter's "promotion" area and trending topics | |
// @include http://twitter.com* | |
// @include http://www.twitter.com* | |
// @include https://twitter.com* | |
// @include https://www.twitter.com* | |
// ==/UserScript== | |
var p_tags = document.getElementsByTagName("p"); | |
for( i = 0; i < p_tags.length; i++ ) { | |
if( p_tags[i].className.match("promotion") == 'promotion') { | |
p_tags[i].style.display = "none"; | |
} | |
} | |
document.getElementById('trends').style.display = "none"; | |
document.getElementById('primary_nav').style.marginTop = "15px"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment