Temporarily Suppress a Users Tweets
Recently I've noticed a problem with my twitter stream. It is full of people whose tweets I enjoy, but who tweet so much other users are being pushed below the fold too quickly. I don't want to unfollow these users so I wrote a bit of jquery that takes in a username and removes any tweets by them from your home stream.
A few things to note
- A simple refresh brings them back.
- Add multiple users to the suppress list by running the bookmarklet multiple times
- Tweets are removed every five seconds so, sometimes, a suppressed user's tweets will show up. Don't worry, we will suppress them shortly.
Usage
Copy the code below and paste into your browsers console.
Code
if(typeof who == "undefined" || !(who instanceof Array)){
who = [];
}
var name = prompt("Whose tweets do you want to temporarily remove?\nRefreshing will bring them back.", "@");
who[who.length] = name;
var remove = function(){
var items = $(".content .username");
var i = items.each(function(i,e){
var name = $(e).text();
if(who.indexOf(name)!=-1){
$(e).closest('li').remove();
}
});
setTimeout(remove , 5000);
}
setTimeout(remove , 1);