[Userscript] Niai 似合い Visually Similar Kanji

@IgorTheGreat It won’t change your URL. During lessons, it should display visually similar kanji on the examples tab, under the examples of vocabulary that use the kanji. I don’t think any of the pages it touches/adds to were affected by the new layout.

1 Like

I see it now! Thanks so much for the reply

1 Like

I’m getting a
" Something unexpected happened while trying to load similar kanji. ごめんなさい。

API url: http://wk-similarkanji.rhcloud.com/kanji

If this bothers you, please drop a line here!"

on an individual kanji’s page.

I think you are using the old plugin?

This one does not get the data from a third-party site, everything is already included.

I didn’t click that link.
I installed from the installation instructions link on this post.

Edit: Turns out once again I’m dumb. No surprise. Lol.

Hi @acm2010,

could you go the same path as the WK developers, and change the font weight from bold to normal, please?

https://raw.githubusercontent.com/mwil/wanikani-userscripts/master/wanikani-similar-kanji/css/wk_niai.css

1 Like

Hi @acm2010, I’ve recently (last 2 days) found that everytime that I start my lessons quiz I’m redirected to the start of the lesson again, and after activating and deactivating some scripts I finally found yours to be the problem. Could you please take a look?
Thanks in advance

3 Likes

I also noticed that Keisei 形声 Semantic-Phonetic Composition causes the same problem :pray:

1 Like

is it possible to create a function to export/import the override_db? i have been looking for a way to backup my changes, but this is not very much friendly imo.

btw, thanks for making this, this is really helpful

Thanks for sharing this

1 Like

This is very likely not in development anymore but in case anyone cares to revive it in the future, here goes: a thing that bothers me a lot is that the “add similar kanji” text entry element automatically truncates the entry to the first kanji character. Often I can only remember vocabulary where a desired kanji is not the first kanji in the compound so I would like to enter the word using my IME and then isolate the desired kanji but I can’t to that because the entry instantly gets truncated by the software. It’s a small thing and I use the workaround of isolating the kanji using the URL bar but it is annoying me a lot for some reason so I finally decided to get it out there.

Thanks for the plugin by the way, in other respects it is great!

I noticed that too. Here is how you fix it:

If you are using tampermonkey (probably works with other browser add-on’s but I haven’t used any other ones) go to options, click on the niai similar kanji script, click settings, and enter “://www.wanikani.com/lesson/session” to the exception field in the lower left corner.

This way you can still use the script as before but it will automatically be disabled during lessons, where the problems take place (you don’t really need the script during lessons as much anyways).

edit: make a * symbol at both the start and end of the line I entered.

it’s a long shot, but did you ever find a solution to this?

I was having a problem where this script would collide with Katakana Madness and Open Framework, if those 2 are activated during lessons all of my answers would be marked as incorrect even when they’re correct.

To fix this and estevezj’s issue just disable Niai during lessons by editing the script and removing line number 11:

// @include *://www.wanikani.com/lesson/session*

then just click File and Save and that’s it, like mentioned before you don’t really need Niai during lessons that much, so for now this is enough until the script is fixed.

1 Like

I have recently installed this script and while the description indicates that you can see the similar kanji menu in both lessons and reviews I cannot see it in the Reviews, nor I could find a setting to change this behavior… Am I missing something? Or did something changed in the script?

1 Like

The script stopped working for me lately. I posted some more details in a separate thread.

same problem here, already had the Niai installed before, but suddenly it stopped working

I looked a bit into the problem of Niai and Keisei not working during reviews and lesson quizzes and updated a few outdated numbers in the code. It should work again if you update from here:

Niai update
Keisei update

@acm2010 I made a pull request with my changes – this is my first ever attempt at creating a pull request, sorry if I did something wrong.

Tagging the people that reported this problem

@wqreqewfd @ogirdor271 @Zwackelmann @Failnaught1

11 Likes

You’ve just re-improved my life immeasurably. :slight_smile: This is one of the most useful scripts I’ve installed.

1 Like

I recently reset my level. This script keeps highlighting items depending on my previous level. I cant for the life of me find a way to reset this. Any ideas?