[Userscript] Wanikani Item Inspector

The filter is good enough. Besides I am going to implement table colors for Breeze Dark. This is not a lot of work and I feel bad about letting these users without colors.

1 Like

I changed my mind. Implementing colors in Breeze Dark requires big changes to the way Item Inspector CSS is designed. The reason is Item Inspector uses classes and styles built into the default Wanikani. Breeze Dark is designed to override that. One side-effect is Breeze Dark breaks Item Inspector popups. The only way out that I can see is to stop reusing Wanikani styling so I can regain control of my CSS rules. I am not going to do that anytime soon.

1 Like

I love using the list as it is, to study my leeches (much like you suggested), so that extra popup is a great addition! :grin: I just used ridiculous zoom of the entire webpage before. :sweat_smile: Now this makes it much easier to go through those leeches. Many thanks for the update! ^>^

1 Like

That’s the worst thing about Breeze Dark. The CSS rules are so general that it ruins a lot of userscripts

1 Like

It doesn’t help that my CSSjustsu is not top notch. I am learning as I am using it. Supporting Breeze Dark will take time. I am doing the export function first. I will return to Breeze Dark after.

1 Like

Version 1.5.0 is out. Download it at the link at the beginning of the top post.

This is the data export to spreadsheet feature requested by @ekg. I originally planned to do a quick stopgap job but I ended doing the full thing because it was easier to do than I thought. @ekg note also that the word cloud export button now has a cuter icon.

The documentation of the export feature is in the top post in the section Exporting Features. Please refer to it.

I also developed a procedure for tracking the evolution of leeches over time. No spreadsheet programming is required. It is sufficient to use the spreadsheet features in the menu. The procedure is also in the top post under Exporting Features.

@ekg please let me know how both the export and the procedure fit your needs.

I tested the export and leech tracking with Libre Office. This is the spreadsheet I have. @ekg please let me know how this works with Excel. I everything is fine I will put a note in the top post.

Coming up next: making Item Inspector work with Breeze Dark.

2 Likes

Version 1.5.1 is out. Download it at the link at the beginning of the top post.

Fixing bugs I discovered in 1.5.0 just after publishing it. How embarrassing.

2 Likes

You work fast! :eyes: I haven’t set up how to do the comparison spread sheet thingy yet, but I’ll give the buttons a test run later today! ^>^ Many thanks for the update! :heart:

1 Like

Only because I found a ridiculously easy way to do it.

I expect it will take a few weeks to see how it works out in practice. You need to build an history to see how well it is tracked. However I feel confident about it.

1 Like

Version 1.6.0 is out. Download it at the link at the beginning of the top post.

Item Inspector now looks good in Breeze Dark. There is no change to other users.

1 Like

In my ConfusionGuesser script I use

element.innerHTML += await wkof.load_file(character_images.filter(c => c.content_type === "image/svg+xml" && !c.metadata.inline_styles)[0].url);

to add the radical image as an svg element and then style it with the following CSS:

width: 1em;
fill: none;
stroke: currentColor;
stroke-width: 68;
stroke-linecap: square;
stroke-miterlimit: 2;

I use stroke: currentColor so that it uses the text color.

3 Likes

Neat! Thanks!

3 Likes

I want to export my leech table into a csv file, but the export button exports nothing into the clipbooard (the other button to export items only does work). Is there a mandatory setting that I have missed? My settings for the table export are:
Screenshot from 2020-09-18 08-50-22

No extra setting is needed. I can reproduce the bug. I will post a fix once it is figured out.

Version 1.6.1 is out. Download it at the link at the beginning of the top post.

This is a fix to the bug reported by @2000kanji

@2000kanji please let me know how it works on your end.

1 Like

Thank you for the fast reaction and update. Yes, it works now! :green_heart:
It’s version 1.6.1.

2 Likes

If you want to export as CSV instead of copying to the clipboard I looked into how you do it the other day. It’s pretty simple, so I thought I would share in case you’re interested. Just need to parse the data into csv format first, but I am guessing you’re already doing that for the clipboard

function export_csv(name, csv) {
    let encoded = encodeURI("\uFEFF"+csv);
    let link = document.createElement("a");
    link.setAttribute("href", 'data:text/csv; charset=utf-8,'+encoded);
    link.setAttribute("download", name+".csv");
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);
}
2 Likes

Thanks. This is interesting. People will want this. I will try it out.

1 Like

This script is great! I’m amazed I hadn’t discovered it earlier.

Thank you, @prouleau, for your reply in another thread that led me here.

3 Likes

Finally, something that can help me export my learned kanji and vocab! I’ve been looking for something like this so I can use it alongside learning grammar.

Thank you so much for making this.

1 Like