Skip to content

Instantly share code, notes, and snippets.

@sandeepthukral
Created September 14, 2018 09:45
Show Gist options
  • Save sandeepthukral/2e863dcfed01c59b8f561cc1ec488378 to your computer and use it in GitHub Desktop.
Save sandeepthukral/2e863dcfed01c59b8f561cc1ec488378 to your computer and use it in GitHub Desktop.
Count numbers on a webpage using Developer Console and JS
p = $('.btn.btn-pill')
s = 0; p.each((idx, e) => s += parseInt(e.lastChild.textContent.trim())); console.log(s)
@sandeepthukral
Copy link
Author

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.

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