Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created April 23, 2014 17:33
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 groovecoder/11225330 to your computer and use it in GitHub Desktop.
Save groovecoder/11225330 to your computer and use it in GitHub Desktop.
Count Hacks Authors
var authors = [], authorElements = document.querySelectorAll('td.column-coauthors a');
for (var i = 0; i < authorElements.length; ++i){
var author = authorElements[i];
if (authors.indexOf ( author.text ) === -1) {
authors.push( author.text );
}
};
alert(authors.length);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment