Works! Fantastic! Many thanks.
Thank you so much!
Hello, sorry to be that person but itās not working for me. Iām using tampermonkey on firefox.
true.
Looked into the KW code and the website has changed a lot since I published this script. It used to be easy to find the correct answer on the page itself, but now I canāt seem to find where they put it. Donāt know if we can even access it with a user script any more. Spend some time on it, but couldnāt find a solution. If you really really want Anki Mode on KW, you should ask the creators about it. Either they could build it into their website (ideally) or they could tell us how to access the correct answer to the question.
Hey Mempo, you can access the answers, the info box is visually hidden but still present.
However css class names are generated (for scoping) and are subject to be re-generated if their underlying code changes. You could get to it with tag selectors (main > div > ul etc) but Iām still re-organising the layout a bit so that would be too brittle.
Iām not crazy about adding anki mode built-in right now (other priorities to work on), I could perhaps add a few custom data-attributes or ids for you. data-anki-answer, data-anki-submit etc so you can easily select the necessary elements even if the layout/css changes though.
Should be working now. Can you confirm?
Managed to fix it by filtering out all the ālang(ja)ā and then putting the pieces together.
If that breaks in the future, I will contact you about adding a custom id. Thanks for the help!
No worries, ids would definitely be safer/easier for you - but glad itās working 
How can I edit it to respond to K and L instead of 1 and 2? Iām using the irrelephant version of your script (sorryā¦) in WK and would like to change this script to match that. Simply changing the numbers to the letters in the script didnāt do the magicā¦
Oooh, does this KaniWani script still work? I thought it broke after their update. If you tell me it is still working then Iām totally ob that. Iāll get back to you.
Works for me!
Interesting! And thank you so much 
Ooooh, it really works, I had not realized thata @Mempo had updated it to version 2. This is good news!
Thanks so much for the update, Mempo! (I really should be getting back into KaniWani once againā¦)
After line 48 you will find code that looks like this:
event.stopPropagation();
event.preventDefault();
//console.log('//// pressed 1');
WKANKIMODE_answerYes();
return;
break;
case 50: //2
You will want to change the key codes 49 and 50 to something else. If you want them to be K and L then you would use 75 and 76:
event.stopPropagation();
event.preventDefault();
//console.log('//// pressed 1');
WKANKIMODE_answerYes();
return;
break;
case 76: //key: "L" like "loser" (sorry, you are not a loser! It's all for the sake of the mnemonics)
Thank you a lot! This helps so much 
Actually, I found out something that doesnāt work in this script.
If there are multiple correct answers, it gives both answers in a row and marks it as incorrect when I press K/1. Must be because it inputs them both. Iāll just have to manually backspace the other one out⦠Gah, sorry for all the edits, my own stupidity just caught me by surprise. 

I think it works if you replace the part starting at line 19:
$("div:lang(ja)").each(function(i, obj) {
if(!obj.innerHTML.includes("<")){ // check for html tags
// console.log(obj.innerHTML);
answer += obj.innerHTML;
}
});
With this little hack:
var firstParentEl = null;
$("div:lang(ja)").each(function(i, obj) {
if(!obj.innerHTML.includes("<")){ // check for html tags
var parentEl = obj.parentNode.parentNode.parentNode;
if(firstParentEl !=null && parentEl!=firstParentEl){
//workaround: submitting multiple answers seems to cause problems so we only show and submit the first one; since there can be multiple "ja" elements
//that are part of an answer we use the parent element to determine if we are still within the same (first) answer object already in the next one
return;
}
// console.log(obj.innerHTML);
answer += obj.innerHTML;
firstParentEl = parentEl;
}
});
But unfortunately, the furigana information doesnāt seem to be available before submitting the answer :-/
I would need that to know if my answer was truly correct. Maybe one could load it via the WaniKani API? Not sure if that would work.
Thatās true⦠Mostly I know the readings, so Iāll just have to deal with it. Iām helpless when it comes to coding
Anyway, thank you! Thisāll help a lot in any case!
Sorry for reviving an old thread but would it be possible to add clickable buttons to this like you did with WaniKani? Iāve tried but I havent been able to essentially gut out the buttons to add the KaniWani functions in place of the old functions. I do use them semi regularly on my phone when Iām out and about and would be a bit help if it wonāt take too much time.
Iām unfortunately not using KW anymore and a bit busy at the moment so I canāt promise anythingā¦
But if I find a few free minutes and happen to remember it, I will have a look (not at my laptop right nowā¦).
Thank you immensely! No rush at all and understand if you canāt (beggars canāt be choosers after all)
Could someone please help ? Iāve added this plugin, but it just doesnāt work at all 