Skip to content

Instantly share code, notes, and snippets.

@rmurphey
Created August 11, 2011 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rmurphey/1139984 to your computer and use it in GitHub Desktop.
Save rmurphey/1139984 to your computer and use it in GitHub Desktop.
var users = '';
$('.js-comment-container').each(function() {
var c = $(this),
author = c.find('.author .author a').text(),
body = c.find('.content-body').text(),
words = body.split(' ').length;
while (words--){
users += author + ' ';
}
})
console.log(users);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment