Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Bookmarklet to clear out "<random-person> added <famous person> to <random-persons-project>" spam in the github feed.
javascript:(function(){var user=$("meta[name='user-login']").attr('content');function removeNonFollowers(following){$("div.member_add").each(function(i,item){var actor=$(this).find("a")[0].innerHTML;if(following.indexOf(actor)<0)$(this).remove();});};var following=[];$.ajax("https://api.github.com/users/"+user+"/following").done(function(data){$.each(data,function(i,item){following.push(item.login);});removeNonFollowers(following);});setInterval(function(){removeNonFollowers(following);},1000);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment