Skip to content

Instantly share code, notes, and snippets.

@hsribei
Last active August 29, 2015 14:05
Show Gist options
  • Save hsribei/d75072ce170f462ced40 to your computer and use it in GitHub Desktop.
Save hsribei/d75072ce170f462ced40 to your computer and use it in GitHub Desktop.
Somar contribuições pendentes no Catarse
// Clica no botão de rádio dos pendentes, rola a página até o fim para carregar todas as contribuições,
// abre o console, digita isso e dá Enter:
_.chain($('.value')).map(function(el){ return parseFloat($(el).text()); }).reduce(function(sum, el){ return sum + el; }, 0).value();
@hsribei
Copy link
Author

hsribei commented Aug 21, 2014

Sei muito pouco de JavaScript. Se acharem alguma cagada, por favor, me avisem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment