[Userscript] NHK Easy Practice With WaniKani (or any website that uses ruby)

This is the website I was thinking about. It hasn’t been updated in ages, but there is a ton of content organized by JLPT level.

Also, I just visited a random article on NHK easy an it seems to work for me.

This article here 地震で学校が壊れた高校生 教室を借りた中学校で勉強を教える|NEWS WEB EASY.

Here is a screenshot:

Just to confirm, you are saying all the kanji show furigana?

Also, what browser are you using and what script injection plugin are you using? I looked through our old posts and it looks like we had run into a similar issue a long time ago.

Just because I saw you had been using Firefox in the past with Tampermonkey, I installed Firefox and Tapermonkey, so a fresh install, and it seems to work there for me too.

Looks like last time you got it working by removing the NHK Easy script and reinstalling it. Not sure if that same solution could work this time.

just did a fresh install for firefox, installed tampermonkey again and nhk script

it asked in a popup the api, I copy paste it but still not fixed.

Also checked editing the script and I dont see the api there anywhere, where is it supposed to be? Maybe it is not being saved there?

So the popup doesn’t save it to the script directly. It is now using Greasemonkey’s built in variable storage instead of hardcoded variables as I had before. This was done by a nice community member who had a better understanding of JavaScript than I.

If the key is missing or invalid, a popup should occur that says “ The WaniKani API Token appears to be invalid. The user script “NHK Easy Practice With WaniKani" will not be loaded.”

Are you able to look at the dubug console for firefox? If you open Firefox’s debug tools, there is a console that should print errors if WaniKani is responding with issues. There also are some log statements that are printed if there are issues with communication.

After you figure that out, can you share what you see? Maybe a screenshot.

Also, if you have an ad blocker that may be blocking the injection scripts, you may want to try disabling that as a test. Sometimes those applications conflict. Although, the fact that you got the pop-up makes me think it is running properly.

Just wanted to follow up. Is it working now?

I just installed it and it works great! Thanks

Thanks for the feedback. I appreciate it

Seems to be working, Thanks alot!!!

Thank you for your feedback. I am glad it is working for you as well.

I just wanted to thank you for making and sharing this script. it’s really helpful

I am so happy you are enjoying this script. Thank you for your kind words.

with tampermonkey already installed, this was a breeze. thank you. was getting tired of trying to just avert my eyes from the furigana! it’s right there!

Thanks for your feedback. I appreciate it.

Is it just me or does this script no longer work?

the nhk easy website changed its base url. i edited the script to use the new url and now it works fine. sorry, i don’t remember exactly how i did it.

I have been offline away from WK for a while as I just moved out of Japan to the US. I’ll try to fix it at some point. Or if anyone wants to put in a fix at github, I’ll welcome the pull request and merge in the change.

At the top, replace

// @include https://www3.nhk.or.jp/news/easy*

with

// @include https://news.web.nhk/news/easy*

Just doing that seems to work for me.

Does anyone know where to enter the API token if it is not working? I uninstalled and reinstalled and changed the userscript to include the new website link but it is still not working… Thanks!

Nvm it just took a few minutes to figure its life out