[Userscript] WaniKani Lock Script

Just wondering if/when this script will be updated to deal with the latest changes that WaniKani just made. I’ve been relying on this script to be able to do WaniKani at all lately (I had a meltdown where I ended up with over 400 reviews and being able to restrict my reviews to a subset of that has been a godsend while I work at slowly burning my reviews down to a more reasonable level (now I’m down to a base of 300 locked reviews).

If this script isn’t going to be updated (or will no longer work), does anyone know of an alternative script that does locking?

Yes, I’m in the process of doing that update now.

The actual reviews part is done - I’m just moving the UI elsewhere since the review summary page has gone.

Excellent! Looking forward to trying it out once you’ve updated it.

OK - I’ve just updated the script to version 1.1.0 which I’ve just tested as working with the recent WK update.

I’ve moved the settings to the dashboard page (just above the review counts).

Have at it!

1 Like

Oh, and a shout-out to @Sinyaven for the WK queue manipulator script which this now uses.

Thanks!

1 Like

Seems to work just fine. Once a few other user scripts get updated I should be able to get back to reviews.

Thanks so much for the quick turnaround!

1 Like

I just updated the script again (to 1.1.1) with the latest wkQueue version.

2 Likes

Hello, I am brand new to using scripts and just downloaded this one successfully. The script appears on to be working on my WK dashboard with one flaw being that there is no sliding bar to adjust how many reviews to lock.

Does anyone know a fix for this?

The slider appears once you’ve set the API token. Normally the API token will be visible when you open up the settings and so it looks like you’ve not done that yet.

First, thank you SO much for this script. It is the reason I’m still using WaniKani today. I got behind on my reviews a while back and your Lock script made it possible for me to slowly dig my way back out.

One small-ish request:

I use Userscripts to manage my extensions since it works on both iOS and Mac, but Userscripts looks for the @uploadURL and @downloadURL tags when figuring out when a script needs to be updated (docs on this are here: GitHub - quoid/userscripts: An open-source userscript manager for Safari). You can also check out the following script that uses the two tags (https://github.com/mwil/wanikani-userscripts/raw/master/wanikani-similar-kanji/wk_niai.user.js).

Could you add these tags so Userscripts is able to auto-update your script?

2 Likes

OK - I updated it to include those tags.

I guess you’ll have to update manually to 1.1.2 but after that I can update again to check that the updating works.

It probably won’t work, because Greasy Fork automatically removes @updateURL, @installURL, and @downloadURL tags. As far as I know, Tampermonkey, Violentmonkey, and Greasemonkey all use the URL from where the script was installed, and @updateURL can optionally be used to override that default behavior. If it is true that the Userscripts extension does not automatically update from the original installation URL, that seems like a flaw in the Userscripts extension to me.

Sadly, I need something that works with Safari on both iOS and macOS and only Userscripts fits the bill (none of the *monkey scripts work with iOS and only Tampermonkey works with Safari at all).

Best I can tell, from Userscripts’ perspective it’s using @updateURL in the way it was intended (a property that indicates where updates are found for the script). Personally, I find Greasyfork’s behavior here sketchy since it really is locking you into using their directory in an age where hosting a script on GitHub is super simple and more flexible, but whatever. I guess I’ll just occasionally keep checking in and updating the scripts manually…

Hiya, I just wanted to say that I came back to WK recently and your script was the reason I was able to get through my backlog of reviews so quickly - I made it so I could only see five reviews at a time, and watching the bar fill up every time, I did dozens of reviews in single sittings because “well I could do five more, yeah” …repeatedly XD Thank you so, so much. Is there anything I can do to support your work?

1 Like

Thanks for the offer but I’m good thanks - the script doesn’t need a whole lot of maintenance these days!

For what it’s worth, I originally wrote it thinking that it wouldn’t be needed after I cleared the mountain that I had. The only problem is that now that I don’t have a dreaded review queue, I’ve let it lapse for about… maybe six years or so.

1 Like

Well actually, speaking of maintenance these days, WK got an update a few days ago and your awesome script disappeared! Any chance you could update it? If not that’s okay I understand it’s entirely a volunteer thing you provide. Thank you so much!

Hmm, six years is a long while. Are you still interested in learning Japanese? Is there anything I can do to help you find your motivation again?

1 Like

Right - I’ve fixed it up for the current version of WK. Thinking about it, I should put it up on GitHub so that people can create issues / push requests, etc.

About Japanese language - I got to the point where kanji wasn’t really the big problem as it was years ago. I will finish WK one day though, even if I did start it over ten years ago!

BTW, being blunt is a good strategy. :wink:

1 Like

Hiya again, I see it on the dashboard now yay progress! Unfortunately, it caps out at 100 and then when you go into do reviews it doesn’t lock anything and upon backing out to the dashboard, it’s gone again. Sorry to be a bother I just thought you might want to know…

Well, I bid thee good luck with finishing WaniKani once and for all! And I hope you’ve found study methods that you do find enjoyable :slight_smile:
I know for me when something seems overwhelming I ask myself “okay, what is the smallest part I would be willing to do right now?” which usually looks like:

“10 minutes?”
“no.”
“5 minutes?”
“nope.”
“One minute?”
>:|
“thirty seconds?”
“okay fine, 30 seconds. but that’s it”

and usually by the time the 30 seconds are up I’m willing to do 30 more seconds haha

if this method only works for me, welp, sorry! Hope you find it funny at least

1 Like

Does the number change when you move the slider?

I was trying to reproduce it and I got it to happen once (on Firefox) but not again.

Alrighty I fixed it! I had totally uninstalled it and reinstalled it to try and fix it and deleted the API token and once I re-installed it, it kept the old API token. All I had to do was update that and now it works again yay :smiley: Sorry for the blunder on my end, thank you so much for all your help!! I can’t wait to get back to my reviews now ^^

1 Like