Skip to content

Instantly share code, notes, and snippets.

@st0le
Last active January 27, 2016 23:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save st0le/328f806a5b769088f6bd to your computer and use it in GitHub Desktop.
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