[Userscript] Wanikani Procrastination Annihilation

NordicRest said...
Mempo said...
NordicRest said... Using Tampermonkey on Chrome, it's not working. It gives me the popup that takes me to the settings page, then it doesn't do anything once it gets there. If I cancel it, it makes another popup every time I move to a page on WK saying "User not found". I think I made it work by just manually setting apiKey in the script itself, but that seems inelegant.
 Do you have slow internet? Technically nothing could go wrong, but while testing, sometimes i would hiccup because the script didn't load properly.

EDIT: now i think about it, it's quite possible Tampermonkey and Greasemonkey scripts are not totally interchangeable. I'll test it on Chrome today.
 I have 8/1 Mbps. Not amazing, not horrible. Computer is mid-range parts from 2013, so not super slow. Script does not work, even with the API key being entered manually. I think the problem's with Tampermonkey/the script.
I tested the script a few hours ago on Chromium (i use Ubuntu) and everything went smoothly (even with horribly slow internet). So i can't test it on Chrome.
Since i can't recreate the problem, it's going to be hard to debug. Technically, the only problem it could be is that Tampermonkey isn't handling the Greasemonkey-specific functions very well. They emulate their functionality, but it's not 100% the same. I will soon replace these functions to enable better cross-browser compatibility.

The only thing i can recommend now is try to install it from scratch. And if you can, look at the dev console(right click anywhere>inspect element>navigate to console tab) to see if there is any output. The very first line of the script prints "started Wanikani Procrastination Annihilation BETA", so if that isn't showing up, the script has an error/got corrupted.

Mempo said...I tested the script a few hours ago on Chromium (i use Ubuntu) and everything went smoothly (even with horribly slow internet). So i can't test it on Chrome.
Since i can't recreate the problem, it's going to be hard to debug. Technically, the only problem it could be is that Tampermonkey isn't handling the Greasemonkey-specific functions very well. They emulate their functionality, but it's not 100% the same. I will soon replace these functions to enable better cross-browser compatibility.

The only thing i can recommend now is try to install it from scratch. And if you can, look at the dev console(right click anywhere>inspect element>navigate to console tab) to see if there is any output. The very first line of the script prints "started Wanikani Procrastination Annihilation BETA", so if that isn't showing up, the script has an error/got corrupted.

Updated it, and a fresh copy doesn't get logged in the console at all (reinstalled it to be sure).

EDIT: Now it's "working" like it did before. Takes me to the account page, and then does nothing. Console doesn't show it loading or throwing any errors.

I dunno if it’ll help, but I installed it on chrome and it works fine for me

Emerald said...
Aztrex said... Despite being a master of procrastination I very rarely have over 120 reviews at a time. When I do, I just cry my way through them.
 At Level 33,  surely you must wake up to over 100 reviews all the time.
 I do quite often, but it rarely goes beyond 120. I always do my reviews before I go to sleep so that I can get reviews done in the morning and not be left with a backlog at school or in the afternoon. I normally have 200-250 reviews per day but spread out.
TheySayMoop said... I dunno if it'll help, but I installed it on chrome and it works fine for me
 Nooooo! That just makes it even more difficult. So it only works for some Chrome users. Great. Now i gotta look at possible interference from other scripts etc. Aiaiai.

Other active scripts on the Settings and any forums pages are WK Real Numbers, WK Clean Dashboard and Kanji Highlighter. On the Dashboard, there are also Ultimate Timeline, LevelUP Celebrator, Review Count Analysis, and Dashboard Progress Plus.

Mempo said...
Reckard said... I don't procrastinate on my reviews, but I do check the forums more often than I'd like. Could there be an option to make the forums hidden all the time?
Sure. Seems a bit harsh though. And if it's just a checkbox, what's there to stop you from unchecking it when you feel bored? I'll think about a better solution for this.
 When I feel bored the idea is that I would go do something else (preferrably in Japanese) instead of clicking on the forums just because they're there. The forums aren't that interesting to make me go into tamper monkey to reveal them, I just don't want to see it. 
NordicRest said... Other active scripts on the Settings and any forums pages are WK Real Numbers, WK Clean Dashboard and Kanji Highlighter. On the Dashboard, there are also Ultimate Timeline, LevelUP Celebrator, Review Count Analysis, and Dashboard Progress Plus.
 Hi. I wrote an update. Do you still have that problem? It will ask for your API key again, so that's normal.
Mempo said...
NordicRest said... Other active scripts on the Settings and any forums pages are WK Real Numbers, WK Clean Dashboard and Kanji Highlighter. On the Dashboard, there are also Ultimate Timeline, LevelUP Celebrator, Review Count Analysis, and Dashboard Progress Plus.
 Hi. I wrote an update. Do you still have that problem? It will ask for your API key again, so that's normal.
 It set the API key properly (I think, I got the popup), though I don't have any reviews, so I can't tell if it's working in that regard. I'll be glass-half-full and say it's working, though. Cheers!
NordicRest said...
Mempo said...
NordicRest said... Other active scripts on the Settings and any forums pages are WK Real Numbers, WK Clean Dashboard and Kanji Highlighter. On the Dashboard, there are also Ultimate Timeline, LevelUP Celebrator, Review Count Analysis, and Dashboard Progress Plus.
 Hi. I wrote an update. Do you still have that problem? It will ask for your API key again, so that's normal.
 It set the API key properly (I think, I got the popup), though I don't have any reviews, so I can't tell if it's working in that regard. I'll be glass-half-full and say it's working, though. Cheers!
 Lol, that's inconvenient... I've had it too a few times. Even now I actually have no idea if the new version even works because I don't have enough reviews :/

But you can check if the settings are loaded properly without reviews. If you open the developer's console, it should read '##### found the settings!' on the second line and below that is a list of the settings, including your API key.

Let me know if there are any more problems.
Mempo said... Lol, that's inconvenient... I've had it too a few times. Even now I actually have no idea if the new version even works because I don't have enough reviews :/

But you can check if the settings are loaded properly without reviews. If you open the developer's console, it should read '##### found the settings!' on the second line and below that is a list of the settings, including your API key.

Let me know if there are any more problems.
 Looks fine in the console. "started asfawe" to "difference in time is 5156467442315454354" loads with no errors.

To all: it’s not working 100% since the last update. I’ll resolve the issues tomorrow.

Renbowsophie said... This sounds so cool!! I love how it works as a reward system. No forums until you do your reviews. ψ(`∇´)ψ
 I agree! This is great! :D

For now, I'm on track... but we'll see if I start slipping when I have more reviews in future... I will keep this in the back of my mind. (I for sure spend too much time on the forums... Only... I don't consider it a waste.... but... but... yeah! ^_^;;;

I have 0 reviews and 7 lessons and the forums appear available but when I click on them, a popup says they’re in lock down. Had to disable it to post :'D

Yabba said... I have 0 reviews and 7 lessons and the forums appear available but when I click on them, a popup says they're in lock down. Had to disable it to post :'D
 I've noticed that sometimes. It's probably because the new review count isn't saved properly. Going back to the dashboard and refreshing the page usually solves it for me. A more permanent solution will arrive no sooner than February. I'm currently on a development hiatus.

This is pretty funny but no way that I will make my life harder and remove the comforting possibility of procrastination :smiley:

duran397 said... This is pretty funny but no way that I will make my life harder and remove the comforting possibility of procrastination :D
 To each his own. Some people need it and some don't.

Mempo, I like your new samurai cat! :smiley:

AnimeCanuck said... Mempo, I like your new samurai cat! :D
 Haha, thank you! It's an old picture of me, taken right after I graduated the Samurai Academy ;p

hello,
I tested it today, it does not seem to modify the dashboard at all (June’18).