Skip to content

Instantly share code, notes, and snippets.

@zousandian
Forked from tobek/get-image-urls.js
Created September 13, 2017 01:42
Show Gist options
  • Save zousandian/3c354ef865dc967a954ce51a5ddb653b to your computer and use it in GitHub Desktop.
Save zousandian/3c354ef865dc967a954ce51a5ddb653b to your computer and use it in GitHub Desktop.

Revisions

  1. @tobek tobek created this gist Sep 3, 2014.
    14 changes: 14 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    /* right click on an entry in the network log, select Copy All as Har
    * type in console: x = [paste]
    * paste the following JS code into the console
    * copy the output, paste into a file
    * then wget -i [that file]
    */
    (function(logObj, mime) {
    var results = [];
    logObj.log.entries.forEach(function (entry) {
    if (mime && entry.response.content.mimeType !== mime) return;
    results.push(entry.request.url);
    });
    console.log(results.join('\n'));
    })(x, 'image/jpeg');