Thread Rating:
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[INDEX] Open Dir Image Viewer - Tampermonkey
Add this script to Tampermonkey and it transforms all the links in an open directory webpage into images  Big Grin

Saves you from having to use a fusker or a third party stripper like StriDir

Works pretty good so far

Not my script, found on[url=][/url]

Happy Hunting


// ==UserScript==
// @name           Open Dir Image Viewer
// @namespace
// @include        *
// ==/UserScript==

function xpath(query) {
return document.evaluate(query, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

function addImages() {
var max = 100;
var links = xpath("//a[@href]");
for (var i = 0; i < links.snapshotLength && i < max; i++) {
var a = links.snapshotItem(i);
if (a.href.match(/\.(jpg|jpeg|gif|png)$/i)) {
a.innerHTML = "<img src=\"" + a.href + "\">";

var title = document.getElementsByTagName('title')[0].innerHTML;
if(title.match(/^Index of /)) {
Rep added
Death To All Whiteknights!!!!
It seems like this is suppose to turn on when it recognizes the "Index of" title of the web page.

Notice the code itself is a bit outdated but can't seem to get this to work. Tamper monkey is greyed out and wont engage the script.

EDIT: This does work when searching archives etc. Just not FTP directories. At least from my short experience.
Correct, it won't allow you to preview FTP directory items. Those need to be downloaded and can be easily stripped with Filezilla or similar.

I see the confusion though from the thread, I posted as INDEX and the thread groups it with FTP, just differentiated by the color pink.
for chrome there is an extension/add on called gallerify that does something similar
(08-29-2019, 12:41 PM)gio1111 Wrote: for chrome there is an extension/add on called gallerify that does something similar

Yeah, this script allows you to view them before they are downloaded. Looks like gallerify extension downloads them, if I am understanding correctly.

There are similar applications like JDOWNLOADER that allow you to pick and choose files you want to download from an online link, instead of downloading the whole batch.

Possibly Related Threads...
Thread Author Replies Views Last Post
Pix and Vids Open FTP I FOund qwertyphun12 11 3,347 03-02-2020, 08:31 PM
Last Post: gyougood
  FTP Strip club open index AppleCart 0 1,739 11-24-2019, 01:28 PM
Last Post: AppleCart
  FTP Hodges Open UNSECURED Indexes Hodge 59 31,702 03-11-2019, 03:31 PM
Last Post: Jakoffuks
  Kelly P / open directory amazeballs00 2 2,398 06-06-2018, 03:44 AM
Last Post: Hodge
Photo NAS Open webcam nuttydave 7 3,309 02-07-2018, 06:29 PM
Last Post: Hodge
Photo FTP open ftp willyz80 0 1,950 11-17-2016, 09:30 PM
Last Post: willyz80
Photo NAS Open Drive lithis 2 2,901 09-28-2015, 08:33 AM
Last Post: Hodge

Users browsing this thread: 1 Guest(s)