Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
- <script>
- var dir = "http://www.thesmokingtire.com/wp-content/uploads/";
- var fileextension = ".jpg";
- $.ajax({
- //This will retrieve the contents of the folder if the folder is configured as 'browsable'
- url: dir,
- success: function (data) {
- //Lsit all png file names in the page
- $(data).find("a:contains(" + fileextension + ")").each(function () {
- var filename = this.href.replace(window.location.host, "").replace("http:///", "");
- $("body").append($("<img src=" + dir + filename + "></img>"));
- });
- }
- });
- </script>
- <body>
- </body>
- </html>
- wget -r http://sample.url.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement