Guest User

Untitled

a guest
Jan 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. var anchors = document.querySelectorAll('a');
  2. var hosts = [];
  3. anchors.forEach((anch) => {
  4. hosts.push(anch.hostname);
  5. });
  6.  
  7. console.table(Array.from(new Set(hosts.filter(Boolean))));
Add Comment
Please, Sign In to add comment