Skip to content
David Cumps

Javascript Open Directory Image Viewer

Originally published on my old blog at cumps.be on February 13, 2004.

You all know those open directories with pictures in it.

And you all know how annoying it can be to view them all by clicking them, or downloading them all to your hd and viewing them there.

Well, here’s another way:

Add this .url to your favorites. And when you’re on such an open dir, just hit the url and it will show all the .jpg, .gif, .png and .bmp’s on that page.

All this actually is, is a javascript as url. This has been tested in IE6, I don’t garantee it’ll work in other browsers, you can try.

Here’s the actual script that’s in the link:

[javascript]
var sHTML = ‘Fotoviewer\n\n\t\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 += ‘\t\t

\n’
}
}
sHTML += “\t

You May Also Like

Re-Enable user:pass@ IE functionality.

On one side you want to keep your machine up to date with all latest patches, but then there is "Cumulative Security Update for Internet Explorer (832894)", which disables the user:pass@ way of authentication. Now, do you update and loose this functionality (which can be handy), or don't apply it but have the other security it fixes unpatched?