So, I took a look and I don’t think I will be adding compatibility, at least not soon. Ankimode disables and replaces the standard input field with its own version to display and directly inserts the correct answer, whereas this script reacts whenever something is typed in the standard input field. It would probably be possible to align them, but I can’t really think of a good way to do it.
Thanks for troubleshooting the issue, I will add this incompatibility as a known issue.
Seems this is no longer working perfectly due to an update. If you load the dashboard and then navigate to a review page, the script will not load. Workaround is to refresh the browser on the review page.
Seems to also work if you remove the following two lines from the script
// @excludehttps://www.wanikani.com/dashboard
// @excludehttp://www.wanikani.com/dashboard
but I am on vacation so I can’t properly test or deploy a fix this week.
It looks like this userscript is not working anymore for me. I’ve also tried to turn off other userscripts I have installed, but it’s still not working. I am on Chrome and I’m using Tampermonkey.
Strange. Could you open the browser debug window, select the console tab, and paste the contents here? Preferably while using only this script.
Edit: Hmm, now I got a similar problem myself, but it went away when I tried to track it down. The console complained about too much recursion. No idea what that’s about.
Hi Harald1, thank you for your reply.
I updated the script to version 2.4.3 and it is working now, also combined with other userscripts (it works also with auto-commit by fixing that script in this way). Apparently I only had installed version 2.0.0
Hey just as a quick info for anyone wanting to use the script together with flick input on the phone, as it makes you unable to write kana with dakuten, handakuten or small kana.
I just changed the “input” classifier from the EventListener in row 47 to “blur” to only convert it after you finished typing everything.
Maybe this also works for hiragana input on pc, haven’t tested it though.
I realized that the on’yomi readings are still shown in hiragana when you search for a kanji outside of reviews and lessons. Would it be possible to make them into katakana too?
Maybe the script just needs to be applied at those pages or maybe it’s more difficult to make this change.
It should definitely be possible, but I ran into some trouble trying to make it work with the navigation framework wk uses. A few dozen posts up in the thread someone posted a 4 line addition to the script that makes it work on kanji pages, but it only works if you refresh the page, or navigate to the page from outside wk. This is about as far as I managed to get it to work as well.
I keep thinking I’ll look into it next vacation, but somehow there’s always more fun things to do than code javascript for a feature I personally never use.
You’re not the first person to request it, so there’s definitely a demand.