Created
May 15, 2009 23:23
-
-
Save 2bj/112489 to your computer and use it in GitHub Desktop.
Букмарклет для хабры. Показывает самого самого в comment'ах топика.
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
/** | |
* Букмарклет для хабры (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