Skip to content

Instantly share code, notes, and snippets.

@Raymans
Forked from tobek/get-image-urls.js
Last active May 28, 2018 02:53
Show Gist options
  • Save Raymans/da8f4cce8e92a2738d3681c74458c11f to your computer and use it in GitHub Desktop.
Save Raymans/da8f4cce8e92a2738d3681c74458c11f to your computer and use it in GitHub Desktop.

Revisions

  1. Raymans renamed this gist May 28, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @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');