Created
September 14, 2018 09:45
-
-
Save sandeepthukral/2e863dcfed01c59b8f561cc1ec488378 to your computer and use it in GitHub Desktop.
Count numbers on a webpage using Developer Console and JS
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
p = $('.btn.btn-pill') | |
s = 0; p.each((idx, e) => s += parseInt(e.lastChild.textContent.trim())); console.log(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately, the website is now redesigned and this code no longer works.
I will keep it here as an example of what can be done on similar pages.