Created
July 10, 2012 06:55
-
-
Save smugen/3081674 to your computer and use it in GitHub Desktop.
obtain the max resolution of picasa url
This file contains hidden or 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
| (function () { | |
| var hiresurl, | |
| hiresimg; | |
| hiresurl = function hiresurl (source) { return source.replace(/\/s\d+\//i, "/s0/"); }; | |
| hiresimg = function hiresimg (){ | |
| var imgs = document.getElementsByTagName("img"), | |
| len = imgs.length, | |
| img; | |
| for (var i = len-1; i+1; i--) { | |
| img = imgs[i]; | |
| img.src = hiresurl(img.src); | |
| } | |
| }; | |
| hiresimg(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment