View all images in an open directory

Copy and paste the below into the address bar and all the images in an open directory will automatically be loaded.

javascript:var%20sHTML='<html><head><title>Fotoviewer</title></head>n<body>nt<div%20align=”center”>n’;for(x=0;x<document.links.length;x++){link=document.links[x].href.toLowerCase();if((link.indexOf(‘.jpg’)!=-1)||(link.indexOf(‘.gif’)!=-1)||(link.indexOf(‘.png’)!=-1)||(link.indexOf(‘.bmp’)!=-1)){sHTML+=’tt<img%20src=”‘+document.links[x].href+'”/><br/><br/>n’}}sHTML+=”t</div>n</body></html>”;document.body.innerHTML=sHTML;