Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Created March 24, 2014 20:29
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 elijahmanor/9748450 to your computer and use it in GitHub Desktop.
Save elijahmanor/9748450 to your computer and use it in GitHub Desktop.
Log Ictids
(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