aye aye, will fix the stuff
âWaniKani Forum Enhancerâ is for the old forums.
I donât care enough to remove it myself and maybe you have a reason for leaving it in the list but it could be confusing for some people, especially new memebers.
I removed it.
I love the Wanikani Review Wrong Info Click script, but would love it even more if it unfolded Item info every time, not only when Iâm wrong. This is because I often want to review the mnemonic or check to make sure that I know the different accepted spellings and meanings.
Would one of you nice fellows around here help me with that?
Iâm sure it has to be super quick and simple, but Iâm useless at js. I have tried quite a few things, but Iâm grasping in the dark. In case anyone cares, my latest (unsuccessful) try, based on the original code by Takuya Kobayashi:
(function () {
'use strict';
if (action === 'updated') {
setTimeout(function () {
$('#option-item-info').click();
}, 100);
}
});
console.log('WaniKani Always Info Click: script load end');
}());
I thought I heard that there was a script that make readings and meanings come up back to back in reviews but I canât seem to find it. Thanks.
I think you are looking for the Wanikani Reorder Ultimate script.
It has a 1x1 mode that makes review items come up in pairs (reading/meaning).
Thanks for the help.
You were on the right track with your code, but deleted a bit too much.
Try this:
(function () {
'use strict';
$.jStorage.listenKeyChange('completedCount', function (key, action) {
if (action === 'updated') {
setTimeout(function () {
$('#option-item-info').click();
}, 100);
}
});
$.jStorage.listenKeyChange('wrongCount', function (key, action) {
if (action === 'updated') {
setTimeout(function () {
$('#option-item-info').click();
}, 100);
}
});
console.log('WaniKani Review Wrong Info Click: script load end');
}());
In the original script you can see the
$.jStorage.listenKeyChange('wrongCount', function (key, action) {
but that only listens to wrong answers (because of the âwrongCountâ property). To listen to correct answers you need to include the same code but with the âcompletedCountâ property, as I did above. Hope that works for you.
Are the userscripts in the OP in any particular order? Where should new scripts be added? (top, bottom, grouped somehow?)
nope, i just added to the bottom, but if thereâs a related script then i would add it near it
edit: lol sorry i replied by email and it did not go great apparently.
Add new Scripts
Remove Scripts for the old forum
Remove Scripts that are broken and probably will not work anymore
Not sure whether these still works, perhaps wonât work
You made my day! Thank you so much. I also appreciate the explanation and what I did wrong. Iâll test it in a couple of hours, with my next batch of reviews.
btw, did you get the property name from the API documentation or from somewhere else? wanikani.com/api throws an error and wonât load for me.
this is something entirely different from the API.
So basically, WK reviews work by keeping track of certain information locally in your browser before sending it off to the server. This information is kept with jStorage. Itâs things like how many reviews you have, how much you got right/wrong so far, the current item youâre reviewing etc. The âpropertiesâ that we have talked about earlier are these bits of information. You can get a full list of them by going to your reviews, opening the developer console, going to the âconsoleâ and typing
$.jStorage.index();
Among them youâll see âwrongCountâ and âcompletedCountâ. Once you know this, a realm of possibilities opens up, 'cuz now you can do all sorts of cool things to customize your review session. At least, thatâs how I felt when I discovered this ;p
To actually look at whatâs inside these properties youâd do
$.jStorage.get('propertyName');
Fantastic! This is beautiful, indeed. Thanks for the clear explanation.
I tried the script you pasted and it works, but only half the time. That is, it works once I complete a word (meaning and reading), but not the first time around (meaning or reading). Logic tells me this is because completedCount only updates once an item has been fully completed, not for every answer you get right. Thankfully, now that youâve explained about jStorage.index() I can look and see if I figure out another way to do it. Iâll be back, but Iâll probably open another thread, because I feel like Iâve hijacked this one.
hmm, yea, thatâs probably it. I didnât test it too thoroughly. Try to find an answer and if you canât, tag me in your new thread.
You could probably hook the Answer Checker instead:
var oldEvaluate = answerChecker.evaluate;
answerChecker.evaluate = function(e,t) {
setTimeout(function () {
$('#option-item-info').click();
}, 100);
return oldEvaluate(e,t);
};
[Edit: Nevermind⊠I just saw your other thread where you used questionCount instead]
Should wanakana.js
and wanakata.js
be added?
I feel silly asking this butâŠ
Isnât there a userscript for, when you answer correctly during reviews, the item info is automatically opened? I read through the list but I must have missed it if itâs there. I hope I didnât make this up⊠xD