[Userscript] Wanikani Item Inspector

Note that I haven’t updated the URL in the topic link, so it’s likely using an old version, if that matters. Looking at your usage, it definitely does matter in this case.
I guess I should do that now…

Can you re-install the non-debugging one but replace the url for the Turbo Events library with https://update.greasyfork.org/scripts/501980/1419628/Wanikani%20Open%20Framework%20Turbo%20Events.js and see if that works?

It doesn’t work. I don<t see any difference in behavior.

Ok. This might end up being a chrome/chromium vs firefox issue, which is much harder for me to troubleshoot as I don’t have chromium browsers set up properly. Thanks for your help, I will continue investigating.

OK. if you need me I am here…

The issue is a very simple and silly one. Just pushed the update to 0.4.1 and now I should be able to make a real thread for it.

@Inserio you forgot to add .user to the url in the load_script example (and also @require; I asume it would have the same issue because you aren’t using the ?version= type of URL which as far as I can tell doesn’t need the .user part). It was just .js instead of .user.js.

Witchcraft :rofl:
Alright, I’ll update again.

I confirm it works on my end.

Edit: I notice that you use wkof.load_script as if it were a synchronous function. It is not. This function returns a promise. You need a then clause or use asynch ... await. We are lucky that it works as is.

Oh thank you, I caught that in my own local copy and forgot to correct it in the upload. I believe the reason it works is less luck and more to do with it being resolved before the ready promise for the TurboEvents library by being called first. A function that returns a promise used in this manner seems to behave like it was called with a .then(() => {}); attached to it.

That is by definition lucky. We never know when a source of latency will kick in and break this happy circumstance.

Sad news. Version 0.4.4 doesn’t display the total lesson count when the dashboard is refreshed.

It works fine when I return from the review or the lesson pages. It also works fine when I go to an item page and then navigate back to the dashboard.

I’m quite confused now as I am just not getting this behavior.

Well, I did say I was observing the same issue when other scripts would have an issue on the dashboard. Once I fixed all my scripts so none of them were having issues then it worked fine for dashboard refreshes too.

Anyway, I did make a thread for the script now, so we can use that for troubleshooting.

Version 1.29.3 is available – Please download it at the link in the top post.

This adjust some css parameters to better integrate with the new dashboard.

Hi,

Just installed this awesome script, and I am getting a strange error that haven’t been able to see reported here.

Any idea why this is happening? I’m a total newbie and I barely know what I am doing, so it may be something really obvious…

Thanks!

I am confused. What do you consider to be errors in these screenshots? It is not that I see no errors but I want to make sure we are on the same wavelength,

Also keep in mind that Self-Study Quiz is a third party script Item Inspector relies on for added functionality. I have no control on this script. You should consider reporting Setf-Study Quiz errors in the Self-Study quiz thread.

I think I figured it out. The weird boxy symbol on the first screenshot and also right after 夕べ in the second screenshot is what appears when you are asked to identify a sound. And my computer was muted… :man_facepalming:

Thanks for your prompt reply, though!

Hi, great script! Quick question: How can I search/filter to display JUST KANJI. I’ve spent so much time trying to figure this out. I tried advanced search with “Kanji” clicked, but it wants a search term. I tried adding something general like “a” as the search term, but that only matches about half the kanji. Am I missing something obvious?
Many thanks!

I am not sure of what you want so please clarify if I misunderstand your request.

If you want a filter that limits your search to kanji you should try the Item Type filter and select kanji in the list. If used in combination with some other filter the effect is cumulative. You have all kanji that are responsive to the other filter.

It works, thank you!

I’m trying to display all the Apprentice items by selecting “All Wanikani Items” in the first dropdown and “Apprentice Items” in the second dropdown.
But nothing seems to happen after I pick “Apprentice Items”. None of the Temporary Filters work.

Could you please suggest something to fix it?

MacOs, Safari, Inspector 1.29.2, Additional Filters 1.3.1.