Created
October 9, 2015 11:28
-
-
Save cybermaxs/90138611c58746fd36f9 to your computer and use it in GitHub Desktop.
List all http anchor in a web site
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
[].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