Skip to content

Instantly share code, notes, and snippets.

@2bj
Created May 15, 2009 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2bj/112489 to your computer and use it in GitHub Desktop.
Save 2bj/112489 to your computer and use it in GitHub Desktop.
Букмарклет для хабры. Показывает самого самого в comment'ах топика.
/**
* Букмарклет для хабры (http://habrahabr.ru)
* Показывает самого самого в comment'ах топика.
*
* @author 2bj (dev2bj at gmail)
*
* @TODO: завернуть в userscripts.org
*/
javascript:(function(){try{var d=$("comments").getElements("ul li div ul.positive"),a=[],c;$each(d,function(f,e){a.push([$(f).getElement(".mark span").get("text").toInt(),f])});a.sort(function(f,e){return f[0]-e[0]});c=a.pop();new Fx.Scroll(window).toElement(c[1])}catch(b){}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment