Last active
August 29, 2015 14:05
-
-
Save hsribei/d75072ce170f462ced40 to your computer and use it in GitHub Desktop.
Somar contribuições pendentes no Catarse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sei muito pouco de JavaScript. Se acharem alguma cagada, por favor, me avisem :)