Please, make sure that you read our Forum Guidelines.


You can use any username that you like when you join duome forum, yet it's better if you use your existing Duolingo username to unlock some extra features and avoid confusion while troubleshooting; in any case it's advised that you choose a different password for the forum.
~ Duome Team

Userscript to restore Duolingo tree

Tips and tricks ...


capitainflint

Re: Userscript to restore Duolingo tree

Post by capitainflint »

I think it's cached data is involved too. Mine was working up until today on one browser (Chrome) but had stopped working on my two other browsers. I tried importing Chrome's settings into one of the other browsers and Chrome also stopped working, no idea why because I was very careful and my understanding was that Chrome should not have been affected and that the settings are just copied across. It's very frustrating. :/ Either the tree script has no effect or I get a blank page with buffering. Hoping there must be some way around it though?

kyleyu

Re: Userscript to restore Duolingo tree

Post by kyleyu »

I found the problem. The failed API is for retrieving user data (https://www.duolingo.com/2017-06-30/users/<User ID>). It fails because a field being requested appears to no longer be available. The field is related to streak (seemingly streak repair), not the tree, so the tree is not gone (yet), and this problem should be fixable.

I will update the script later, with a fix for this problem and some new features.

lavandin2828

Re: Userscript to restore Duolingo tree

Post by lavandin2828 »

kyleyu wrote: Thu Feb 06, 2025 9:36 pm

I found the problem. The failed API is for retrieving user data (https://www.duolingo.com/2017-06-30/users/<User ID>). It fails because a field being requested appears to no longer be available. The field is related to streak (seemingly streak repair), not the tree, so the tree is not gone (yet), and this problem should be fixable.

I will update the script later, with a fix for this problem and some new features.

Thank you

kyleyu

Re: Userscript to restore Duolingo tree

Post by kyleyu »

Update:

  • Fix for loading issue after API change
  • Option to remove cartoon characters in challenges
  • Option to restore old (non-character) TTS (may not work for all challenge types)

Raw, Gist page

capitainflint

Re: Userscript to restore Duolingo tree

Post by capitainflint »

Thank you, it works (not that I need to say that) and I'm very grateful!

User avatar
PtolemysXX
Uganda

Re: Userscript to restore Duolingo tree

Post by PtolemysXX »

Removing cartoon characters and restoring old TTS is a great feature. Bye bye squeaky Junior and Zari ;-) .

TheMitchy27
Japan

Re: Userscript to restore Duolingo tree

Post by TheMitchy27 »

Unable to access these 2 skills despite completing all valid skills before it.
Checkpoints also do not work.
EN -> JP

Attachments
duoling_userscript_issue.PNG
duoling_userscript_issue.PNG (34.25 KiB) Viewed 1070 times
User avatar
PtolemysXX
Uganda

Re: Userscript to restore Duolingo tree

Post by PtolemysXX »

It seems like these bonus skills are on the way. Have you tried to jump to the "Countries" skill on the path? This might unlock the skill on the tree.

capitainflint

Re: Userscript to restore Duolingo tree

Post by capitainflint »

Re access to the two skills, it might be worth switching to another browser. I have found that this sometimes helps if progress seems to be blocked.

TheproPolyglot
India

Re: Userscript to restore Duolingo tree

Post by TheproPolyglot »

It isn't working!

User avatar
Thomas.Heiss
Germany

Re: Userscript to restore Duolingo tree

Post by Thomas.Heiss »

@TheproPolyglot

Have you manually updated the userscript (edit the script in the editor in your Tampermonkey repository) to V1.01 (copy and paste) yet?

It's actually working for me here on Firefox Nightly@Android to display the /learn page.
Even the version before worked.

What doesn't work specifically? To start a lesson? To finish grading?

Are any errors in the Web console in the Developer Tools (Firefox: F12 / Ctrl+Shift+K) shown?
On Chrome (desktop) it's Ctrl+Shift+I hotkeys to open the Web console.

You'll need to check for red html/JavaScript errors particularly.

:de: Native | :us: Upper-B2 (BritishCouncil) | ImageL25 (Duo) / A2 (6+y, McGraw-Hill) - Learning (Busuu): :fr: (A1 McGraw-Hill) | :brazil: (interm.)

User avatar
Thomas.Heiss
Germany

Re: Userscript to restore Duolingo tree

Post by Thomas.Heiss »

Hi,

TheMitchy27 wrote: Sun Feb 09, 2025 8:17 pm

Unable to access these 2 skills despite completing all valid skills before it.

Bonus skills can't be accessed anymore.

I've moved my longer comment about your updated JP course and lost tree progress (back to L0 crown skills with marked missing lessons) into the other warning thread to keep this userscript news/troubleshooting thread clean:

viewtopic.php?p=120477-warning-about-in ... ch#p120477

TheMitchy27 wrote: Sun Feb 09, 2025 8:17 pm

Checkpoints also do not work.

AFAIK skill /test and checkpoint /bigtest URLs have be removed by DL staff in the backend code and web server mapping.

:de: Native | :us: Upper-B2 (BritishCouncil) | ImageL25 (Duo) / A2 (6+y, McGraw-Hill) - Learning (Busuu): :fr: (A1 McGraw-Hill) | :brazil: (interm.)

TheproPolyglot
India

Re: Userscript to restore Duolingo tree

Post by TheproPolyglot »

Thomas.Heiss wrote: Fri Feb 21, 2025 3:02 pm

@TheproPolyglot

Have you manually updated the userscript (edit the script in the editor in your Tampermonkey repository) to V1.01 (copy and paste) yet?

It's actually working for me here on Firefox Nightly@Android to display the /learn page.
Even the version before worked.

What doesn't work specifically? To start a lesson? To finish grading?

Are any errors in the Web console in the Developer Tools (Firefox: F12 / Ctrl+Shift+K) shown?
On Chrome (desktop) it's Ctrl+Shift+I hotkeys to open the Web console.

You'll need to check for red html/JavaScript errors particularly.

Hello Thomas, I tried all the methods to get tree Fiddler and TamperMonkey method both show that the old users/{uid} endpoint isn't working in the Browser console. Tried on Chrome (Fiddler) and Edge (TamperMonkey). I installed the old android app on my Android 4.4.2 tablet and Android 7 phone, but it didn't work. Thanks for the guidance.

User avatar
Thomas.Heiss
Germany

Re: Userscript to restore Duolingo tree

Post by Thomas.Heiss »

TheproPolyglot wrote: Sat Feb 22, 2025 6:06 am

I installed the old Android app on my Android 4.4.2 tablet and Android 7 phone, but it didn't work.

There is no app version left with the good old tree design.

I answered you here:
viewtopic.php?p=120531-differences-and- ... ee#p120531

:de: Native | :us: Upper-B2 (BritishCouncil) | ImageL25 (Duo) / A2 (6+y, McGraw-Hill) - Learning (Busuu): :fr: (A1 McGraw-Hill) | :brazil: (interm.)

User avatar
Thomas.Heiss
Germany

Re: Userscript to restore Duolingo tree

Post by Thomas.Heiss »

TheproPolyglot wrote: Sat Feb 22, 2025 6:06 am
Thomas.Heiss wrote: Fri Feb 21, 2025 3:02 pm

@TheproPolyglot

Have you manually updated the userscript (edit the script in the editor in your Tampermonkey repository) to V1.01 (copy and paste) yet?

I tried all the methods to get tree Fiddler and TamperMonkey method both show that the old users/{uid} endpoint isn't working in the browser console.

Tried on Chrome (Fiddler) and Edge (TamperMonkey).

You need to update to V1.01:
viewtopic.php?p=119892-userscript-to-re ... ee#p119892

Or try it with Firefox or Firefox Nightly.

Maybe I can re-test it on Edge@Windows with Tampermonkey.

:de: Native | :us: Upper-B2 (BritishCouncil) | ImageL25 (Duo) / A2 (6+y, McGraw-Hill) - Learning (Busuu): :fr: (A1 McGraw-Hill) | :brazil: (interm.)

TheproPolyglot
India

Re: Userscript to restore Duolingo tree

Post by TheproPolyglot »

kyleyu wrote: Thu Feb 06, 2025 9:36 pm

I found the problem. The failed API is for retrieving user data (https://www.duolingo.com/2017-06-30/users/<User ID>). It fails because a field being requested appears to no longer be available. The field is related to streak (seemingly streak repair), not the tree, so the tree is not gone (yet), and this problem should be fixable.

I will update the script later, with a fix for this problem and some new features.

@Thomas.Heiss
But for me it is still showing 500!
Headers: GET
https://preview.duolingo.com/2017-06-30 ... 0223648937

Last edited by TheproPolyglot on Sat Feb 22, 2025 11:31 am, edited 1 time in total.
User avatar
Thomas.Heiss
Germany

Re: Userscript to restore Duolingo tree

Post by Thomas.Heiss »

@TheproPolyglot

I tested it with the last two Edge (Chromium) V133 builds.

I also ran into a blank page and this ominous 500 http error one or two times.

I simply closed everything, restarted, loaded the Duolingo.com website (the path loaded) and then I reloaded the www.duolingo.com/learn website and all is well.


My advice:

  • 1) Disable Tampermonkey
  • 2) clear all Duolingo.com browser cookies, clear the cache
  • 3) restart the browsers
  • 4) relogin to www.duolingo.com with username and password
  • 5) make sure the path UI is loaded
  • 6) re-enable the Tampermonkey extension
  • 7) make sure that the userscript V1.01 is loaded (copy and paste of the new code / Click Save in the Tampermonkey editor)
  • 8) Open the www.duolingo.com/learn website to trigger the old tree design

If you again get this http 500 error: Close all the tabs, restart the browser, reload the www.duolingo.com/learn old website one, two or three times.

Interestingly, I didn't notice any related Web console errors for the user id; the one I see are 404 and other Duolingo Urls.

When opening the Url you posted I always receive an empty page with [] on the Windows Pc with Edge, on Chrome stable and Dev release or Firefox Nightly (all three on Android).

So it's not a serious issue related to Edge/Chromium.

More likely that your Duolingo session_id / login token is giving you a hard time.
It's a good idea to renew all the cookies and to get rid of the current cookies.

..(...)..

Note: I was using an Incognito window on Edge. To do this I had to allow Tampermonkey to work in PRIVATE mode.
Will have to retry in normal/public mode.

Switching to Firefox might help as this will install a clear/empty user profile and Chrome/Edge/Chromium and Firefox usually don't share the very same user directory
(yours might be defective or old duolingo.com not valid anymore).

Anyway, it's a good idea to do the tab reload multiple times, do restart the browsers a few times.

Or you can try the Incognito mode testwise (ehich requires a new login to the Duolingo.com website).

:de: Native | :us: Upper-B2 (BritishCouncil) | ImageL25 (Duo) / A2 (6+y, McGraw-Hill) - Learning (Busuu): :fr: (A1 McGraw-Hill) | :brazil: (interm.)

User avatar
Thomas.Heiss
Germany

Re: Userscript to restore Duolingo tree

Post by Thomas.Heiss »

@TheproPolyglot

Why do you see a preview.duolingo.com domain?

Don't you open www.duolingo.com/learn?

:de: Native | :us: Upper-B2 (BritishCouncil) | ImageL25 (Duo) / A2 (6+y, McGraw-Hill) - Learning (Busuu): :fr: (A1 McGraw-Hill) | :brazil: (interm.)

User avatar
Thomas.Heiss
Germany

Re: Userscript to restore Duolingo tree

Post by Thomas.Heiss »

I also noticed that I specifically had to enable the developer mode within Edge to get Tampermonkey running in general.

This is an option in the extensions menu when you click on the three ... menu dots on the upper left side.

I guess you have already done this or else Tampermonkey gives a warning and refuses to run any scripts.

Last edited by Thomas.Heiss on Sun Feb 23, 2025 8:58 am, edited 1 time in total.

:de: Native | :us: Upper-B2 (BritishCouncil) | ImageL25 (Duo) / A2 (6+y, McGraw-Hill) - Learning (Busuu): :fr: (A1 McGraw-Hill) | :brazil: (interm.)

User avatar
duome

Re: Userscript to restore Duolingo tree

Post by duome »

Regardless of subdomain (preview or not), when there's a blank page, it usually means some parivacy settings are in place - double check this at both duolingo.com and schools.duolingo.com - "Enable social profiles and leagues" should be ticked if you ever used duolingo for schools.

TheproPolyglot
India

Re: Userscript to restore Duolingo tree

Post by TheproPolyglot »

Thomas.Heiss wrote: Sat Feb 22, 2025 5:20 pm

@TheproPolyglot

Why do you see a preview.duolingo.com domain?

Don't you open www.duolingo.com/learn?

OK, sorry! I realised that I have to disable preview for it to work. However, it worked fine for many days in preview mode. Now it stopped working in preview mode, this means that in very near future they'll kill the tree.

Last edited by TheproPolyglot on Tue Feb 25, 2025 6:12 am, edited 1 time in total.
User avatar
PtolemysXX
Uganda

Re: Userscript to restore Duolingo tree

Post by PtolemysXX »

A cool thing about the "tree restorer" script is that it may give you a funny number of crowns:

screenshot
79992 crowns.png
79992 crowns.png (16.09 KiB) Viewed 670 times



It appears I should be placed as number one in the "Crown Hall of Fame" ;)

quadrin

Re: Userscript to restore Duolingo tree

Post by quadrin »

i think it broke again :(

TheproPolyglot
India

Re: Userscript to restore Duolingo tree

Post by TheproPolyglot »

quadrin wrote: Tue Mar 11, 2025 4:40 pm

i think it broke again :(

it is working

quadrin

Re: Userscript to restore Duolingo tree

Post by quadrin »

not for me :(

TheproPolyglot
India

Re: Userscript to restore Duolingo tree

Post by TheproPolyglot »

quadrin wrote: Wed Mar 12, 2025 5:04 am

not for me :(

make sure you're not on a beta or preview version. Duolingo is removing these old databases slowly. It's been removed from the beta/preview version, so after they roll out the release from preview version to regular version, this userscript will stop working.

quadrin

Re: Userscript to restore Duolingo tree

Post by quadrin »

got it - seems to be working again, thanks! want to get as much life out of this trick before it dries up. still so sad they lobotomized duolingo ;,(

User avatar
Thomas.Heiss
Germany

Re: Userscript to restore Duolingo tree

Post by Thomas.Heiss »

@kyleyu

TheproPolyglot wrote: Wed Mar 12, 2025 5:09 am

make sure you're not on a beta or preview version.
Duolingo is removing these old databases slowly.
It's been removed from the beta/preview version, so after they roll out the release from preview version to regular version, this userscript will stop working.

Is there something which can be done for your userscript or Fiddler to manually download any dependent html/JavaScript/3rd party resources to keep the userscript running for a longer while?

If the static old html code relies on specific files (e.g. includes) it might be better to also archive all of them?!?

Or does this mean in the end all tree functionality is lost for /skill/* urls?
A lot of /skill/xyz/test and /bigtest checkpoint urls are completely dead already.

Best regards

:de: Native | :us: Upper-B2 (BritishCouncil) | ImageL25 (Duo) / A2 (6+y, McGraw-Hill) - Learning (Busuu): :fr: (A1 McGraw-Hill) | :brazil: (interm.)

capitainflint

Re: Userscript to restore Duolingo tree

Post by capitainflint »

hi, it's stopped working for me today, as has Fiddler, sadly.

TheproPolyglot
India

Re: Userscript to restore Duolingo tree

Post by TheproPolyglot »

capitainflint wrote: Wed Mar 26, 2025 9:26 am

hi, it's stopped working for me today, as has Fiddler, sadly.

You'll need to reload it to make it work. Fiddler isn't working for many days, just leave it. It'll no longer work. Userscript only works on non-preview-non-beta version.

Post Reply

Return to “How to ...”