The pitch info in the question area is currently showing “undefined”.
I believe that it’s caused by wkItemInfo.currentState.reading returning [undefined].
See [For Userscript Authors] WK Item Info Injector - #63 by flippfuzz
How did you do that? I’ve done a diff with your version 0.80 vs version 0.79 and don’t see this.
I’m trying to fix the pitch in question area right now and will submit a pull request with the other 2 points.
Thank you very much for this script!
I have some questions for words with multiple readings.
For example, for 力士 we see this diagram:
- Does this mean the word can be read in two different ways?
- What do the colors (orange and pink in this case) represent?
- Can I find out which pitch is the more commonly used one?
The colors just correspond to the 4 pitch patterns. And both readings are possible. The first one is probably the more common one, but it could also be different.
You can just listen to the two sample audio files to see what they’re using.
Also sometimes one accent is only used with one word type and the other for the other one, like for a word that is a na-adjective and noun.
But this isn’t too common and you will probably correct that at some point if you continue learning Japanese, so don’t worry too much about it.
I am having issues with displaying the pitch info next to the vocabulary. I have tried some fixes in this thread but none have worked. I do not have the settings cogwheel on the top left to activate the for Pitch accent, only for Double Check. The pitch info displays correctly inside the more info page during reviews, but not next to the vocabulary, are there any fixes I could try?
I don’t know about the cogwheel not appearing (maybe refresh the page after the reviews appear, this usually loads up the [Userscript] Simple Show Context Sentence - #49 by skatefriday for me).
I just tried to fix it, because it was also not showing for me, although the Display pitch beside question checkbox was checked in the settings.
The following works for me to display the pitch beside the top-of-page reading (seen like here [Userscript] WaniKani Pitch Info):
Replace (should be line 130)
let divQuestion = document.querySelector("#turbo-body > div.quiz > div > div.character-header.character-header--vocabulary > div > div.character-header__characters");
with
let divQuestion = document.querySelector("#turbo-body > div.quiz > div > div.character-header.character-header--vocabulary > div > div.qa-character-wrapper > div.character-header__characters");
This worked for me when Display pitch beside question checkbox is checked in the settings.
@Invertex Maybe you could update the script.(has been updated, no need for manual change)
I’m also having the issue that the pitch displays, and the userscript seems to be working…but while “display pitch” is checked nothing comes up ![]()
I tried replacing that line of code (belive it was line 132 for me) but alas no fix. Any ideas how to get it back??? Thanks so much!
Wondering if you ever got this fixed?
Such a bummer this one isn’t working. It was super helpful while doing reviews to see if I pronounced it correctly or not.
weirdly enough, on my phone with lemur browser + tampermonkey it’s still working perfectly, but not on opera on my pc
