4 ms·
Copy and paste the following into the address bar to view images javascript:var tags=document.getElementsByTagName("a"); for (var i in tags) { if (tags[i].
by mdg 16y ago
Copy and paste the following into the address bar to view images
javascript:var tags=document.getElementsByTagName("a"); for (var i in tags) { if (tags[i].href.search(/jpeg|jpg|png/) !== -1) { var img = document.createElement("img"); img.src = tags[i].href;img.width = '400';tags[i].parentNode.appendChild(img); } }
EDIT: Eh... It could use some help ..
- ataggart 16y agoThis works: javascript:(function(){function I(u){var t=u.split('.'),e=t[t.length-1].toLowerCase();return {gif:1,jpg:1,jpeg:1,png:1,mng:1}[e]}function hE(s){return s.replace(/&/g,'&').replace(/>/g,'>').replace(/</g,'<').replace(/"/g,'"');}var q,h,i,z=open().document;z.write('<p>Images linked to by '+hE(location.href)+':</p><hr>');for(i=0;q=document.links[i];++i){h=q.href;if(h&&I(h))z.write('<p>'+q.innerHTML+' ('+hE(h)+')<br><img src="'+hE(h)+'">');}z.close();})()