WARNING: This is a third-party script/app and is not created by the WaniKani team. By using this, you understand that it can stop working at any time or be discontinued indefinitely.
INSTALL RIGHT FROM HERE (GreasyFork)
What does this script do?
It displays a Japanese context sentence immediately when a vocabulary review appears placed directly inside the purple character header, just below the vocab itself. The target word is highlighted in yellow within the sentence so your eye finds it instantly. Click the sentence to toggle the English translation, and use the β» button to cycle through alternative example sentences.
I built this because the existing context sentence scripts I tried either showed the sentence only after answering, or placed it in a separate block below the question. I wanted the sentence to feel like part of the question itself visible at a glance, with the vocab visually anchored inside it.
Screenshot
(Vocab ε
is highlighted in yellow inside the sentence γ«γΌγγ³γγε
γε
₯γγ)
Features
-
Sentence appears the moment the card loads, not after answering
-
Click the Japanese sentence β toggles the English translation (hidden by default to avoid spoiling the meaning)
-
Target vocab is highlighted in bright yellow inside the sentence
-
Handles conjugation: vocab
ι£γΉγcorrectly highlightsι£γΉinι£γΉγ/ι£γΉγ¦/etc. -
β»button cycles through all available example sentences (most vocab has 3) -
Auto-hides on radical/kanji reviews (no context sentences exist for those)
-
Works across Turbo navigation no need to reload after coming from the dashboard
Prerequisites
-
A userscript manager: Tampermonkey or Violentmonkey
-
Wanikani Open Framework (used to fetch sentence data cleanly via the API)
Installation
-
Make sure Tampermonkey/Violentmonkey is installed in your browser
-
Install Wanikani Open Framework if you donβt already have it
-
Install this script: [Greasyfork link] (source code on [GitHub link])
Where it runs
-
/subjects/reviewβ regular reviews -
/subjects/extra_studyβ extra study sessions -
/subject-lessons/*/quizβ lesson quizzes
It does not run on the Self-Study Quiz (different page, different DOM).
Customization
The highlight color is easy to change. Edit the script in your userscript manager and find this block near the bottom:
css
#wk-ctx-imm .wk-ctx-imm__hl {
color: #fff35a;
font-weight: 700;
}
Replace #fff35a with any color you like, or swap to a highlighter-style background:
css
background-color: rgba(255, 235, 59, 0.35);
padding: 0 2px;
border-radius: 3px;
How does this compare to existing context sentence scripts?
There are several great context sentence scripts already, and you might prefer one of them depending on your workflow:
-
Simple Show Context Sentence β shows a sentence in a block above the question header, but only after answering
-
Show Context Sentence Once Reviewed β reveals the sentence only after both reading and meaning are answered
-
Advanced Context Sentence 2 β feature-rich, with kanji highlighting based on your level and audio playback
This scriptβs niche: immediate display, inline with the vocab, with the target word visually highlighted. If you find seeing the sentence upfront too spoilery for your reading practice, one of the others is probably a better fit.
Notes
-
Highlighting uses exact match first, then strips trailing kana for verb/i-adjective stems, then gracefully falls back to no highlight rather than risk highlighting wrong characters
-
Built with help from Claude β Iβm not a heavy JS dev, so bug reports and PRs are very welcome
-
Source code: [GitHub]
Hope itβs useful to someone else! ![]()
