Created
October 1, 2017 15:13
-
-
Save kumekay/d6b5ee33c0129595352f0b0de2abf00c to your computer and use it in GitHub Desktop.
Extract all domains through browser console
This file contains 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
let links = document.querySelectorAll( "a" ); | |
let hosts = [] | |
links.forEach ( (l) => { hosts.push(l.host.replace("www.", ""))}) | |
const domains = new Set(hosts) | |
domains.join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment