[Userscript] WaniKani Open Framework Additional Filters (Recent Lessons, Leech Training, Related Items, and more)

Should be fixed now. I didn’t test it since Tampermonkey hasn’t worked for me in months.

1 Like

Thanks a lot. I can download it in tampermonkey. But the changes are not like I submitted them. Line 349 reads as

		var srsInvervalInHours = getSrsIntervalInHours(srsStage, data.level);

As it stands the console editor complains the variable data is undefined. All items are filtered out without reporting an error by the filter because WKOF try ... catch clause filters out all items where an error occurs while silently supressing the error message.

Line 349 should be

		var srsInvervalInHours = getSrsIntervalInHours(srsStage, item.data.level);

This is an important fix because the error affects all items, not just those with an accelerated intervals. The effect is that no item are displayed for the Failed Last Review filter regardless whether they have failed the review or not.

:man_facepalming:

This is what happens when I make a change I can’t test. Thanks for letting me know. This should be fixed now.

1 Like

It works fine now. Thanks for the quick fix.

1 Like

Are you using Chrome by any chance? A few monts ago Chrome introduced a (mis)feature that won’t let Tampermonkey work unless developer mode is turned on. Could this be your problem?

That’s probably it yeah. And I didn’t care enough to work around the issue since I don’t use WaniKani anymore and that’s where most of my scripts were.

1 Like

Does anyone have this 100% working currently? I can launch both Additional Filters and Self-Study from the WK menu but it it does not appear that all features are working. Using Chrome on MacOS, Developer Mode enabled.


Additional Filters works fine. I use it every day. Your problem is Self-Study Script lack of icons so you are missing the feature you need to configure the filters in SSQ. Someone made a user style that fixes SSQ. Note this is a userstyle, not a userscript. You need to load it in Stylus or something similar.

1 Like

Awesome - that fixed Self-Study! Does my screenshot of Additional Filters indicate that something’s broken? I see no changes to my WK dashboard page and that box is all I get from the Additional Filters.

1 Like

In SSQ click on the gear icon and create a new preset in the items tab. The filters will be available there.

1 Like

Got it - I’m fixed now. Thanks for the help!

1 Like

Hello!

I’m trying to filter on “Time Until Review” in the self study, but it always matches exactly 0 items, regardless of whether I set the value to 1 or 99. On the other hand, if I invert the filter, it always matches everything (i.e. it doesn’t filter at all.)

Is this a known issue, or maybe I am doing something wrong? I’ve also tried 0.5 and that also matched nothing.

Try something like 50 and see what happens.