Skip to content

Instantly share code, notes, and snippets.

@HaykoKoryun
Created October 2, 2020 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HaykoKoryun/56a688aaa5eb3153158f0bfff74b7939 to your computer and use it in GitHub Desktop.
Save HaykoKoryun/56a688aaa5eb3153158f0bfff74b7939 to your computer and use it in GitHub Desktop.
List all files in Chrome DevTools with their paths
document.querySelectorAll('table.data tr.data-grid-data-grid-node').forEach(record => {
if(!record.querySelector('.name-column')) return;
const name = record.innerText;
const path = record.querySelector('div').innerText;
console.log(`${path}/${name}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment