Created
September 4, 2011 17:08
-
-
Save tvandervossen/1193159 to your computer and use it in GitHub Desktop.
XKCD bookmarklet for iOS
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%20get_img_w_longest_title()%7Bvar%20imgs=document.getElementsByTagName('img');max_title_length=0;max_img='';for(var%20i=0;i%3Cimgs.length;i++)%7Bif(imgs%5Bi%5D.title.length%3Emax_title_length)%7Bmax_title_length=imgs%5Bi%5D.title.length;max_img=imgs%5Bi%5D;%7D%7Dreturn%20max_img;%7Dalert(get_img_w_longest_title().title); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment