Skip to content

Instantly share code, notes, and snippets.

@MichaelSnowden
Last active July 19, 2016 05:52
Show Gist options
  • Select an option

  • Save MichaelSnowden/f10b3fd24cb177439b076d53ccd1fdc4 to your computer and use it in GitHub Desktop.

Select an option

Save MichaelSnowden/f10b3fd24cb177439b076d53ccd1fdc4 to your computer and use it in GitHub Desktop.
No jQuery needed. Run on https://www.duolingo.com/
"Lessons left: " + Array.prototype.map.call(document.getElementsByClassName("lessons-left"), a => a.innerText).filter(s => s.length > 0).map(v => +v[2] - v[0]).reduce((a, b) => a + b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment