Skip to content

Instantly share code, notes, and snippets.

@jozsefs
Created March 10, 2018 21:13
Show Gist options
  • Save jozsefs/4219fa49478aa7cc2aa4817ee771d929 to your computer and use it in GitHub Desktop.
Save jozsefs/4219fa49478aa7cc2aa4817ee771d929 to your computer and use it in GitHub Desktop.
duolingo-how-many-lessons-left.js
$$('._2TMjc').map(item => item.innerText).reduce((acc, next) => acc + +next.match(/\/(\d*)/)[1], 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment