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.
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.
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?
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.