Created
May 20, 2014 03:12
-
-
Save onlyurei/bf1b3c0affae494f692d to your computer and use it in GitHub Desktop.
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 urls= []; | |
for (var i= document.links.length; i-->0;) | |
if (document.links[i].hostname===location.hostname) | |
urls.push(document.links[i].href); | |
JSON.stringify(urls) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment