Created
March 24, 2014 20:29
-
-
Save elijahmanor/9748450 to your computer and use it in GitHub Desktop.
Log Ictids
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
(function() { | |
var ictids = []; | |
[].forEach.call(document.querySelectorAll("a"), function(link) { | |
var ictid; | |
if (~link.href.indexOf("ictid")) { | |
ictid = link.href.split("=")[1]; | |
if (!~ictids.indexOf(ictid)) { | |
ictids.push(ictid); | |
} | |
} | |
}); | |
ictids = ictids.sort(); | |
ictids.forEach(function(ictid) { | |
console.log(ictid); | |
}); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment