st0le
1/27/2016 - 9:10 PM

Bookmarklet to clear out "<random-person> added <famous person> to <random-persons-project>" spam in the github feed.

Bookmarklet to clear out "<random-person> added 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);})();