[Userscript] Wanikani Self-Study 1.1.5 - Add your own Vocabulary!

https://gist.github.com/Shudouken/85b33e4855394b272be2

Finally wrote the program to convert a csv file into the text for importing it, you’ll have to compile (and maybe change it to your needs) though

http://userscripts.org/ is gone. Where can I get the script?

Founder said... http://userscripts.org/ is gone. Where can I get the script?
http://userscripts.org:8080/
I don't know why but they changed their http port to 8080

Thanks.
I was going to make a site where you could import your own lessons and control the frequency of SRS. There are a lot of specific Kanji that are used for the martial art I do. I still might do it one day if I get some time.

lolwut. So userscripts isn’t down at al? They just changed the port? Wat.

I know I promised to add to this code unlocking functionality, but I keep getting distracted with other things and haven’t had time to test and debug it, also, I keep deleting my offline site data, so that’s annoying.

I have done most of the required coding for it, but it’s riddled with pop up windows for debugging and stuff. Hopefully I’ll push though it next month.

Ethan said... I know I promised to add to this code unlocking functionality, but I keep getting distracted with other things and haven't had time to test and debug it, also, I keep deleting my offline site data, so that's annoying.

I have done most of the required coding for it, but it's riddled with pop up windows for debugging and stuff. Hopefully I'll push though it next month.
Nice to know you're still working on it, hope you saw I released a new version with a couple minor (mostly graphical) fixes, but it could still somehow influence what you're working on

Anyone got a mirror for this bad boy?

Userscripts.org is in an odd sort of limbo right now as the owner decides exactly how he wants to abandon the project (from what I can gather).  It does work for the most part though so long as you change the port number. http://userscripts.org:8080/scripts/show/381435  will get you to this script


akamura2828 said...
Userscripts.org is in an odd sort of limbo right now as the owner decides exactly how he wants to abandon the project (from what I can gather).  It does work for the most part though so long as you change the port number. http://userscripts.org:8080/scripts/show/381435  will get you to this script


 I tried to access it today and yesterday, but I get the following error:

This website is under heavy load.
We're sorry, too many people are accessing this website at the same time. We're working on this problem. Please try again later.


Anyone else with the same problem or with an alternative? For some reason I learn better with Wanikani than Anki and I think it's also more relaxing for my eyes, so I don't potentially get eyestrain after a longer session.
Ruben said...
akamura2828 said...
Userscripts.org is in an odd sort of limbo right now as the owner decides exactly how he wants to abandon the project (from what I can gather).  It does work for the most part though so long as you change the port number. http://userscripts.org:8080/scripts/show/381435  will get you to this script
 I tried to access it today and yesterday, but I get the following error:

This website is under heavy load.
We're sorry, too many people are accessing this website at the same time. We're working on this problem. Please try again later.

Anyone else with the same problem or with an alternative? For some reason I learn better with Wanikani than Anki and I think it's also more relaxing for my eyes, so I don't potentially get eyestrain after a longer session.
Here's a dropbox perma link for you, hope it's the correct version
https://dl.dropboxusercontent.com/u/47208810/381435.user.js

Shudouken said...
Ruben said...
akamura2828 said...
Userscripts.org is in an odd sort of limbo right now as the owner decides exactly how he wants to abandon the project (from what I can gather).  It does work for the most part though so long as you change the port number. http://userscripts.org:8080/scripts/show/381435  will get you to this script
 I tried to access it today and yesterday, but I get the following error:

This website is under heavy load.
We're sorry, too many people are accessing this website at the same time. We're working on this problem. Please try again later.

Anyone else with the same problem or with an alternative? For some reason I learn better with Wanikani than Anki and I think it's also more relaxing for my eyes, so I don't potentially get eyestrain after a longer session.
Here's a dropbox perma link for you, hope it's the correct version
https://dl.dropboxusercontent.com/u/47208810/381435.user.js

 It does work! Thank you very much!

Hmm… for some reason this won’t work for me anymore and I’m not really sure why.
The button is still there but all other windows won’t appear

Maybe it’s because I updated firefox?

I noticed it stopped working after updating Firefox too. Guess all we can do is wait for a fix.

Use the Userscripts mirror: http://userscripts-mirror.org/scripts/show/381435

Still works for me in Chrome by the way.

Shudouken said...
Ethan said... I know I promised to add to this code unlocking functionality, but I keep getting distracted with other things and haven't had time to test and debug it, also, I keep deleting my offline site data, so that's annoying.

I have done most of the required coding for it, but it's riddled with pop up windows for debugging and stuff. Hopefully I'll push though it next month.
Nice to know you're still working on it, hope you saw I released a new version with a couple minor (mostly graphical) fixes, but it could still somehow influence what you're working on
Okay, I don't have time at the moment to continue fiddling with this, and I won't get to do any real testing until I renew my subscription.

With that in mind, here is a dump of what I did with the code many months ago in case someone finds some useful stuff in it.

https://greasyfork.org/scripts/5826-wanikani-self-study-ethan-edition

It's not very elegant and there are still some alerts that need deleting or commenting out. 
I just wanted to make my additions available in case I never get to polish it up.
Use with caution.

It needs a couple changes to use anyway:

Greasy fork would not allow @require on line 11 so you will need to change it manually:
// require     https://raw.github.com/WaniKani/WanaKana/master/lib/wanakana.min.js
To:
// @require     https://raw.github.com/WaniKani/WanaKana/master/lib/wanakana.min.js

and you have to provide it with your API key on line 23:

var APIkey = “YOUR API KEY HERE”; 

Is this script still exists? The link isn’t working for some reason…

my bad. discard my previous post

My recreational programming side has been awakened again.
https://greasyfork.org/scripts/5826-wanikani-self-study-ethan-edition
still a mess, not functional for its purpose, however:
0.0.4
 I got rid of most of the alerts, I started using the scriptLog, which is a lot smarter on my part.
 I’m untangling the logic around the local storage and combining vocab and srs lists into one to maintain data integrity. I kept finding that errors in deleting or changing one, would often break the code by looking for entries that weren’t there. I wrote a couple of handler functions to spit out the lists that the rest of the code expects

* I’ve broken a lot of the session related stuff, so… yeah, stick with Shudouken’s script for now, treat mine only as a curiosity.
Here’s a link to his version (1.1.5) for anyone having trouble with finding it nowadays.
http://userscripts-mirror.org/scripts/show/381435

0.0.6
https://greasyfork.org/scripts/5826-wanikani-self-study-ethan-edition
Remember to repair the @require line and add your API key.

It’s working pretty good now, I think I’ve fixed all the bits I broke.
Lock behaviour:
1. Items will be unlocked if the component kanji is not apprentice.
2. Items will be unlocked if the component kanji isn’t available (not on Wanikani, or the user is a Guppy, or there is no connection.
3. Items will be unlocked if there is no component kanji.
4. Unlocked items stay unlocked. (if any component kanji fall back to ‘apprentice’, item doesn’t re-lock)

At the moment this means that all items will be unlocked if they were added before you make the first api connection, since it is comparing to an empty list in storage, and the component kanji will not be in an empty list.
Items added after a connection that use kanji which is still in apprentice will be locked until all components reach guru.

I’ll probably add a few bits and pieces to give the user greater control over the behaviour (lock items that aren’t in the database, increase unlock level to master, put reviews into groups, provide API key, etc), but that’s not on the cards at the moment.

Let me know if you like it or if you find any problems that you think I should fix immediately.