Skip to content

Instantly share code, notes, and snippets.

@cybermaxs
Created October 9, 2015 11:28
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 cybermaxs/90138611c58746fd36f9 to your computer and use it in GitHub Desktop.
Save cybermaxs/90138611c58746fd36f9 to your computer and use it in GitHub Desktop.
List all http anchor in a web site
[].forEach.call(document.querySelectorAll('a'), function(a) {
var href = a.getAttribute('href');
if(href && href.indexOf('http:')>-1)
console.log(href);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment