Skip to content

Instantly share code, notes, and snippets.

@irachex
Created December 30, 2011 12:23
Show Gist options
  • Save irachex/1539614 to your computer and use it in GitHub Desktop.
Save irachex/1539614 to your computer and use it in GitHub Desktop.
豆瓣只看楼主
javascript:(function(){u=$(".topic-content .user-face a").attr("href");a=window.location.href.match(/\/(\d+)\//)[1];$("li.clearfix:not(:has(h4 a[href="+u+"]))").hide();h=$(".paginator");j=h.find(">a:last").text();k=1;$a=new Array;c=new Array;for(i=1;i<j;i++){$.ajax({url:"/group/topic/"+a+"/?start="+(i*100),success:function(data){d=$(data);n=d.find(".thispage").text()-1;$a[n]=d.find("li.clearfix:has(h4 a[href="+u+"])");c[n]=d.find(".paginator").html();if(n==k){do{$a[k].appendTo($(".topic-reply"));h.html(c[k]);k++;}while($a[k]!=undefined);}}});}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment