[Userscript] Stroke Order Diagram

Yes I gave all access (by reinstalling it just in case)

1 Like

If you go to the scriptā€™s settings in Tampermonkey, do you perhaps have it blocked under XHR security?

4 Likes

Thank you! I actually only had jisho.org on the whitelist! Then at the same time I was reading "Limited runtime host permissions might break some Tampermonkey features like script update, GM_xmlhttpRequest and others!" Ā· Issue #640 Ā· Tampermonkey/tampermonkey Ā· GitHub because I had the '"Limited runtime host permissions might break some Tampermonkey features like script update, GM_xmlhttpRequest and others!" problem.

Cloudfront.net was added by right clicking on Tampermonkey, hover over ā€œthis can read and change site dataā€ , select ā€œon all sitesā€. I donā€™t remember which option was selected beforehand.

And I think when I reinstalled stroke order script earlier, only jisho.org access was asked (anyway I allowed everything earlier so thatā€™s strange)

1 Like

I think for most people it adds cloudfront automatically. Iā€™ll see if I can add it explicitly in the script, though. Iā€™ll add Jisho explicitly as well, so people donā€™t have to approve it

I assume this means it works fine, now?

3 Likes

Yes it works now! Thanks again :v:

3 Likes

Updated the script with explicit permissions for those domains 230185602321088514 Thanks for helping improve the script for everyone else

5 Likes

this script has stopped working all of a sudden, am I the only one that has this problem?

1 Like

same, i though it was just me.

1 Like

Just checked - me too. Iā€™m on a PC using Chrome.

Me too. This was working perfect for me, and I loved it! Now it just doesnā€™t show up at all and I have tried uninstalling and reinstalling, clearing cache, allowing pop-ups, etc. and nothing. : ( Would love to have it working again!

@Rover @Asaar @Rowena @Esther1972 Iā€™ll have a look at it when I get the time. I am working this weekend, though, so that might not be until Monday

4 Likes

:+1:
Thanks very much for maintaining this script, Kumirei-san.

2 Likes

I just tested this script and found two problems:

  1. It tries to access http://jisho.org, but only the https version seems to work for me.
  2. The WaniKani team seems to have changed the structure of the item pages, and the script does not find the place to insert the diagram.

This can be fixed by changing line 39 in the script from

var JISHO = 'http://jisho.org'

to

var JISHO = 'https://jisho.org'

and line 137 from

$(sectionHTML).insertAfter('#information')

to

$(sectionHTML).insertAfter('.span12 header')

@Kumirei Sorry for meddling in your script.

7 Likes
3 Likes

Thank you for looking into it! Itā€™s not my script, Iā€™m just maintaining it, so Iā€™m happy to not have to mess with it

3 Likes

thank you so much @Sinyaven

3 Likes

Oh, that works great! :smiley: :smiley: :smiley:

Thank you so much!!!

1 Like

The Greasyfork script has been updated with these changes 230185602321088514

5 Likes

sorry, itā€™s still not loading for me and iā€™m not sure why? iā€™m kinda new to userscripts :sweat_smile:

1 Like

The most probable cause of your problem is you donā€™t have the most recent version installed. You still have the old version that doesnā€™t work. You can try reinstalling the script afresh. Otherwise you may try the be patient. Tampermonkey will automatically update itself within a week.

3 Likes