External Definition Frame Placer

Hey guys,

A bunch of people have been worried that the meanings on WK are incorrect/incomplete, so people have been copying and pasting the vocab into Jisho.org to check the definition. I was doing this for a while, but then got sick of it and made this userscript which inserts a frame containing Jisho.org into the page.

The main functionality of the script is to insert a frame into the reading and meaning sections of a lesson and also on the item detail page. It works for both Kanji and Vocab.

Additional Features:

  1. Allows you to specify your own source (using a very simple format string) for both Kanji and Vocab (see below).
  2. You can collapse the frame by clicking on the title.

Installation

  1. Install Tapermonkey. Although it should work when using Greasemonkey, there is some JS in there that Firefox doesn’t like at the moment: I will investigate later.
  2. Install the script from http://userscripts.org/scripts/show/183648.
There is no configuration required (the default source location is Jisho.org). You should now be able to see the frames during lessons and on an item’s detail page.

Specifying a Source

If you don’t like Jisho.org (or just want to use something else), you can specify the source if you are using a Greasemonkey compatible manager (i.e. Greasemonkey and Tapermonkey). Just go to any page on http://www.wanikani.com and click on the Tapermonkey extension icon. There are two options: WaniKani External Frame Placer: Change [Kanji|Vocab] URL

The format used is very basic: just replace the Kanji/Vocab with “{0}” (not including the quotation marks). For example:
If the URL isn’t valid, the frame won’t display the correct information (although it may display something).

Let me know if you find any problems with the script; I’ll try fix them ASAP.

Special Thanks


Jeshua

Screenshots




1 Like

that’s really nice, thank you!
But it seems I’m too stupid to install XD When I click your gitbub link, it just shows me the source code…
how can I install it?
I use Chrome 31 btw.

nibill you need Tampermonkey. Then just add it as a new script.

Edit: I’d be interested in a Greasemonkey-compatible version! FF all the way :stuck_out_tongue:

Ahh got it, didn’t find where to add the source manually. Thanks again

Thanks so much! It’s really useful!

Couldn't test but...

KANJI_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23kanji', VOCAB_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23words',

...might link to the new Jisho.

Hey quick question can you also do this with Weblio?

Breathless said... Couldn't test but...

KANJI_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23kanji', VOCAB_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23words',

...might link to the new Jisho.
 nope doesn't work. the field is just empty gray now
Time said... Hey quick question can you also do this with Weblio?
 Maybe try www.weblio.jp/content/{0}

jakobd said...
Time said... Hey quick question can you also do this with Weblio?
 Maybe try www.weblio.jp/content/{0}

 Tested this and it works (added it to the above description).


nibill said...
Breathless said... Couldn't test but...

KANJI_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23kanji', VOCAB_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23words',

...might link to the new Jisho.
 nope doesn't work. the field is just empty gray now
 Also added this to the above description. Unfortunately beta.jisho.org has some additional security settings which disallow it from being displayed in a frame. I will try implement a workaround soon. 
jeshuamorrissey said...
jakobd said...
Time said... Hey quick question can you also do this with Weblio?
 Maybe try www.weblio.jp/content/{0}

 Tested this and it works (added it to the above description).


nibill said...
Breathless said... Couldn't test but...

KANJI_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23kanji', VOCAB_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23words',

...might link to the new Jisho.
 nope doesn't work. the field is just empty gray now
 Also added this to the above description. Unfortunately beta.jisho.org has some additional security settings which disallow it from being displayed in a frame. I will try implement a workaround soon. 
 /happy dance.

You are beginning to rival alucardeck here.
same link, so both show the kanji meaning. not so good for the vocab as it doesn't show the word but the definition of each kanji.
here's the vocab link that works for me: http://jisho.org/words?jap={0}&eng=&dict=edict
nibill said... same link, so both show the kanji meaning. not so good for the vocab as it doesn't show the word but the definition of each kanji.
here's the vocab link that works for me: http://jisho.org/words?jap={0}&eng=&dict=edict
 You are correct. This was the link I had originally, but it somehow got changed :S I have updated the main post.

Also, I contacted one of the developers of beta.jisho.org and he kindly altered the security settings to allow wanikani.com to display beta.jisho.org in a frame. You should be able to use the beta.jisho.org links above now.

Awesome news dude, thanks

Great plugin, thank you!
I’ve also tried integrating it into WaniKani Mobile, and it works with almost no changes. Would it be ok for you if I distributed it with the app?
Only issue I have is that the panel does not appear for the first item of a lesson bunch. Is that expected behaviour or do I have to investigate more?

Time said...
nibill said...
Breathless said... Couldn't test but...

KANJI_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23kanji', VOCAB_URL_DEFAULT: 'http://beta.jisho.org/search/{0}%23words',

...might link to the new Jisho.
 nope doesn't work. the field is just empty gray now
 Also added this to the above description. Unfortunately beta.jisho.org has some additional security settings which disallow it from being displayed in a frame. I will try implement a workaround soon. 
 /happy dance.

You are beginning to rival alucardeck here.
 hm... why? he is not my rival ^^

great extension btw!
s84606 said... Great plugin, thank you!
I've also tried integrating it into WaniKani Mobile, and it works with almost no changes. Would it be ok for you if I distributed it with the app?
Only issue I have is that the panel does not appear for the first item of a lesson bunch. Is that expected behaviour or do I have to investigate more?

Feel free. That issue comes up sometimes (I think when the extension is loaded later it is more prevalent); it's because the jStorage listener isn't installed in time. You could probably work around it pretty easily by calling the listener manually after creation. I'll update the script when I get time.

THAT.
Is going to save me the trouble of creating a userscript to display tangorin info.
SO.
I thank you mister.
EDIT.
I couldnt make it work \o/
EDIT2:
Pressing “enable tempermonkey” is a good hint to make it work /afk suicide

Did this break?

I like it, got it hooked up to beta jisho atm