6
Dec
2017

Network Tab fast image save

06 Dec 2017

a. Right click on an entry in the network log. Then select Copy All as HAR

b. In console:

”`js x = [<>]; // paste here copied HAR

(function(logObj, mime) {
  var results = [];
  logObj[0].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/png');  // can be changed type

”`

c. Save links in file

d. wget -i file