Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created March 18, 2019 23:36
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 iaindooley/82710e28b43c14af7d79084a578b407f to your computer and use it in GitHub Desktop.
Save iaindooley/82710e28b43c14af7d79084a578b407f to your computer and use it in GitHub Desktop.
Global list counts
function globalListCount(notification)
{
var card = new Notification(notification).addedCard(/.+ \([0-9]+\)/);
if(parts = /(.+) \([0-9]+\)/.exec(card.currentList().name()))
card.currentList().setName(parts[1]+" ("+card.currentList().countCards()+")");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment