[Userscript] WaniKani Dashboard Leech Tables - Notice your leeches

Script link:
https://greasyfork.org/en/scripts/372937-wanikani-dashboard-leech-tables-notice-your-leeches

Description
This script will calculate and display your leeches in tables on your dashboard.


There is a menu that allows you to change how many leeches you want to display and what score will be considered a leech.
leech%20table%20menu

leech%20table%20menu%20dialog

How does it work?

hitechbunnyMath

Leech scores are calculated using hitechbunny’s formula which is used by other leech-related scripts as well.

Additional screenshots

Adjusting leech threshold

Setting leech threshold from 1 to 2.
score2
Result:


Result setting threshold to 3:

Result if threshold set so high there are no leeches available:

Disabling the pre-existing tables

Disabling tables ‘critical items’ and ‘newly burned’ in menu:


Result:

Disabling all three tables pre-existing tables result:

Requirements
The WaniKani Open Framework.

List of features:

  • Dynamically create tables based upon user configured settings
  • Calculate leech scores for every item and order them by score
  • Display leeches based upon configured leechthreshold value
  • Change yourself what scores are and aren’t considered a leech
  • The ‘newly unlocked items’, ‘critical condition items’ and ‘newly burned items’ tables can be toggled on/off in the menu

What is a Leech?
LEECH: An item in language learning that just won’t stick, and ends up wasting massive amounts of your time.

Log:

  • 1.0 Initial release
  • 1.1 Can now disable the newly unlocked items and newly burned items tables as well.
  • 1.2 Total number of leeches allowed increased from 50 to 200, meaning and reading of a leech is shown on hover, tables ‘newly unlocked items’, ‘critical condition items’ and ‘newly burned items’ tables will try to take up unused space but this feature may not work properly yet.

Note:

  • This script has been tested in Tampermonkey on Chrome.
25 Likes

Nice! Thanks!

Here are some screenshots on Opera browser.

I might want to use another script to clean/erase forum, burned items and new unlocks later. I need critical condition items though it’s good to know that I can erase that critical condition items from this user script setting.

I’ve added this to The New And Improved List of API and Third Party Apps.

3 Likes

Hi Oshin, thanks for adding my script to The New And Improved List Of API and Third Party Apps.

I’ve just updated my script so that you can remove the new unlocks and burned items tables as well. Hope it helps!

1 Like

Perfect!

THANK YOU!!! These leeches are draining my will to live

Hey it seems that an update to this script has now caused my leech tables to completely disappear.

According to Chrome console it seems to be something involving line 266 in createTopLeechTables:

<td tooltip="${items[j].data.meanings[0].meaning}, ${items[j].data.readings[0].reading}">

1 Like

To add more info to my previous post, that .readings[0] is what is blowing up if one of your leeches is a radical.

This may not be the best fix but I did this to fix it for now:

<td tooltip="${items[j].data.meanings[0].meaning}, ${items[j].data.readings !== undefined ? items[j].data.readings[0].reading : ""}">

1 Like

I see, so it’s trying to retrieve a radical’s reading. But because radicals don’t have that it crashes. If that’s the problem I should be able to fix it soon.

1 Like

Thanks! Yep, that’s what seems to be the issue.

I used your fix to solve it. You said it was not the best fix though, what do you mean?

Seems fine to me :+1:

I just don’t really do much Javascript coding, so I wasn’t sure if there was a more elegant solution. That’s all.

1 Like

Just a suggestion… would it be possible to display time until the next review somehow on each entry in this list? Would help me note which ones I need to be paying attention to in the immediate future.

2 Likes

@Dani2 I wonder if you can also (have a setting to) hide “Recent Community Topics”? Remove Useless Scripts don’t hide “Recent Community Topics” if I use WK Dashboard Leech Tables script.

This script has always been on my WK Dashboard since its public birth. Thanks!

Thank you! This is great!

This will be very helpful to me, thank you! :+1: