[Userscript] Wanikani Item Inspector

The Apprentice Items filter works for me. You say none of the Temporary Filters work. This is more that just an Apprentice Filter problem isn’t it? I suppose that “nothing happens” means the temporary filter leaves the output identical to when no filter is applied.

Do the normal (non temporary) filters work?

What happens when you refresh your browser and try again the Apprentice Items filter?

Can you check the console and copy paste what you find there? Instructions on how to open the console are here .

Tried to install scripts on clean Chrome+Tampermonkey - same behavior.

Kanji Picker and all the searches open its windows. Items That Has Not Passed Guru display the items after a 20s+ delay. Apprentice items filted does not update items no matter how long I wait.

Yes.

Yes.

Same behavior - the output stays as it is before application of the Apprentice additional filter.

1 Like

Nothing special shows in the console.

This is unrelated to your problem but I noticed the kanji stroke order font is not installed. There is no way to make this feature work on a Mac. You can disable the warning message by going through all tables and turning off the stroke order popup checkbox in the content tab. If you omit one table the message will stick so be thorough.

Back to your problem, can you check if there is something fishy in the filter settings for the Apprentices Items temporary filter? There should be only the SRS Level filter checkbox to be checked and the selected items should be the four apprentices stages.

You must go check there

Apprentices1

You should see this when you scroll down to the filters.

Apprentices

Usually I just edit out warning part in code. But right now I have unedited version of the script so we can look into the problem.

Looks good. I didn’t do any changes to filters or other settings.

1 Like

The screenshot doesn’t show the Guru, Master, Enlightened and Burned stages. I suppose these are unselected since you didn’t tamper with the settings, right?

I can’t reproduce the problem. I am running out of ideas of things to check. I will prepare a special version of Item Inspector with debugging traces to see what happens in the code. This will take me a while because of real life stuff.

1 Like

Please try the version here

This will not cure the bug but it will print a debug trace to the console. There is a DEBUG_INFO constant defined at the beginning of the code. It is set to false by default. Please set it to true and save the file. Then reproduce the bug. Go to the console and define a filter to DEBUG. Then copy paste what you find here.

1 Like

Thanks for the quick update!

I can see debug logs during initial load, but nothing is being logged as I switch between no temporary filter and apprentice items filter. Attaching initial log, as there is nothing to show for the bug itself.

1 Like

Interesting. It is the dropdown event driver that doesn’t respond to your selection. And if you try a dropdown selection that respond what is the console log?

For the main filter that works fine I get this (selected different filter twice):

Additional filters that work, work only occasionally. Here is the log for the one of four (?) attempts when Lyches Values >= 2 worked:

I just want to make sure I understand your tests.

I presume you are referring to the table selection dropdown on the left hand side. You have tested two tables and posted the console results.

Here you are referring to temporary filters from the middle dropdown list. The problem is intermittent and you post the console result from an attempt that worked.

What this tells me is the dropdown event handlers is properly fired when the filter works successfully. I already know from your previous post that the event handler doesn’t fire when the filter doesn’t work. There is nothing wrong with Item Inspector. It is the browser that fails to deliver the event to its handler.

I feel helpless. I have no idea of what I can do with item inspector to fix this because I am totally reliant on the browser to deliver events to the handler. I need some time to ponder the issue and see if I can find a workable workaround, For now the perspective is grim.

I feel bad. I have totally forgotten this bug workaround. I think it may apply to you.

Open the settings, go to the settings panel.

Settings

At the bottom of the panel click this checkbox.

MacWorkaround

Then test the Apprentices filter. This may fix your problem.

1 Like

how many hours did this take ?? what? like for everything I mean.

I’m aware of this checkbox, it was on all the time.
But checking it all once more I’ve found an interesting behavior.
If I select “Apprentice → No filter → Apprentice”, apprentice items are not being shown.
But if I press Apprentice filter multiple times without pressing other filters, I get the items after some loading.

Or more like “Choose the filter I want with first click, then click on the dropdown once more” - then it loads!

1 Like

maybe its taking too load for the items to load and by you clicking many times and waiting longer, it loads?

maybe its a wifi issue on your part…
if not idk wait for the other guy to message/dm you back :3

No, it does not matter how long I wait with a single click on a filter - nothing is being loaded.
But after second click it takes just a few seconds to load the items, no matter how many items there are.

1 Like

maybe the websites down…! due to maintenance and idk… me talking on forums again wwww

… ill ask around for ya
gimmie a bit

What happens if you turn it off? Having it on when it is not needed may cause the kind of problems you have.

With bug workaround turned off it does not work, no matter how many times I click the additional filter.
So the working solution for now is Bug Workaround + Double selection of the same additional filter with a click.

1 Like

I will try to find a better solution. Let me think about it until tomorrow to see what I can come up with.

1 Like

This is inappropriate - user script developers are volunteers. You don’t need to reply to every topic.

3 Likes