[Userscript] WaniKani Kanji On'yomi Only

I made a userscript that allows you to use the on’yomi for kanji in quizzes, where WaniKani would normally test you for the kun’yomi.

By default it forces you to use the on’yomi reading (except if the kanji only has kun’yomi), but you can also change this behavior, so it only additionally accepts on’yomi and you can still type the kun’yomi reading you learned. You can change the variable alsoAcceptKunyomi in row 21 to true, if you want that to be the case.

Important: This only applies to kanji cards that teach you the kun’yomi reading and not to vocabulary cards.

Script:

Requirements:

A userscript addon for your given browser like:

Tampermonkey

Other Scripts:

If you want to use this script together with WaniKani Katakana For On’yomi make sure the Kanji On’yomi Only script is executed first.

Pro tip: If you combine this script with Keisei 形声 Semantic-Phonetic Composition you can make it easier to learn the on’yomi without WaniKani’s mnemonics, that would be missing for those kanji.

10 Likes

The problem with this is that if someone wants to do an on’yomi-only run, they’ll run into an issue with kanji that don’t have an on’yomi reading, since they won’t be able to progress unless they change line 21 to true.

However, if they leave it set to true, the script will also accept kun’yomi answers, which defeats the purpose of an on’yomi-only run.

Would it be possible to make the script automatically default to the kun’yomi only when a kanji doesn’t have an on’yomi reading?

1 Like

What about for kanji like 込 that don’t have an on-reading? Will it still ask for a kun-reading?

1 Like

Currently, the script forces you to enter the on’yomi even for kanji that don’t have an on’yomi reading. This means you can’t progress unless you either disable the script or set line 21 to true to allow kun’yomi answers.

1 Like

I already implemented that in Version 0.1.1

Do you happen to have the old version by any chance? Or can you tell me for which kanji without on’yomi it didn’t let you enter the kun’yomi?

Maybe I should add this to the description as well.

Yeah it should work that way.

If it doesn’t behave like that for a kanji please tell me which one and I’ll take a look at it.

I am using the latest version. Here’s an example of one it doesn’t work on

1 Like

It should be fixed now. You can update to version 0.1.2 and try it out.

1 Like

Thanks! It seems to be working fine now.

1 Like

No problem! Just tell me if there’s still anything wrong with the script.

1 Like