download all html pages as single file recursively chrome extenio code example
Example 1: How to scan a folder for documents with javascript
var dir = "/videos";
var fileextension = ".mp4";
$.ajax({
url: dir,
success: function (data) {
$(data).find("a:contains(" + fileextension + ")").each(function () {
var filename = this.href.replace(window.location.host, "").replace("http:///", "");
$("body").append($("<img src=" + dir + filename + "></img>"));
});
}
});
Example 2: how to access all images in a document javascript
how to access all images in a document javascript