Because User Synonyms and Notes cannot be read from the WK server until lesson quiz completion anything input with this script is stored in local browser storage. This means of course that it only works if you use a single browser for WK. It is intended for use on items for which you will complete the lesson quiz relatively soon. For items in the next few levels anyway.
It should clean up after itself, but in case it loses track of anything data is set to auto-expire from local storage after 180-days of no viewing.
So if I understand, as long as one completes the lesson quiz duringĀ the browsing session in which they add the synonyms/notes, the script will automatically passĀ those synonyms and notes to the WK server-side storage and they will then exist as synonyms at any later date on any browser?
User Synonyms and Notes are passed to the WK server immediately upon creation.Ā But the WK server will not tell you what you just sent it until you complete the lesson quiz. It is write-only. The WK quiz page already did this for Notes. The WK server allows User Synonyms to be handled similarly. (Notes entered withoutĀ this script on the lessons page expire/desync from the browser after 2-hours.)
You should be able to restart your browser. As long as it doesn't crash real bad and somehow corrupt or lose its html5 local storage data. Local data is only deleted after 180-days of no-viewing or upon lesson quiz completion.
The issue that much of this script handles is making the browser remember User Synonyms and Notes until you complete the lesson quiz. Even if you complete the lesson on another browser/device WK will still remember any User Synonyms or Notes you entered, but of course you won't be able to see them on any otherĀ browser/deviceĀ until you complete the lesson quiz.
Short: Yes. After quiz completion the User Synonyms and Notes will be visible on any browser.
Iād really like this to work because I currently keep notes on locked items in somewhat related unlocked page notes. Unfortunately I keep getting āError adding note. Retry?ā Using Firefox.
Not sure if this script is still being maintained (doesnāt look like it but o well, I donāt know where else to post it), but since two days or so, the synonyms that Iāve added during lessons somehow disappear again?
For instance I learn the word äæč·ćć, then I add my synonym to it right then and there.
When Iām being asked about the items Iāve just learned the synonym is still there. But as soon as it shows up in my review queue the synonym is no longer there and I have to add it a second timeā¦?
Iāve just had the same problem. Seems like this might not be being maintained anymore, which is a shame cause itās super useful.
By the way, has anyone ever discovered any reason this is not a part of the regular experience? Especially given the pointlessly frustrating way youāre forced to add synonyms during reviews.
No clue, it could be so youāre not cheating and actually learn/write out the meaning they give you before you can continue?
Which would make sense but still, I like to add synonyms beforehand because words from my native language are usually easier to remember.
Adding your native language synonyms is totally legitimate, I think. As is adding English synonyms since there are a lot of items where WKās lack of synonyms is frankly ridiculous.
Personally, I add the romaji for items I already know well or which donāt need an English translation. Eg. ćē²ćę§ćēé¢ etc
For the last two or three weeks the script has not been working anymore. I can still enter synonyms during lessons but once I get out of lessons after the quiz, they are gone.
Is anyone here having the same problem?
Just noticed today people have been posting about thisā¦
Did some testing and yes it seems broken.
Some of the server-side behavior it relied on is now gone.
Trying to set notes or synonyms on still locked items now gives a 404-error.
So WK is rejecting them.
Unlocked but still unlearned items seem possible to setā¦
The server takes both notes and synonyms with no error.
But upon lesson completion, the synonyms seem to be erased.
I am able to read-back synonyms on unlearned items using the API-V2, so they are being saved by the serverā¦
The script could perhaps be changed to submit synonyms to the server after lesson completion, rather than immediately after entering them.
I agree the functionality this script provided should be a stock featureā¦
I canāt really see why we shouldnāt be able to add notes and synonyms for any item unlearned or even still locked.
Ran across this thread:
@viet
Previously it was possible to submit synonyms for unlearned items during lessons and have them retained after lesson completion.
It now appears that such synonyms are being erased upon lesson completion.
Is there any possibility of restoring the previous behavior?
Reading the API-V2 āstudy_materialsā data for an item immediately before lesson completion it shows the added synonyms.
Reading again just after lesson completion shows they are all gone.
Normally we do not make accommodations who make creative use of internal endpoints or work around our code. It is exposed for our use only. We canāt stop people from poking around, but it is to be used at your own risk.
Having said that, it is weird the synonyms are being wiped out after lesson completion since this is going against what we expect to happen (basically it should not happen). I donāt know how the userscript works, nor will I spend the time debugging something we didnāt write up. But the fact the synonyms are supposably being wiped at lesson completion when we believe it shouldnāt we will look into. Going to try and replicate the issue on our end and go from there.
Just tested this out on a new bunch of lessons andā¦it worked fine!
Thanks a lot @viet . I understand itās not your problem whatsoever if thereās an issue with userscripts so itās really nice of you to help out on this one. Cheers!