Script: Cleverflow - A stronger, faster, harder, better way to reviews

UPDATED FOR NEW CLIENT SIDE REVIEWS! :D



Give it a try, and thank you once again to the developers on this site.  This bloody changed my life guys :D

~~~~
More info: 
I had the idea of combining 'auto next IF correct' and a 'last item button' to streamline the review process.  thenn42, seiji, psycoder and myself all submitted various versions.
I have combined them all into one complete script here for you to enjoy.  Not even kidding, this completely changes the way you use WK.
~~~

Copy Paste the code (see instructions below if you have no idea)

http://pastebin.com/BF67LchK

If you like the Audio to play, then please use Psycoder's version WITHOUT enabling autoplay audio in your WK settings:
http://pastebin.com/9Z6hM5jg
/t/Script-Cleverflow-A-stronger-faster-harder-better-way-to-reviews/2642/41 (Thanks psycoder pm me to make babies anytime)


~~~

How to use this code on Chrome:
Install Tampermonkey on Google chrome web browser:
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
Once installed - left click the icon.
Click "Add a New Script"
Delete everything that is existing in the window that appears.
Copy & paste code from a link above into the window
Press the 'save' button.
Close & reload WK
Enjoy an amazing experience which you'll miss when you're on another persons computer.
And if you use Firefox/Icecat or such: (Thanks jakobd)
- Install Greasemonkey, which you can get here:
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
- Restart Firefox/Icecat
- Now you'll see a nice little monkey icon on the top right. Click the arrow right next to it and choose "New User Script..."
- Put this in for Name "Cleverflow" and this for Namespace "thenn42.eu/userscripts"
- Blank out everything in "Includes (One per line)" and put in this instead "http://www.wanikani.com/review/*", then click on "OK"
- Delete everything in the next window and paste in the code from a link above
- Go to File -> Save and then close the window, you're done!

Your formatting is not really optimal. I cleaned it up: http://pastebin.com/AthLhJqx
(Didn’t test it, though.)

Not sure what this is, but I am loving the Daft Punk reference! 

Solmors said... Not sure what this is, but I am loving the Daft Punk reference! 
 I did no such thing, i have no idea what you're talking about.  What is this 'Daft punk'? 

edit: I guess it's my fault for assuming text conveys sarcasm and deliberately silly trolling vocal undertones.  I apologize :P

http://en.wikipedia.org/wiki/Harder,_Better,_Faster,_Stronger

Jatacid said...Give it a try, and thank you once again to Thenn42 - This bloody changed my life man.
 haha, you're welcome :)

However, I kind of meant them as two separate scripts for people interested in only one of the two features.
I probably should have created a topic to advertise the "Auto advances to next item" script though ^^

Good job thenn and Jatacid! Sending you crabs and alligator tears as thanks!

thenn42 said...
Jatacid said...Give it a try, and thank you once again to Thenn42 - This bloody changed my life man.
 haha, you're welcome :)

However, I kind of meant them as two separate scripts for people interested in only one of the two features.
I probably should have created a topic to advertise the "Auto advances to next item" script though ^^
 Haha yeah, I mean, they are two separate features.  But they work together so seamlessly.
A common 'misgiving' about auto-advance, is those rare cases where you actually do want to check something.  Like you just happened to guess the reading was こう but you really had no idea.  If you got it correct you normally wouldn't be able to look it up.  But having the back button function there really completes the whole experience.  My god my little finger loves me.  Thank you so much again haha.
Jatacid said... Haha yeah, I mean, they are two separate features.  But they work together so seamlessly.
A common 'misgiving' about auto-advance, is those rare cases where you actually do want to check something.  Like you just happened to guess the reading was こう but you really had no idea.  If you got it correct you normally wouldn't be able to look it up.  But having the back button function there really completes the whole experience.  My god my little finger loves me.  Thank you so much again haha.
 Yes, they really work hand in hand.

And thank you for the idea. I was skeptical of the auto-advance feature before trying it but it's really nice. 

Glorious. This is glorious. Thanks for the script!

Have no idea what I’m meant to with that code, but whatever…

EskimoJo said... Have no idea what I'm meant to with that code, but whatever...
 How to use this code on Chrome:
Install Tampermonkey on Google chrome web browser:
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
Once installed - left click the icon.
Click "Add a New Script"
Delete everything that is existing in the window that appears.
Copy & paste code from http://pastebin.com/AthLhJqx  into the window
Press the 'save' button.
Close & reload WK
Enjoy an amazing experience which you'll miss when you're on another persons computer.

Edit: Scroll down two entries for an easier way.

And if you use Firefox/Icecat or such:
- Install Greasemonkey, which you can get here:
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
- Restart Firefox/Icecat
- Now you’ll see a nice little monkey icon on the top right. Click the arrow right next to it and choose “New User Script…”
- Put this in for Name “Cleverflow” and this for Namespace “thenn42.eu/userscripts”
- Blank out everything in “Includes (One per line)” and put in this instead “http://www.wanikani.com/review/*”, then click on “OK”
- Delete everything in the next window and paste in the code from http://pastebin.com/AthLhJqx
- Go to File -> Save and then close the window, you’re done!

I made a few additional tweaks to the script so that it would suit my needs better.  The changes are:

  • Left the back button in tact (so I can still exit in the middle of a long review session and see the results)
  • Turned the kana list button into the “last item info” button
  • Changed the “last item info” button into a question mark icon
  • Provided an option to play the audio (when available) before moving to the next item
In order to play the audio, you have to edit the script to set the variable playAudio = 1 (it defaults to 0 which is do not play the audio).

Here’s the modified script: http://pastebin.com/WEmdsnKy

jakobd said... And if you use Firefox/Icecat or such:
- Install Greasemonkey, which you can get here:
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
- Restart Firefox/Icecat
- Now you'll see a nice little monkey icon on the top right. Click the arrow right next to it and choose "New User Script..."
- Put this in for Name "Cleverflow" and this for Namespace "thenn42.eu/userscripts"
- Blank out everything in "Includes (One per line)" and put in this instead "http://www.wanikani.com/review/*", then click on "OK"
- Delete everything in the next window and paste in the code from http://pastebin.com/AthLhJqx
- Go to File -> Save and then close the window, you're done!
 An easier way is to copy the full script from the pastebin site, click the "New User Script..." option in greasemonkey, and then click the "use script from clipboard" button.
Jatacid said...
EskimoJo said... Have no idea what I'm meant to with that code, but whatever...
 How to use this code on Chrome:
Install Tampermonkey on Google chrome web browser:
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
Once installed - left click the icon.
Click "Add a New Script"
Delete everything that is existing in the window that appears.
Copy & paste code from http://pastebin.com/AthLhJqx  into the window
Press the 'save' button.
Close & reload WK
Enjoy an amazing experience which you'll miss when you're on another persons computer.
Thank you. It works well! Although I made the mistake of going from pressing 'enter' twice to... not pressing at all! And sitting there wondering why nothing was happening. Lol! At other times I still pressed twice and got the answer bar harlem-shaking. It'll take getting used to I guess. Forgot to test the back button!
Psycoder said... I made a few additional tweaks to the script so that it would suit my needs better.  The changes are:
  • Left the back button in tact (so I can still exit in the middle of a long review session and see the results)
  • Turned the kana list button into the "last item info" button
  • Changed the "last item info" button into a question mark icon
  • Provided an option to play the audio (when available) before moving to the next item
In order to play the audio, you have to edit the script to set the variable playAudio = 1 (it defaults to 0 which is do not play the audio).

Here's the modified script: http://pastebin.com/WEmdsnKy
Oooh, how would I go about editing the code to only add the play audio option? What lines do I add to the original code and where do I add them?
EskimoJo said...
Psycoder said... I made a few additional tweaks to the script so that it would suit my needs better.  The changes are:
  • Left the back button in tact (so I can still exit in the middle of a long review session and see the results)
  • Turned the kana list button into the "last item info" button
  • Changed the "last item info" button into a question mark icon
  • Provided an option to play the audio (when available) before moving to the next item
In order to play the audio, you have to edit the script to set the variable playAudio = 1 (it defaults to 0 which is do not play the audio).

Here's the modified script: http://pastebin.com/WEmdsnKy
Oooh, how would I go about editing the code to only add the play audio option? What lines do I add to the original code and where do I add them?
 Most of the changes are for the audio playing capability.  So it's probably easier to just use a new version of the script.

Here is an untested version that should have the audio play (on by default) but without the kana list replacement: http://pastebin.com/7GybZxux
Psycoder said... I made a few additional tweaks to the script so that it would suit my needs better.  The changes are:
  • Left the back button in tact (so I can still exit in the middle of a long review session and see the results)
  • Turned the kana list button into the "last item info" button
  • Changed the "last item info" button into a question mark icon
  • Provided an option to play the audio (when available) before moving to the next item
In order to play the audio, you have to edit the script to set the variable playAudio = 1 (it defaults to 0 which is do not play the audio).

Here's the modified script: http://pastebin.com/WEmdsnKy
 Nice !
I've never thought of using the backbutton to get to the results mid-session and it's true that the kana list is pretty much useless.

About the audio, didn't it work with the autoplay option from wanikani? I don't have any reviews to check but I think the audio didn't get cut off when I first tested the script (on Chrome anyway).
thenn42 said...
Psycoder said... I made a few additional tweaks to the script so that it would suit my needs better.  The changes are:
  • Left the back button in tact (so I can still exit in the middle of a long review session and see the results)
  • Turned the kana list button into the "last item info" button
  • Changed the "last item info" button into a question mark icon
  • Provided an option to play the audio (when available) before moving to the next item
In order to play the audio, you have to edit the script to set the variable playAudio = 1 (it defaults to 0 which is do not play the audio).

Here's the modified script: http://pastebin.com/WEmdsnKy
 Nice !
I've never thought of using the backbutton to get to the results mid-session and it's true that the kana list is pretty much useless.

About the audio, didn't it work with the autoplay option from wanikani? I don't have any reviews to check but I think the audio didn't get cut off when I first tested the script (on Chrome anyway).
 I'm using Firefox and for me the form.submit() was preventing the autoplay option that you can set on the settings page.  Even without the script, if you hit the next button when or before the audio is playing, it would cut off/skip the audio and move on.  The script was basically always faster than the load and play.