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.)
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?
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.
Has this great script been updated yet to work with the new Duolingo web site?
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.
It requires the "Stylish" extension
You better switch to Stylus.
Could you please update the script so that it works for the current website? I'm really useless with the massive untrimmed tree :-(
Quote: The "hide" script works great with Stylish on firefox or chrome.
You better switch to Stylus.
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.
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.
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?
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.
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!
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.
I installed Tree Trimmer to Greasemonkey this morning, but Duolingo is not showing the button.
How can I get it to work?
Is there an update coming? (Tree trimmer doesn't appear to do anything right now.)
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!
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.
Thanks. You can now get the new version that addresses this (or wait for an auto update).
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.
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?
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.
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.
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.
See the attached screenshot in the original post above. It's the "Grow tree"/"Trim tree" button.
your wonderful script has stopped working with the recent Duolingo update - I hope you can update the script so it works again. thanks
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.
Do you still not have the new Duolingo web version? We miss your excellent script
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
Still working in Firefox in Macos, FWIW. I love it already, thank you so much!
Is it working for you now? It's working for me, on Firefox. I just installed it.
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 :-(