Advanced Context Sentence
We all know Wanikani’s weakness, context sentences. I bet many of us just skip them entirely most of the time. This script enhances the context sentences by introducing two features:
-
Recognizable Kanji Highlighting
Highlighting the kanji you already learned and should be able to recognize. this will encourage you to read the context sentence just to try and remember all the kanji you learned in it.
Forgot the kanji? just click on it and you will be taken to the kanji page and review it again if you must. Don’t worry this won’t affect the SRS system, if you don’t use your knowledge to read until you burn the item then you will keep forgetting to no end. Reading is the best way to reinforce your memory -
Sentence Audio
Adds an audio button that uses Google Translator to read the sentence for you, thanks to @Kumirei for teaching me how to do it -
Kanji Information
Hovering on kanji will reveal some information about the kanji like the level, reading, and meaning. Additionally, using @Kumirei’s Open Framework, Advanced Context Sentence can now show you JLPT level, Joyo level, and frequency of that kanji
Note: you will only get information if the kanji is on Wanikani, if not then the link will take you to the kanji page in Jisho.org and you can get all the information you need from there.
Dependencies
-
Wanikani Open Framework
You can still use Advanced Context Sentence normally without Wanikani Open Framework, but you’ll miss two features: change the colour of highlights, and the tooltip that shows you information about the kanji. Default highlights and Audio should work just fine -
Wanikani Open Framework JLPT, Joyo, and Frequency filters
You don’t have to install this script either, but if you do you will get three more additioanl informations when hovering over a kanji: JLPT level, Joyo level, and Frequencey. as usual, make sure Advanced Context Sentence runs after this script in order for these information to appear
Screenshots
Wanikani Open Framework not installed
Wanikani Open Framework installed, but with no JLPT, Joyo, and Frequency Filters
Wanikani open Framework installed, and JLPT, Joyo, and Frequency installed too
On Dark Mood: WaniKani Breeze Dark
Instillation
Babbling
I spent a lot of time thinking of making a script but I had nothing in mind. As a full time payed Javascript developer I was ashamed that I use this website without taking the time to contribute something for the community. I read What do you want now? (Request extensions here) and then this comment by @someone972 took all my interest.
To be honest I didn’t look for any script that does this already, I just don’t want to know all I want is to make something. If there is any other script please feel free to link it for me and I will mention it, I will delete the script if there is another that does exactly what Advanced Context Sentence does.
Finally, should I mention that this is my first post ever? yeah… hi i guess
Changelog
- Version 1.01
Fix an audio bug on Safari, thanks to @Oshin for the bug report - Version 1.02
Fix the loading screen slowness, this one “buged” me a lot - Version 1.10
Feature: Thanks to @Kumirei guidance, the script now uses Google Translator voice! a much cleaner and consistent way than Speech Synthesis Utterance
Also, the script now highlights any ungurued kanji with gray color - Version 1.11
Fix: If Wanikani Open Framework is not installed, highlight all kanji is if they were all already learned. this is neccessary because in this case the highlighting means: “hey look this is a kanji” instead of “hey look this is a kanji you should know” - Version 1.2
Feature: Now you can change the color of highlights from the new settings dialog, the settings can only be used if Wanikani Open Framework is installed - Version 1.3
Feature: Now a tooltip will show up when you hover over a kanji showing you more information!
Fix: thanks to @Belerith, a bug where the setting icon is duplicated with every lesson learned is now fixed
Fix: thanks to @Oshin, a bug where playing the audio for the word reading would play all sentences’ audio is now fixed - Version 1.31
Fix: Safari won’t play the audio for a second time on Reviews and Lessons - Version 1.32
Fix: Prevent underlines under the kanji, that used to confuse the users since it can change the whole kanji
Fix: Make the script compatible with WaniKani Breeze Dark, thanks to @Poikkax for pointing out this issue
Fix: Now if you click the audio button a second time while playing, it will stop the audio as expected
Improvement: to prevent unexpected behaviors, now this script doesn’t include Wanikani Open Framework JLPT, Joyo, and Frequency filters, you will have to download it yourself if you want these information and you have to make sure it runs before Advanced Context Sentence. - Version 1.34
As requested by @AnimeCanuck, you can now change which SRS level should the script consider it ‘recognizable’. default to Guru
Also, it’s now compatible with the new version of JLPT, Joyo, and Frequency Filters version 0.1.4
*Version 1.40
Enhance the tooltip, you can now disable it, change it’s position, and set a delay before showing it





I’ve tested it on Safari (the audio doesn’t work, I guess it’s the move on type just like IE then I presume?) and Chrome (both highlight and audio works well) ~ Mojave.
So this is perfect.


But thanks a lot for checking!