[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