Skip to content

Instantly share code, notes, and snippets.

@dogeared
Created January 4, 2012 16:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogeared/1560822 to your computer and use it in GitHub Desktop.
Save dogeared/1560822 to your computer and use it in GitHub Desktop.
Trello card counter (until there's an API)
// Instructions:
// (1) Browse to your favorite Trello board
// (2) Drop this into your friendly Chrome inspector or Firefox Firebug console
$('.list').each(function(index) {
var outer = $(this);
$(this).find('h2.current').each(function(index) {
console.log($(this).text() + ': ' + outer.find('.list-card').length)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment