A script requested by @ckadioglu. Something like it already existed, but I thought I would make my own take on it.
What it does is display 0 lessons when you have too many items in your system already. By default this is set to a total of 100 apprentice items, but you can change it to be whatever you want, and not just dependent on apprentice items.
Below are the available settings for the script. You have the score, whether and how to display it on the dashboard, whether to display how many more lessons you can do before they lock, and what each type of item is worth. By setting these you can adjust the script to lock lessons whenever you feel is right.
If you set the scores to [2, 1, 1, 0.5, 0.143, 0.0714, 0.0333, 0.00833] the score will reflect the daily number of reviews you are expected to have, given your SRS distribution. (see [Userscript] Expected Daily Reviews)
For now the settings don’t update the page dynamically, so you will have to refresh for them to take effect after change.
Thanks! That was really quick and I really appreciate that you took the time.
This script works really well with the “Lesson Filter” script. Now after a review session I can see immediately if I have “unlocked” any lessons and use the Lesson Filter to manually set the lesson session item count to the displayed number.
If I had more time I would work on figuring out a way to have the two scripts communicate so that the “Lesson Filter” batch size is automatically set to the unlocked item count calculated by “Lesson Lock”, to have the fully automated kanji.garden self-pacing experience, but that’s more of an extreme luxury at this point.
Ooh, maybe you can link this to your “Expected Daily Reviews” script as well! Since the amount of Apprentice items is merely an indication of how busy you’ll get, but the expected daily reviews is much more accurate
Like for example if you have more than 3000 enlightened items like some people do , then the average amount of englightened items you get a day is an additional 25 items a day.
Added a setting for displaying how many more lessons you can do. However, I decided not to show the amount you actually have available, only the number you can do before lessons lock.
Added this as a setting, as well as a setting for it as a percentage.
Might not be the most graceful of solutions, but I would just have Lesson Lock write the number of lessons you can do to localStorage, then have Lesson Filter read that. Should be pretty simple, I imagine.
Fixed. Now says “Enlighthened”
I have updated the OP to include a Rick Roll
Could not settle on a good way to include this as a setting, but I put the values you would need to set the scores to in the OP.