[Userscript] Open Framework JLPT, Joyo, and Frequency filters

A bit more explicit might be:

test

I have updated the script file with the new filter. There is a pull request on github.

Highlights:

  • I use the labels from my last proposal.
  • The data is loaded in lzma compressed format and cached in wkof to reduce latency.
  • The data and decompression utility are stored in my github repository.

If there is anything you see and don’t like feel free to change it.

1 Like

Looks good. Although next time could you use the path Misc\JLPT, Joyo, and Frequency filters\userscript.js? Would make it easier to keep track of things

1 Like

I am not good at github that is why I do it wrong, but i will try to do that.

1 Like

Neither am I, haha. It’s fine if you want to do what you have been doing. Got to learn how to solve a conflict manually

1 Like

I have modified this script to handle properly kana only vocabulary. Most of the script remains as is. The is only one function that must be changed. Here it is:

    function accept_jlpt_kanji_waller(filter_value, item) {
        var characters = item.data.characters;
        if (item.object === 'kanji') return accept_jlpt_kanji(filter_value, characters);
        if (item.object === 'vocabulary' || item.object === 'kana_vocabulary') {
            return (vocabJLPTData[item.data.characters] !== undefined ? filter_value[vocabJLPTData[item.data.characters]] === true : filter_value[0]);
        };
         return false;
    }

1 Like

@Kumirei have you seen the post above this one?

1 Like

Yes, thank you, I’ve just been very busy

1 Like

I have updated the script with this fix

1 Like

Thank you. :+1: