Skip to content

Instantly share code, notes, and snippets.

@bradly
Created May 29, 2009 15:34
Show Gist options
  • Save bradly/120007 to your computer and use it in GitHub Desktop.
Save bradly/120007 to your computer and use it in GitHub Desktop.
// ==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