Skip to content

Instantly share code, notes, and snippets.

@MichaelSnowden
Last active July 15, 2016 07:49
Show Gist options
  • Save MichaelSnowden/f16082985d6304c36dd2150a8ebbc997 to your computer and use it in GitHub Desktop.
Save MichaelSnowden/f16082985d6304c36dd2150a8ebbc997 to your computer and use it in GitHub Desktop.
Count remaining lessons on Duolingo. You need jQuery on the page for this. This is a great plugin for that https://chrome.google.com/webstore/detail/jquery-injector/indebdooekgjhkncmgbkeopjebofdoid/related?hl=en. Run this on the Duolingo home page to see how many lessons you have remaining https://www.duolingo.com/
"Lessons left: " + $(".lessons-left").text().split("").map((v, i) => i % 3 == 0 ? -parseInt(v) : i % 3 == 1 ? 0 : parseInt(v)).reduce((a, b) => a + b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment