Last active
January 7, 2016 15:41
-
-
Save sand3r/9c8a400d0a8c4ef1c03d to your computer and use it in GitHub Desktop.
From HAR to a list of copyable files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If your browser supports window.performance (at least Chrome does) use this: | |
window.performance.getEntries().forEach(function(resource) { console.log(resource.name); }); | |
// Other way: | |
// First 'Copy all as HAR' from Network panel. | |
// Expose result as 'window.HAR' | |
console.clear(); | |
if(HAR) { | |
var entries = ''; | |
var body = document.querySelector('body'); | |
var url = ''; | |
body.innerHTML = ''; | |
HAR.log.entries.forEach(function(obj) { | |
url = obj.request.url; | |
console.log(url); | |
entries += url + '<br />'; | |
}); | |
body.innerHTML = entries; | |
} else { | |
console.log('HAR not defined.'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From HAR to list of files, extracted from the HAR.
From this:

To this (a copyable list):
