WK Real Numbers (userscript)

Apraxas said...
amclean said...
Hikaru said......recently all of the Wanikani scripts I was using (with the exception of override and maybe mistake delay) have stopped working.
 Are you connecting via HTTPS? If you're not sure check your URL bar, it should show "https://www.wanikani.com" rather than just "http://www.wanikani.com". If it's only "http" just add the 's'.
 My firefox only shows from www.

how to make it display the whole thing?
 you can just type it in manually, but I think there is actually a firefox plugin that will try to force all your connections to https

https://www.eff.org/https-everywhere

actually, I just read the description and now I'm less sure of what it does exactly...

amclean said...
Hikaru said......recently all of the Wanikani scripts I was using (with the exception of override and maybe mistake delay) have stopped working.
 Are you connecting via HTTPS? If you're not sure check your URL bar, it should show "https://www.wanikani.com" rather than just "http://www.wanikani.com". If it's only "http" just add the 's'.
 I see, I thought it would automatically do it? When I enter "https://" (this can be done even if the browser only shows www and on) everything starts working again. One problem though...as soon as I click a link to another part of the site, it goes back to http. Is there anyways to have chrome only use https for this site?
Hikaru said...
amclean said...
Hikaru said......recently all of the Wanikani scripts I was using (with the exception of override and maybe mistake delay) have stopped working.
 Are you connecting via HTTPS? If you're not sure check your URL bar, it should show "https://www.wanikani.com" rather than just "http://www.wanikani.com". If it's only "http" just add the 's'.
 I see, I thought it would automatically do it? When I enter "https://" (this can be done even if the browser only shows www and on) everything starts working again. One problem though...as soon as I click a link to another part of the site, it goes back to http. Is there anyways to have chrome only use https for this site?
 !!! that sounds like what that^ plugin said it would do!

https://www.eff.org/https-everywhere

edit:
"...[they] fill encrypted pages with links that go back to the unencrypted site. The HTTPS Everywhere extension fixes these problems by using a clever technology to rewrite requests to these sites to HTTPS."


SamusAranX said...
Hikaru said...
amclean said...
Hikaru said......recently all of the Wanikani scripts I was using (with the exception of override and maybe mistake delay) have stopped working.
 Are you connecting via HTTPS? If you're not sure check your URL bar, it should show "https://www.wanikani.com" rather than just "http://www.wanikani.com". If it's only "http" just add the 's'.
 I see, I thought it would automatically do it? When I enter "https://" (this can be done even if the browser only shows www and on) everything starts working again. One problem though...as soon as I click a link to another part of the site, it goes back to http. Is there anyways to have chrome only use https for this site?
 !!! that sounds like what that^ plugin said it would do!

https://www.eff.org/https-everywhere

edit:
"...[they] fill encrypted pages with links that go back to the unencrypted site. The HTTPS Everywhere extension fixes these problems by using a clever technology to rewrite requests to these sites to HTTPS."


 I was hoping to avoid installing an extension but I assume chrome has no built-in functionality for this.  There are other sites that default to https (google, wells fargo), so it seems weird that this site doesn't. 

EDIT: Oh wait, I think I just found out why..."Removed forced SSL for the time being. If you are an extension or script author, please update your scripts to accommodate for the https protocol. In two weeks from now I'll be forcing SSL." - viet

I might just enter it manually for now until forced SSL kicks in.

penx said that this has been updated, but mine’s still not working.

So do I still have to update the code manually or should it be working now?

Aikibujin said... penx said that this has been updated, but mine's still not working.

So do I still have to update the code manually or should it be working now?
 it works for me, as long as i'm on https, but at the moment it seems some links from https move you to http, for example going to reviews, and then you stay there after reviews.

Yeah, to get it to work I’ve had to put a quick link to the https WaniKani homepage on my toolbar, so I have to use that every time I finish reviews or what not.

Is the problem something that the script can be adjusted to handle, or does it need to be changed on WaniKani’s end?

This can easily be fixed by modifying the script until WaniKani forces https for everyone.

To make this script work on both http and https you open the script and search for the line:

// @include https://www.wanikani.com/*

Just below that line you include another similar line so you get something that looks like this instead:

// @include     https://www.wanikani.com/*

// @include     http://www.wanikani.com/*

Thanks for the response, I went to try this, but it appears to work without it now.

I think Viet must have updated WaniKani to force the https now. Is that right?




All of a sudden, I’m having trouble with this script.  I’m seeing a problem under both Firefox 28 and Chrome 33.0.1750.152, running on a Mac.   (And I don’t think it’s the script’s fault, but I’m not sure what’s going on.)

Try this:  open your browser and go to the WaniKani home page / dashboard.  Check that Real Numbers is running and working.  Click on Reviews to go to the Reviews Summary page.  Then click on the Crabigator icon to go back to the Dashboard.

When I do that, the Real Numbers script is no longer running.

Is this happening for anyone else, or is it just me?

gth99 said... All of a sudden, I'm having trouble with this script.  I'm seeing a problem under both Firefox 28 and Chrome 33.0.1750.152, running on a Mac.   (And I don't think it's the script's fault, but I'm not sure what's going on.)

Try this:  open your browser and go to the WaniKani home page / dashboard.  Check that Real Numbers is running and working.  Click on Reviews to go to the Reviews Summary page.  Then click on the Crabigator icon to go back to the Dashboard.

When I do that, the Real Numbers script is no longer running.

Is this happening for anyone else, or is it just me?
Yup, same issue here.
DaftDrunk said...
gth99 said... All of a sudden, I'm having trouble with this script.  I'm seeing a problem under both Firefox 28 and Chrome 33.0.1750.152, running on a Mac.   (And I don't think it's the script's fault, but I'm not sure what's going on.)

Try this:  open your browser and go to the WaniKani home page / dashboard.  Check that Real Numbers is running and working.  Click on Reviews to go to the Reviews Summary page.  Then click on the Crabigator icon to go back to the Dashboard.

When I do that, the Real Numbers script is no longer running.

Is this happening for anyone else, or is it just me?
Yup, same issue here.
 And then, if I click on the Lessons button, then go back to the dashboard, Real Numbers is working again.

I think I figured out the problem.  The script contains the line,

// @include     https://www.wanikani.com/

This means it tries to run on every page within the site, even when the status bar isn’t visible.  I think for some reason, this causes real problems when it hits the Reviews Summary page.  I modified my version of the script to replace the above @include with the following block, and it seems to be working much better.

// @include       https://www.wanikani.com/
// @include       https://www.wanikani.com/dashboard
// @include       https://www.wanikani.com/level/

// @include       https://www.wanikani.com/radicals
// @include       https://www.wanikani.com/lattice/

// @include       https://www.wanikani.com/kanji
// @include       https://www.wanikani.com/vocabulary

// @include       https://www.wanikani.com/community
// @include       https://www.wanikani.com/chat/

// @include       https://www.wanikani.com/about/
// @include       https://www.wanikani.com/api/

// @include       https://www.wanikani.com/faq/*



Not working for me.  I tried changing the include list to what u’ve got posted above but nothing changed.

Not working for me either.

Sometimes you end up on an http page instead of an https page, and in that case it won’t work.  Try adding the following and see if that helps:

// @include       http://www.wanikani.com/
// @include       http://www.wanikani.com/dashboard


Ok, I think for me it’s a different issue. The script seems to be running, but I still just get the 42+. I tried entering the API key manually, but it wouldn’t let me, so maybe it’s a Tampermonkey-issue? But then again, I don’t really use TM that much, so maybe I’m missing something obvious…

Yay! got it to work - turned out to be a conflict with another chrome extension.

eggzakly said... Yay! got it to work - turned out to be a conflict with another chrome extension.
 Good deal! It took a bit of fiddling to get it working on my end too.

Userscript site doesn’t seem to be working. Does anyone have a mirror of this script? Thanks!