[Userscript] Stroke Order Diagram

Does the stroke order section just not appear during the lesson quiz and everywhere else it’s fine? In that case @Kumirei only has to switch to the latest version (1.5) [1] of Item Info Injector (this script still uses version 1.2). If the section is also missing during kanji reviews or on kanji item pages then it’s a problem I cannot replicate on Edge+Tampermonkey or Firefox+Violentmonkey. Maybe you could follow this guide I just posted to narrow down the problem?


  1. // @require     https://greasyfork.org/scripts/430565-wanikani-item-info-injector/code/WaniKani%20Item%20Info%20Injector.user.js?version=1057854
    
    ↩︎
1 Like

I have updated Info Injector. Thanks!

1 Like

It’s everywhere and I’m using Firefox+Violentmonkey. I might have been looking at the wrong console when I didn’t notice any errors before. The update and other suggestions haven’t been able to fix it for me.

2 Likes

When I just now started Firefox to test it again, Firefox updated and now the script also stopped working for me. It seems that the GM_xmlhttpRequest() function provided by Violentmonkey does not work anymore. When I’m using Tampermonkey instead of Violentmonkey it still works. I don’t know if it is possible to work around this problem in the userscript – you might have to either switch to Tampermonkey or wait until this is fixed in Violentmonkey.

2 Likes

Looks like they already fixed it and it’s just waiting to be released. In the meantime I think it’s fine to just use the url as a string

2 Likes

Please upgrade to 1.1.14 and see if that works for you

2 Likes

It works! Thanks!

1 Like

The stroke order stopped working for me a couple days ago. I’m using Tampermonkey and have installed version 1.1.14. Also tried to reinstall in case it could be an easy fix.

There’s a bunch of errors on the console when I go to developer tools but I have no clue about scripts and how to decipher this information and whether it’s even related to my problem or not. :confounded:

2 Likes

Thanks for reporting! I am seeing the same thing, will have a look at it

2 Likes

Works again now! Thank you for fixing it!! :raised_hands:

4 Likes

Oh, I’m sorry I forgot to mention that I fixed it!

4 Likes

Hi @Kumirei,
the script stopped working on Safari. Is does not show up anymore.
Tested witch Kanji pages, Tampermonkey and script version 1.1.15.
Also tested out some of the earlier versions. They also stopped working for me.
Greetings!

2 Likes

I made a small alteration to the strokeOrderDiagram function that makes kanji with many strokes display as several rows instead of a scrollable single row:

framesPerRow can be set to adjust the number of strokes in 1 row (about 10 should work well).

Thank you so much for the script, its a great help!

3 Likes

Thank you, I’ll have a look at it

2 Likes

Good idea! This should be doable with just CSS, so I’ll look into doing that

2 Likes

The jisho function seems to be one large image. Maybe making separate SVGs and placing them in floating divs could work :slight_smile:

1 Like

Ah, yes, you are right. I was thinking each frame was already separate element. Out of pure laziness I am just going to accept your change slight_smile

1 Like

Had to buy Tampermonkey for Safari and use my work laptop (shhh), but I got it working again slight_smile

3 Likes

Omg thank you so much!! :heart_eyes:

Hey @Kumirei, it seems the script is no longer working after the new update (Updates to Lessons, Reviews, and Extra Study). Are you planning on updating the script?

1 Like