https://www.duolingo.com/andrewmof

Language Course Switcher Userscript

Hey all, I created a userscript for people who are constantly switching courses on DuoLingo from different source languages.

Screenshot

I only created this today so might not be perfect and I would love if someone could redesign the dropdown in the form of a grid as apposed to a list and build the css.

Feel free to submit pull requests.

Get it here

May 21, 2014

52 Comments


https://www.duolingo.com/lode

The script has an updated version by someone else (see https://github.com/arekolek/DuolingoCourseSwitcher) which brings the script up-to-date with how Duolingo works right now and fixes a lot of other things as well.

January 9, 2015

https://www.duolingo.com/Eey91

Can you tell me who updated this script? I have a suggestion / request. Thanks.

January 10, 2015

https://www.duolingo.com/lode

Normally, you could create an issue at https://github.com/arekolek/DuolingoCourseSwitcher with a wish/request/problem, but thats disabled here. You can suggest a code change (but then you would have to program it yourself). Otherwise, you can contact the owner directly from here: https://github.com/arekolek

January 10, 2015

https://www.duolingo.com/jitengore

The brilliance of andrewmof in action once again :)

This is great, saves my time! Enjoy five lingots as a token of appreciation!

May 22, 2014

https://www.duolingo.com/andrewmof

Thanks jitengore :) Glad you find it useful!

May 22, 2014

https://www.duolingo.com/efisgpr

Have another lingot. Thanks a lot, Andrew!

August 3, 2014

https://www.duolingo.com/yuioyuio

It's very nice, I love it. Thanks!

May 22, 2014

https://www.duolingo.com/nblaisdell

I know some css. How do you envision the grid? Do you still want the hover revealing the secondary options? Also, is it possible to only show the courses you have signed up for or would that be too difficult to code?

May 22, 2014

https://www.duolingo.com/andrewmof

So rather than a long list, I was thinking of 3 columns of langauges in a white box. On my laptop the list currently runs off the bottom. Also my css seems to screw up the flags on hover, and they are all placed on top of eachother.

Yes its possible to only show the languages you are learning but not automatically, the user would have to manually select which language combinations to show in a settings window. Would that be more appealing for people?

May 22, 2014

https://www.duolingo.com/yuioyuio

Aww... selecting languages would be perfect! And it would also make the list shorter.

May 22, 2014

https://www.duolingo.com/andrewmof

Haha I actually thought people would prefere that. Back to the drawing board :)

May 22, 2014

https://www.duolingo.com/jitengore

Is it possible to design an MRU kind of functionality? - Most recently used at the top followed by a line and all the rest in alphabetical order or popularity order below the line?

May 22, 2014

https://www.duolingo.com/yuioyuio

It's easier to select the language you need from a shorter list, but the solution suggested by jitengore is also a very good one. Anyway, if you want to see all language combinations you can always select all of them in a seetings window ;)

May 22, 2014

https://www.duolingo.com/somelauw

If you take a look at the source code, you can basically edit line 26 to include and exclude the languages that you want.

Nevertheless, it's still buggy as I can't get it to switch to dutch. (neither as source nor target language).

It would also be nice if it still included the old link "Add a new course". Right now the only way to get there seems to be disabling the plugin first or knowing the url by heart.

November 8, 2014

https://www.duolingo.com/Arnauti

I use DuoTweak which works for me to swich between any courses, and does a few other things as well: https://www.duolingo.com/comment/7619770

I agree that Duo should defiitely add a function like this to its normal interface.

December 6, 2015

https://www.duolingo.com/fer84

Based on your script I made my own customised solution. Everything is hard-wired, so it makes no sense sharing it. https://www.duolingo.com/comment/4259473

August 24, 2014

https://www.duolingo.com/Eey91

You sir are awesome! Thanks for sharing this. I agree it would be nicer to have aviable only those in which we have active courses to reduce the list.

May 22, 2014

https://www.duolingo.com/lucie.white

You can do this quite easily by modifying the script - here's how I did it:

  • click on the drop down menu next to the Greasemonkey icon and click 'manage user scripts'
  • click the preferences button next to 'DuoLingo Course Switcher' and then click 'edit this user script'
  • go to the first line in the // Variables section: var courses = ...
  • delete any options that you don't want to show up: I only wanted German English and vice versa, so I deleted every other option. My modified line now reads: var courses = '{"en":["de"],"de":["en"]}';
  • save changes

result:

This could be used if your target language is off the bottom of the screen too - just delete a few options you don't use and the list will shorten!

October 14, 2014

https://www.duolingo.com/makahiwitk

Since reading your post I have added courses which are not in the original script, by adding the course id from the language variables (var languages). So, for example, to add Italian to the Spanish selection you just add "it", to give "es":["en","fr","it"]

Thanks so much!!!

Edit: Please have some lingots for your efforts. :-)

October 14, 2014

https://www.duolingo.com/lucie.white

Thanks! And that's brilliant, I didn't even think of adding stuff!

October 14, 2014

https://www.duolingo.com/makahiwitk

I wouldn't have ditched Irish if I'd been able to switch to it easily. I got sick of enabling/disabling the switcher. However, it was probably a good thing, as there are only so many hours in the day and adding Irish was just too much of an additional time commitment :-)

October 14, 2014

https://www.duolingo.com/Eey91

Thanks for your response, I found out how to do this a couple of weeks ago hehe. It was indeed very useful to reduce the amount of space used by the script. =)

October 14, 2014

https://www.duolingo.com/Fettes

Thanks a million, only issue I'm having now is not all the flags are loading and the ones that do are wrong. But still loving this plugin.

November 8, 2014

https://www.duolingo.com/Eey91

I would love if DL made this official. I believe is the best and easiest method for changing languages! Thanks again.

August 3, 2014

https://www.duolingo.com/makahiwitk

Hi. I love this, however it doesn't have the latest languages, so I can't get to my Irish course. I guess I can enable/disable it as required.

Edit: Thanks to lucie.white's post below, I've now been able to add courses which were missing.

September 11, 2014

https://www.duolingo.com/jayeidge

Thanks a million for this tool. Any chance of an update for the latest beta languages like dutch from english?

September 14, 2014

[deactivated user]

    How do I do it? I clicked install but just a bunch of computer programming stuff appeared' what happened?

    October 8, 2014

    https://www.duolingo.com/makahiwitk

    Hi. Did you first install the appropriate extension to your browser? I use Firefox, so I added Greasemonkey (Installing, Step 1). I then installed the userscript (Installing, Step 2). Once installed, in Firefox, you can enable/disable it via Tools > Greasemonkey > DuoLingo Course Switcher.

    October 8, 2014

    [deactivated user]

      Thanks!

      October 8, 2014

      https://www.duolingo.com/RonArnett

      If you got anything at all to download you did better than me.

      I assume from all the geek talk about this script that it was made extremely difficult to install because it is even more difficult to operate. I'm not a coder so the choice to make the script impossible to get probably saved me a lot of grief.

      April 21, 2015

      https://www.duolingo.com/ZaneHuttinga

      This sounds like a great addition. However, after installing it (and Tampermonkey for Chrome), the links in the drop-down don't seem to work. It just stays on the same page when I click on a course. Any ideas what's gone wrong?

      August 20, 2015

      https://www.duolingo.com/pprins

      Did you find the solution? I'm having the same issue.

      edit: The version linked at the top of this discussion is faulty, it should be https://github.com/arekolek/DuolingoCourseSwitcher , which worked for me after switching one more time the old way.

      November 22, 2015

      https://www.duolingo.com/0liwia

      Hello Thanks fo doing this But it doesn't work on my computuer (chrome)...

      July 14, 2016

      https://www.duolingo.com/ISpeakAlien

      Sadly, this doesn't work any more.

      May 5, 2017

      https://www.duolingo.com/iustitia

      Great! Thanks for sharing :)

      May 23, 2014

      https://www.duolingo.com/ketoacidosis

      Looks awesome!

      Is there a way to switch between courses such as English to French, French to English, Portuguese to Spanish, Polish to English, etc?

      May 23, 2014

      https://www.duolingo.com/andrewmof

      yes it does all that already :)

      May 23, 2014

      https://www.duolingo.com/ketoacidosis

      Wow, that sounds like it would save a lot of people a lot of time. I will definitely try this out, that's awesome! Thank you very much for sharing this!

      May 24, 2014

      https://www.duolingo.com/kestral11

      This is great, and I really appreciate the effort you put into making this. However, the language I want to study is Vietnamese to English and currently the list runs off at the bottom..... Can you or anyone else fix this?

      July 11, 2014

      https://www.duolingo.com/MickMunin

      Great! I use it with Greasemonkey, thanks!

      July 11, 2014

      https://www.duolingo.com/palocortado

      I'm a big fan of this userscript! Thanks for your hard work andrew :) It's still got some glitches, but it serves the purpose very satisfactorily!

      July 17, 2014

      https://www.duolingo.com/RuthKC

      Help! Somehow my homepage is in Russian, which I cannot read at all. How do I get it back into English?

      October 1, 2014

      https://www.duolingo.com/ISpeakAlien

      Go into the language selection place and click "add a new course" (actually in Russian, but it should be at the bottom of the list). Then, select that you speak all languages and then choose a course from English.

      May 5, 2017

      https://www.duolingo.com/lucie.white

      This is absolutely wonderful - thank you so much!!

      October 9, 2014

      https://www.duolingo.com/wataya

      Hi and thanks a lot. Seems to work great. It might be a good idea to restrict the @include line to https?://www.duolingo.com/*

      December 30, 2014

      https://www.duolingo.com/wataya

      Also: I believe the language code for Dutch should be "dn" instead of "nl-NL". The former works for me, the latter doesn't.

      December 30, 2014

      https://www.duolingo.com/lode

      The script is updated by someone else (see https://github.com/arekolek/DuolingoCourseSwitcher) which fixes these things and a lot more.

      January 9, 2015

      https://www.duolingo.com/wataya

      Great, thanks for the link! I had fixed the most pressing issues myself but the updated script is much better.

      January 9, 2015

      https://www.duolingo.com/lode

      Ha yes, I also started to do that. And than I saw there were others who did that before me :)

      January 10, 2015

      https://www.duolingo.com/PierreYves0702

      Thank you so much. That works like a charm! :)

      September 4, 2016

      https://www.duolingo.com/Goonthy

      Thanks man, I love that.

      February 6, 2017

      https://www.duolingo.com/IslandLenny

      This is awesome! Good job! I would love it if Duolingo made this an actual thing

      April 18, 2017
      Learn a language in just 5 minutes a day. For free.