https://www.duolingo.com/profile/arekolek

Updated "Tree trimmer" userscript

Since the script by Torsby wasn't working as I would like it to, I've decided to update it.

The basic idea is still the same: you get a button that lets you hide skills that don't need practice, but they reappear as soon as they need it.

I've rewritten it from scratch, here is what changed:

  • It works gradually: trimming leaves (no pun intended) only the weakest skills. Then you can grow the tree and show stronger skills, if there are any. Finally, you go back to seeing the full tree.
  • It is now possible to open notifications from the home page, the old version interfered with this.
  • Some navigation patterns used to break the script - it wouldn't trim the tree (and no button would be shown) upon opening the home page from the lingot store, for example. This is no longer the case.
  • It hides the bonus skills row if they are strong.

And that's pretty much about it. Here is the download link. It will replace the old version if you were using it. (To install it, you first need a browser extension like Tampermonkey or Greasemonkey.)

screenshot

January 16, 2016

47 Comments


https://www.duolingo.com/profile/CharmingTiger

I'm a little confused about how this script works. Does this button just hide the skills which are gold? Does it allow you to hide the skills manually? Would someone with the user script Duolingo Stats still be able to see your entire tree, or would they just see the 'trimmed' version you have created?

January 16, 2016

https://www.duolingo.com/profile/arekolek

Does this button just hide the skills which are gold?

It used to do hide gold and locked skills and test-out buttons. It also remembers your choice to use it on your next visit.

Now, in addition, you can for example hide everything except skills with 3 bars or weaker (filtering out 4 and 5 bars).

Does it allow you to hide the skills manually?

Yes - by clicking the button it adds, next to the lingot store button.

Would someone with the user script Duolingo Stats still be able to see your entire tree, or would they just see the 'trimmed' version you have created?

A userscript changes only what you see in your browser that has it installed, so it wouldn't affect what other users see.

January 16, 2016

https://www.duolingo.com/profile/iamsetsetiam

Has this great script been updated yet to work with the new Duolingo web site?

June 28, 2017

https://www.duolingo.com/profile/dolinod

I don't know if Tree Trimmer is still being worked on, but I found this alternate instead: https://www.duolingo.com/comment/13681318

It doesn't allow you to isolate 1-bar, and 3-bar, from 4-bar skills, but it does automatically hide all golden skills.

It requires the "Stylish" extension (similar to how Tree Trimmer required TamperMonkey)--the links are all in the above link.

September 8, 2017

https://www.duolingo.com/profile/Thomas.Heiss
November 16, 2018

https://www.duolingo.com/profile/wildfood

You must be pretty talented!

January 16, 2016

https://www.duolingo.com/profile/JennyBaudelaire

Could you please update the script so that it works for the current website? I'm really useless with the massive untrimmed tree :-(

October 15, 2017

https://www.duolingo.com/profile/johnlvs2run

The "hide" script works great with stylish on firefox or chrome.
I installed it on another computer just now and it works immediately. https://www.duolingo.com/comment/13681318

October 15, 2017

https://www.duolingo.com/profile/Thomas.Heiss

@johnlvs2run

Quote: The "hide" script works great with Stylish on firefox or chrome.

You better switch to Stylus.

https://forum.duolingo.com/comment/27870688/SECURITY-ISSUE-Warning-Stylish-addon-is-unsafe-contains-tracker-sends-collected-data

November 16, 2018

https://www.duolingo.com/profile/mike387963

I cannot get this to work at all, which is a pity because it would fix a major irritation! I have course switcher working, so my installation (firefox+greasmonkey) can run scripts. The trim/grow button does not appear at all. I've tried disabling course switcher, noscript, ghostery and ABP, but still nothing.

February 29, 2016

https://www.duolingo.com/profile/arekolek

Thanks for your comment. Apparently, in Firefox I have to request jQuery in my script, while in Chrome I was able to use the one that was running on the site already. I've updated the script, so it should work fine for you now.

March 4, 2016

https://www.duolingo.com/profile/mike387963

Perfect: great job! Thank you very much.

What is the idea with '3 bars or less'? Do people think that not reinforcing until 3 bars reduces the overall workload?

March 5, 2016

https://www.duolingo.com/profile/arekolek

It was more that I wanted it easier to find the weakest skills in case my tree got in a really bad shape. This way I can filter out all skills above some threshold and see only the weakest ones. The idea being the weakest skills should be taken care of first.

But nowadays I actually do use it to reduce the workload, since I found it impossible to keep 3 trees golden all the time, while also doing a new one.

March 5, 2016

https://www.duolingo.com/profile/mike387963

I've given up on my forward trees because of the workload! This is a bit OT, but would it be feasible to write a script to only have L1->L2 exercises? In the forward golden trees I was having to spend an absurd amount of completely wasted time typing English (native). Deleting L2->L1 would save a lot of time.

I've set my German reverse tree to 3-skill alert: we'll see how it goes!

March 5, 2016

https://www.duolingo.com/profile/arekolek

It is most likely impossible to disable exercises with a userscript. But I have seen a userscript that can make these exercises somewhat more useful, so you should probably take a look.

After a second read of your comment, I'm not sure if my comment is helpful. If not, maybe you could try the flashcards in the Words tab. Apart from that, the only hope is in the Duolingo staff, I think.

March 5, 2016

https://www.duolingo.com/profile/dolinod

Any updates for Chrome?

August 30, 2017

https://www.duolingo.com/profile/johnlvs2run

I installed Tree Trimmer to Greasemonkey this morning, but Duolingo is not showing the button.

How can I get it to work?

September 26, 2017

[deactivated user]

    Is there an update coming? (Tree trimmer doesn't appear to do anything right now.)

    September 28, 2017

    https://www.duolingo.com/profile/WanderingMonk

    Works as advertised, thanks!!

    January 17, 2016

    https://www.duolingo.com/profile/TheQueenZerelda

    I love this! E-hem, (switches to perky advertisement voice) now that my tree is trimmed all I have to worry about it getting my weak skills gold! Now I'm able to focus on just learning the grammar rules I've skipped and strengthening the skills I've neglected. (clears throat, then in normal voice) I don't know why it's easier to do, now that I can't see everything I have gold, but maybe it's because having a small tree only one or two skills thick is a lot less intimidating and it seems less cluttered. I also really like how you can have only your one bar, both your one and two bar, or all one, two and three bar, or all skills shown...just with the click of a button. Muchas gracias!

    January 17, 2016

    https://www.duolingo.com/profile/Mrocznooki

    Works partially.

    When I have unfinished tree it works ok, but when I try to use it on my finished fully glided tree it doesn't work at all. I haven't tried it with finished, but not fully glided tree.

    January 17, 2016

    https://www.duolingo.com/profile/arekolek

    Thanks. You can now get the new version that addresses this (or wait for an auto update).

    January 17, 2016

    https://www.duolingo.com/profile/Mrocznooki

    Now works correctly. Thanks :)

    January 18, 2016

    https://www.duolingo.com/profile/-oizys-

    This script is awesome! Kudos!

    June 25, 2016

    https://www.duolingo.com/profile/arekolek

    Thanks. Regarding your comment:

    is the disappearing of the "strengthen skills" button with the tree trimmer intended behaviour?

    Can you post a screenshot with and without the button? It seems that I'm unable to reproduce this.

    June 26, 2016

    https://www.duolingo.com/profile/-oizys-

    I've been trying to reproduce it again myself: when I disabled and then reenabled the user script, the button came back. I'm using Opera on Windows 10, I'll post you a screenshot whenever it happens again. Should I acquire some other data in some way, like from the browser console or something?

    June 26, 2016

    https://www.duolingo.com/profile/arekolek

    It's too general for me at this moment to predict what else might be useful. But let me know if that ever happens again.

    June 26, 2016

    https://www.duolingo.com/profile/-oizys-

    Will do!

    June 26, 2016

    https://www.duolingo.com/profile/-oizys-

    Here:

    I've noticed this happens when I first start Opera. If I then disable and reenable the script, it works ok, but the button disappears again whenever I restart Opera.

    June 27, 2016

    https://www.duolingo.com/profile/arekolek

    I've added a rule that limits the hidden elements to just the tree, so your problem should be gone once your browser gets the update.

    Although, it shouldn't be needed in the first place. But I guess I will leave that be, if the fix works for you.

    June 28, 2016

    https://www.duolingo.com/profile/Torsby

    Thank you very much for the updated version!

    November 8, 2016

    https://www.duolingo.com/profile/arekolek

    Sure! And thank you for writing the first version :D

    November 8, 2016

    https://www.duolingo.com/profile/lilyflower231

    I just downloaded it, but I can't seem to find the button. WHere is it?

    January 7, 2017

    https://www.duolingo.com/profile/arekolek

    See the attached screenshot in the original post above. It's the "Grow tree"/"Trim tree" button.

    January 12, 2017

    https://www.duolingo.com/profile/iamsetsetiam

    your wonderful script has stopped working with the recent Duolingo update - I hope you can update the script so it works again. thanks

    May 27, 2017

    https://www.duolingo.com/profile/arekolek

    Yet another broken script, that's bad. But thanks for the kind words. I don't have the new version of Duolingo yet unfortunately, but I'll make sure to update the script as soon as I do.

    May 29, 2017

    https://www.duolingo.com/profile/iamsetsetiam

    Do you still not have the new Duolingo web version? We miss your excellent script

    July 9, 2017

    https://www.duolingo.com/profile/Thomas.Heiss

    V1.5 works with the whitelist workaround: https://www.duolingo.com/comment/23948899

    November 7, 2017

    https://www.duolingo.com/profile/graemeblake

    Any update? It is no longer working for me in Firefox.

    September 4, 2017

    https://www.duolingo.com/profile/Thomas.Heiss

    V1.5 works with the whitelist workaround: https://www.duolingo.com/comment/23948899

    November 7, 2017

    https://www.duolingo.com/profile/ellen_ofarrell

    Thanks! It's still broken in Chrome as of 17th June but I'm hoping to see it back soon, it's driving me nuts in the meantime

    June 17, 2017

    https://www.duolingo.com/profile/Thomas.Heiss

    V1.5 works (on Firefox - have not yet tested on Chrome) with the whitelist workaround: https://www.duolingo.com/comment/23948899

    November 7, 2017

    https://www.duolingo.com/profile/graemeblake

    Still working in Firefox in Macos, FWIW. I love it already, thank you so much!

    May 30, 2017

    https://www.duolingo.com/profile/graemeblake

    Is it working for you now? It's working for me, on Firefox. I just installed it.

    May 29, 2017

    https://www.duolingo.com/profile/iamsetsetiam

    No - I have Chrome.

    May 29, 2017

    https://www.duolingo.com/profile/Thomas.Heiss

    V1.5 works with the whitelist workaround: https://www.duolingo.com/comment/23948899

    November 7, 2017

    https://www.duolingo.com/profile/Thomas.Heiss

    Hello arekolek,

    unfortunately your script is not working anymore since 20 March 2018 (DuoLingo code update) with the whitelist workaround duo.old_web_url_whitelist=["^.+"]; like it did from 2017 until 02/2018 (or beginning of 03/2018).

    I really loved it to focus on low-strength skills (especially more difficult grammar skills) in my EN-PT tree.

    I am not on the "Skill crown level" update as I was given an opt-in.

    But somehow the last code update broke many scripts :-(
    I am using latest Tampermonkey (Greasemonkey had it's problems) with Firefox ESR 52.6.0.


    DuoLingo staff has announced in the Crown FAQ thread that they will force a mass-rollout of Crowns in the next couple of weeks to ALL users :-(

    April 1, 2018
    Learn a language in just 5 minutes a day. For free.