Last active
January 27, 2016 23:14
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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