/ Published in: JavaScript
Released to the public domain. You may need to remove the newlines, though you won't need to in Chrome.
This will take you to the viewing page of the largest resolution of the image you are viewing if you are not viewing one of the alternate sizes; if so, it will load the file of the size being shown (i.e. if you are viewing an image click once to view the page with the largest version on, and once more to view the file of the largest version).
Expand |
Embed | Plain Text
javascript:function loadOriginal() { href = document.location.href; if(href.indexOf('sizes/')==-1) { user_regexp = /\/photos\/([^\/]+)\//; user_start = href.search(user_regexp); user = href.match(user_regexp)[0]; href = href.substring(user_start + user.length); next_slash = href.indexOf('/'); document.location = 'http://www.flickr.com' + user + href.substring(0, next_slash != -1 ? next_slash : href.length) + '/sizes/o/'; } else document.location = document.getElementById('allsizes-photo').innerHTML.match(/src=\"([^\"]+)\"/)[1]; } loadOriginal();
You need to login to post a comment.
