[No Longer Working] WaniKani Lesson User Synonyms

@raegefilth To be honest I noticed that too and wasn’t sure if that was the behaviour of the original script or not because I think the original had never worked for me. For now I have 300 reviews waiting for me and am also a bit busy but I’ll look into it and will get back to you.

1 Like

@irrelephant If you’re referring to the issue about the notes, then I don’t know if the issue (where notes would seem to disappear) is still happening, but I assume it does. I can’t say for sure because I modified the script to delete the offending code. I wonder if this script was originally written at a time when you couldn’t add notes during lessons. You can definitely do that now, so having anything with notes in the script doesn’t make sense to me.

Here’s the code I deleted to stop the script from (visually) deleting my notes:

// delete keys for notes
if (currentQuizItem.rad) {
	$.jStorage.deleteKey('l/note/rad/m/' + currentQuizItem.id);
} else if (currentQuizItem.kan) {
	$.jStorage.deleteKey('l/note/kan/m/' + currentQuizItem.id);
	$.jStorage.deleteKey('l/note/kan/r/' + currentQuizItem.id);
} else if (currentQuizItem.voc) {
	$.jStorage.deleteKey('l/note/voc/m/' + currentQuizItem.id);
	$.jStorage.deleteKey('l/note/voc/r/' + currentQuizItem.id);
}

I also made it so that the script only runs on the lessons page and not on the other pages. I never saw the point adding synonyms before lessons.

@seanblue I see, thanks, makes sense. I removed that code from my version of the script as well.

@raegefilth I think I fixed the enter issue. It’s a bit of a hack but it seems to work. Updated version is 0.2.2.

2 Likes

There’s probably more code related to notes that you could remove if you want. I just did the bare minimum to get it working.

@irrelephant Ah, thank you! I haven’t tried it yet but I’ll see how it works during tomorrow’s lessons. :slight_smile:

@irrelephant thank you a lot for the update, it seems to be working just fine now.

1 Like

@irrelephant Once again, thank you very much for the update! It appears to be working just as before now.

1 Like

@Bourdel since you asked about it in another thread: the link to my fixed version is here: https://greasyfork.org/en/scripts/34839-wanikani-lesson-user-synonyms-2

I was wondering if I should update the title of this thread to include an info about there being a version 2 now but I felt like it might be rude since this is not my thread. I personally do however always have troubles finding the information that I’m looking for when I have to wade through an old and long thread to find it.

I recommend making a new thread (mentioning this one for credit of course) so that you have full control over the thread. I’m going to change the title of this one now.

OK, thank you!. I wasn’t sure if that would be considered spammy behaviour or something like that.

Posted the new thread here: [Userscript] WaniKani Lesson User Synonyms v2