[Userscript] WaniKani Leech List

I included something like that (only the srs - part) in my PR ^^

Nice idea to filter by level though - might be good for the overall performance.

just merged your PR, it looks great, thank you!

1 Like

Happy to help ^^

I was glad to finally get a leech list again, so thank you for creating the script in the first place. I just tweaked it a bit :wink:

Btw, it’s working fine in Firefox (Tampermonkey) too :wink:
I’ve been using it with Chrome+TM (at home) and FF+TM (at work) without problems.

1 Like

Heya,

Might I do a suggestion regarding the algorithm of the script? If I’m correct, the system uses the equation that @hitechbunny used

image

However, since the largest possible streak is 8, if you get an item more than 23 times wrong, it will never leave leech status until you burn it.

(x/(8^1.5)<1, means x>22.63)

Could there be an implementation where only the errors of, for example, the last 4 months are taken into account? If I fall for the same trap multiple times, but manage to finally get it after a long time, I will never lose leech status at all, and it is no longer a good representation of how bad of a leech it is.

If I get something wrong like six hundred times, but my current streak is 7, I think it can be assumed that I got it by now.

EDIT: Another solution would be to not just take the current streak, but the factorial of the current streak.

2 Likes

So I calculated at what point you will never be able to remove a leech with the given formula.
Since the amount of incorrect times you answered is divided by streak^1.5, there is a maximum streak number that can be made from any given position. This results in that at some point, when you go past a certain amount of mistakes, that item will be a leech forever, until you burn it. Below is a table for every point at which you squash a leech.

Position at which leech will only be removed by burning
Position of Leech when Understood Point of No Return for Leech Status
Apprentice 1 19 mistakes
Apprentice 2 15 mistakes
Apprentice 3 12 mistakes
Apprentice 4 8 mistakes
Guru 1 6 mistakes
Guru 2 3 mistakes
Master 1 mistake
Enlightened 1 mistake

This also means that to remove a leech that you got wrong the amount given on the right side, you need to get it right more times than the streak you have left at the SRS points on the left.

Since I am of the opinion that this data is also important to the leech list, I thought I might add it myself. It’s not the most beautiful thing, but it gets the job done. On the left side of the slash is the amount of times you got something wrong, on the right side of the slash is your current streak.

EDIT: Added a way to sort the script based on Amount of Errors and Current Streak

EDIT2: Added a way to see if a leech can ever be erased before a burn, if you get everything right up to that burn. I would like to count the amount of impossible items, but I’m not sure how to do that yet.

Edited Script

It would be interesting to compare leech data from a large amount of users in order to compile a list of the most notorious items

2 Likes

Thanks for figuring this out (I should have read all the way down the thread before installing!) - I did think it odd to have Enlightened leeches :thinking:

I don’t do code, so would appreciate your help - do I insert this bit immediately after (function() {
‘use strict’; or am I cutting out original code and replacing with this? If the latter, I’d appreciate your guidance on what to cut out.

TIA

I actually made a secondary script that has all these features and more. Ukebox hasn’t been online for a long while so I took it into my own hands. Still haven’t received an ok from them though so it feels a bit skeezy :cold_sweat: But I thought it would help a bunch of people so I went ahead anyway.

1 Like

Some radicals are not correctly displayed in the top leech list, although the link to the item is working. In this screenshot, the first radical is ‘spikes’, the other is ‘pope’.

This bug has been solved in the Item Inspector script.

The latest site update seems to have broken this script.

1 Like