Skip to content

Instantly share code, notes, and snippets.

@Sai
Created April 20, 2011 13:52
Show Gist options
  • Save Sai/931385 to your computer and use it in GitHub Desktop.
Save Sai/931385 to your computer and use it in GitHub Desktop.
By McFog
javascript:(function(){var $a=$('a[href*=user/]'); var t={};var me;$a.each(function(){var $t=$(this);if($t.text().length<=0)return;var id=$t.attr('href').match(/user\/([^\/]*)/);if(!id)return;id=id[1];t[id]=$(this).text().replace(/^\s+|\s+$/,'');if($t.closest('#idBadger').size()>0) me=id;});delete(t[me]);var all=0,cursed=0;for(d in t){all++;if(/^\[.+]$/.test(t[d]))cursed++;};var r=parseInt(cursed/all*10000)/100;prompt('','本页共找到'+all+'名用户,其中'+cursed+'被感染,占'+r+'%')})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment