'); document.body.innerHTML = "";">LJ-cut from Flickr.
Formatted for readability:
imgs = document.images;
keep = [];
for (i=0; i<imgs.length; i++)
if ((m = imgs[i].src.match(/(http:\/\/.*?static\.flickr\.com\/\d+\/\d+_[a-z\d]+)(_[a-z])?\.jpg/)) && !imgs[i].className.match(/\b(setThumb|nextprev_thumb)\b/) && imgs[i].id!="primary_photo_img")
keep.push('<img src="'+m[1]+'_o.jpg" alt="['+ (imgs[i].alt||"Photo") +']" />');
document.body.innerHTML = "<textarea style='width:100%;height:100%'><lj-cut text=\"The photos.\">\n\n" + keep.join("\n\n") + "\n\n</lj-cut></textarea>";
This will obviously not work if full size images are not available.
The above no longer works, but try this updated code.