Skip to content

Instantly share code, notes, and snippets.

@runspired
Created September 1, 2012 06:42
Show Gist options
  • Save runspired/3565869 to your computer and use it in GitHub Desktop.
Save runspired/3565869 to your computer and use it in GitHub Desktop.
Make your timeline legible after a single user spams it
//just run this in the javascript console and you won't have to see that user's tweets until you leave or refresh the page!
function hideTweetsFromScreenName(s) {
var tweets = document.querySelectorAll('[data-screen-name='+s+']');
var length = tweets.length;
while(length--)
tweets[length].parentNode.hidden = true;
setTimeout((function(){ hideTweetsFromScreenName(s);}),100);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment