[NO LONGER SUPPORTED] [Userscript] WaniKani Lesson Filter

I was able to get Lesson Filter on iOS Safari by using an extension called Hyperweb. Pretty cool!

4 Likes

Hey @seanblue, could you share how you set up user scripts in Hyperweb? Iā€™ve tried and failed to get any of them working so far. Perhaps the script loading order is not guaranteed so WOF doesnā€™t load first?

I doubt the order is honored. Lesson Filter doesnā€™t rely on Open Framework, so I never bothered testing what would happen with scripts that depended on it.

1 Like

Hey all. If any of you have been dealing with the issue where the quiz starts early or requires extra clicks / keypresses that should be fixed now. It was particularly obvious if you changed the batch size using the script. The bug was a side effect of a somewhat recent change from WaniKani, impacting only people with compatibility mode off. Now this should not be an issue regardless of compatibility mode being on or off.

3 Likes

Hey, I installed the scrip yesterday and really, really love it! However, I donā€™t know if itā€™s been brought up by someone already, but woud it be possible to have that box where you can type in how many items you want to learn from each type removed after the first item is done? Itā€™s distracting me a little when I see that black box next to the white of WaniKani at the bottom of the page and would really love it if it was removed after the first item it done or after one has klicked on filter/shuffle, since you donā€™t need it anymore after this point. But then, if itā€™s too much trouble and other poeple donā€™t seem to mind, then itā€™s ok! Iā€™ll just get used to it, the script is amazing the way it is now anyway and has helped me to make progress quicker. Canā€™t believe that I only discovered it now.

2 Likes

Some people filter or shuffle more than once, so I wouldnā€™t want to hide it when those are clicked. And in general, I wouldnā€™t want to hide it without providing a way to show it again, and Iā€™m not sure how Iā€™d do that. For those reasons Iā€™ll probably leave it as-is unless more people make the same request.

Best of luck with your studies!

2 Likes

Didnā€™t take that into consideration. Well, then Iā€™ll just have to get used to it. Thanks anyway!

1 Like

Hello @seanblue, thank you for the script, it is very efficient, and useful to me !! :smiling_face_with_three_hearts::pray:
However, just like @Jin-ki, I think that maybe it could benefit a slighty different design.
If donā€™t know if that would be a lot of programing work. If so, just forget about my proposal. Iā€™ll just get used to how the script is now, because it is so useful :relieved:

Maybe you could place the box inside a Toggle, like they did in the ā€œReorder Ultimate 2ā€ userscript ? (see image below)
Also maybe you could propose a light color mode ? To fit the default light grey of Wanikani
Also maybe you could place the box at the bottom of the page ? Under the lesson items list

Again, if thatā€™s a lot of work, Iā€™ll totally understand that you donā€™t have time for it. Thank you for what you did already, mate :+1:

Toggle opened :

Toggle closed :

Hello @seanblue , thanks for the script! I installed a couple weeks ago but the filter button suddenly stopped working for me.

Iā€™m not at all familiar with using userscripts but I looked at the devtools window and this shows:

As you can see, the shuffle button still functions properly, but when I click the filter button nothing changes and I still have more than 10 kanji in the queue. Not sure if that error in the screenshot has anything to do with it. Could this be a bug or am I just not using this properly?

I think itā€™s working correctly. Since you left the radical and vocab inputs blank, that means those are not being filtered out. If you want to only do kanji lessons, you have to set radicals and vocab to 0.

To see if itā€™s working as expected, look at the top right corner of the lessons section. For example:

image

Using the values in your screenshot, you should see the kanji value drop to 5, while the other two stay the same since they were left blank.

3 Likes

So I just wasnā€™t using it properly. :flushed: Sorry about that and thanks for the very clear explanation!

2 Likes

@seanblue I really LOVE this script and use it heavily, but I was wondering, do you think there might be any way to cherry pick lessons from a list of all possible items queued up?

Use case would mostly be for quickly adding vocab word lessons for the kanji I keep getting wrong, without having to first go through the other lessons queued up before that for the ones Iā€™m not having any trouble with.

Apologies if this is too far off of what this script is designed to do, but I figured you would know best if it were even possible.

1 Like

It sounds possible to me, sure. Definitely not something Iā€™d add to this script though, and Iā€™m not writing new scripts for WaniKani these days. But if you know programming or have an interest in learning, you are welcome to modify my script to support this.

I might take a stab at it after the JPLT this December, then, if it seems like something the API could support!

Iā€™ve been low-key looking for a new programming project. :grin:

Was thinking of trying to rewrite this for APIv2, but I honestly doubt anyone except me still uses both WK and a Pebble smartwatch, and if itā€™s just me I can just manually input a list of kanji Iā€™m currently trying to memorize and skip the whole API call part of it. Might be a cool project to tackle as a desktop app or phone app, thoughā€¦ I like the combination of funtional clock + kanji review.

The script doesnā€™t currently use the API actually. I have written some scripts that do, but this one just relies on the lesson data being loaded into jStorage. In theory you could input the kanji you want to reinforce, have it search through the list of lessons in jStorage, and move vocab items containing that kanji to the front of the queue.

2 Likes

Admittedly, Iā€™m not entirely sure if it really the case yet but it seems that the lesson filter script is not working because it didnā€™t show today despite being marked as active when I was doing my lessons (worked fine yesterday and the days before).

I suppose that this is probably connected to the retiring of script compatibility mode.

On that note, would it be useful to create a thread where community members collect all changes they noticed for any script to have an overview for the coming days/weeks, or should we just stick to reporting changes in script behaviours in the respective script threads?

I still see the filter options on my end. So it works for me. Some other things look a bit weird though. xD

Edit: Iā€™m on Safari.

1 Like

When you say it doesnā€™t work, is it that it doesnā€™t appear at all in the lesson page ?
Because thatā€™s an issue I am facing and I think itā€™s related to a problem between chrome and Tampermonkey. I refresh the page until it works.

It has been reported in other threads that one way of fixing it is to change from Tampermonkey over to ViolentMonkey. I havenā€™t done it yet since I am too lazy to reinstall all the user-script. I was low-key hoping the issue would be fixed quickly. But this issue has been running for a month now on my end, so I think I will do the switch shortly.

Not sure if itā€™s what you are facing though, but here is the thread I mention, just in case

2 Likes

@MissDagger Good to know that it works for you ā€“ which browser do you use?

@Makushi_Rutsu
Yes, thatā€™s what I meant. Despite still being ā€˜onā€™ in the tapermonkey settings, the filter doesnā€™t show up anymore.

I donā€™t use Chrome ā€“ I use Safari for Wanikani ā€“ so I assume that itā€™s not necessarily a problem with the browser either because the script worked yesterday. Still, thank you for your suggestion!
I took screenshots of my Kanji lessons yesterday and today and can show them here ā€“ all of them (are supposed to) have 7 scripts running including the lesson filter:

Yesterday (normal and dark mode)

Today

2 Likes

Iā€™m on Safari too.

1 Like