https://www.duolingo.com/dont_tread_on_me

Here's how to count the number of lessons on Duolingo

  • 16
  • 13
  • 12
  • 9
  • 8
  • 8
  • 7
  • 7
  • 7
  • 6
  • 6
  • 5
  • 4
  • 4
  • 3
  • 3
  • 2
  • 8

Open up Duolingo. Press F12, click on Console: Paste this into the Console: var x = document.getElementsByClassName("W1dac"); alert(x.length); Then the alert box popping up will tell you the number of skills.

And you can also count how many of these you have unlocked by appending the above mentioned code with this:

var c = 0; for(var i = 0; i < x.length; i++) { if(x[i].getAttribute("data-test") == "green skill-tree-link" || x[i].getAttribute("data-test") == "gold skill-tree-link" || x[i].getAttribute("data-test") == "red skill-tree-link" || x[i].getAttribute("data-test") == "blue skill-tree-link" || x[i].getAttribute("data-test") == "purple skill-tree-link") { c++; } } alert(c);

10/16/2017, 10:52:18 AM

7 Comments


https://www.duolingo.com/FieryCat
  • 25
  • 25
  • 16
  • 1518

Then the alert box popping up will tell you the number of lessons.

It is not the number of lessons, it is the number of skills.

10/16/2017, 11:04:05 AM

https://www.duolingo.com/dont_tread_on_me
  • 16
  • 13
  • 12
  • 9
  • 8
  • 8
  • 7
  • 7
  • 7
  • 6
  • 6
  • 5
  • 4
  • 4
  • 3
  • 3
  • 2
  • 8

Sorry, that's what I meant.

10/16/2017, 11:27:56 AM

https://www.duolingo.com/Jersebas
  • 25
  • 25
  • 25
  • 22
  • 4
  • 970

Nice tip, thanks! =) Maybe mention the F12 thingy only works on Windows? On a Mac (with Safari) it would be Option-Cmd-C to get the JavaScript Console

10/16/2017, 11:13:58 AM

https://www.duolingo.com/Mathso2
  • 25
  • 24
  • 14
  • 13
  • 11
  • 11
  • 11
  • 10
  • 10
  • 10
  • 9
  • 9
  • 8
  • 7
  • 6
  • 6
  • 6
  • 6
  • 6
  • 5
  • 5
  • 4
  • 4
  • 3
  • 3
  • 2
  • 2

Also, Mac Chrome is Option+Command+I :)

10/16/2017, 7:42:53 PM

https://www.duolingo.com/Thomas.Heiss
  • 24
  • 17
  • 10
  • 2
  • 2
  • 851

Why so complicated?

The good news is that the old user script "DuoLingo course progress" still works counting the skill, lessons and suggesting the "estimate of course completion" on the right side below the "Daily graph" panel with the duo.old_web_url_whitelist=["^.+"];" workaround on the (old) discussions.

However the blue course progress bars (percentage and next level) from the top of the tree have gone for me since the last DuoLingo forum maintenance update (I bought two Portuguese bonus skills; for other courses with no bonus skills the two bars are gone too).

10/16/2017, 11:35:25 AM

https://www.duolingo.com/AKicsiMacska
  • 20
  • 14
  • 14
  • 12
  • 10
  • 9
  • 7
  • 6
  • 5
  • 5
  • 5
  • 3
  • 3
  • 3

This is basically just for me, here are them together:

var x = document.getElementsByClassName("W1dac"); alert(x.length); var c = 0; for(var i = 0; i < x.length; i++) { if(x[i].getAttribute("data-test") == "green skill-tree-link" || x[i].getAttribute("data-test") == "gold skill-tree-link" || x[i].getAttribute("data-test") == "red skill-tree-link" || x[i].getAttribute("data-test") == "blue skill-tree-link" || x[i].getAttribute("data-test") == "purple skill-tree-link") { c++; } } alert(c);

10/20/2017, 2:47:54 PM

https://www.duolingo.com/CohenNyvol

hey that is cool I have to try that out P.S. you smart

10/16/2017, 2:06:29 PM
Learn a language in just 5 minutes a day. For free.