Last active
August 29, 2015 14:01
-
-
Save saranrapjs/e9d8bb295cb25750175c to your computer and use it in GitHub Desktop.
get all links on ze page
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
var links = {}; | |
[].forEach.call(document.querySelectorAll('a'), function(el) { links[el.getAttribute('href')] = true; }); con | |
sole.log(Object.keys(links).join(',\n')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment