Multi-Lang Lookup Bar

Last update on Jun 18, 2008

Translate and search words. Version:3.0.0Final

WARNING:It is firefox 3 only.


Usage:
  • Press "F4" to trigger(show/hide) the BAR.
  • Submit query by double-click or single-click(drag and release) on words when the bar is shown.
  • Drag and drop the ↑ symbol to adjust the height of bar.
  • Click language name to show the language list, if any.
  • Install the scripts you need.


Script Lib:

Built-in: babylon.com,translate.google.com

>> more here

Other related stuffs:
  • Double Middle-Click Trigger:Firefox cannot auto-install the script from Box.net. You need download it, then manually drag and drop the script into the window of firefox.

  • Mouse Gesture Trigger(require FireGestures):Click "Add script" button in FireGestures Options, then paste the code below into Script textarea, then create your mouse gesture.

    with(content.document.evaluate("/html/iframe[@id='multilanglookupbar']",
    content.document, null,9, null).singleNodeValue.style)
    display = (display=="block"?"none":"block");



Screenshots:





You could comment on this script if you were logged in.

52 comments Feed-icon

1 point
login to vote
Soheyl scriptwright
Posted Oct 13, 2008 12:27pm

Wow wonderfull! Thanks.
Please add Babylon from English to Persian and Persian to English.
Thanks. ;)

1 point
login to vote
SecretMan scriptwright
Posted Aug 1, 2008

好. 我帮你测试

1 point
login to vote
wushi777 script's author
Posted Aug 1, 2008

dictionary.com已经加上去了, 时间仓促, 有些东西没有实现。 你先试试吧。

1 point
login to vote
SecretMan scriptwright
Posted Jul 31, 2008

dictornary.com 只支持英英查词. 但它的确是一个很好的字典.

1 point
login to vote
wushi777 script's author
Posted Jul 31, 2008

dict.cn已更新。

1 point
login to vote
vitaly user
Posted Jun 24, 2008

Hi wushi, thanks for the information, particularly on question III. That is disappointing, cause Multitran is best dictionary for RU language. It has most of the words and forum... Too bad they don't go with time and make page in the Unicode :(
I anyway in most cases need "into RU" translation, so it is not so important to me that the other way it won't work right now... Thanks again!!

1 point
login to vote
wushi777 script's author
Posted Jun 24, 2008

hi vitaly. About your first question, you may set iframe style with "display:block" in settings to make this Bar remains visible. But it isn't work now, that's a bug. I will fix it in next version.

About second question, this Bar can't auto open in a domain. I suggest you to setup Mouse Gesture Trigger which make the Bar to be triggered more convenient.

About third question, that's because selected text to be converted into utf-8 character, and multitran.ru need windows-1251 character, so you can't get correct result. And Javascript don't have the ability to convert utf-8 character to windows-1251. I suggest you select a unicode-based site.

1 point
login to vote
vitaly user
Posted Jun 23, 2008

wushi, must ask: If I translate foreign word into RU, it just works fine with the Multitran addon. But if I enter RU word to translate into another language, the translation does not work and only shows strange things.
This is due to Unicode? On webpage itself it works...

Add: OK, it works if I manuelly set the codepage in Firefox to Cyrillic. If is in Unicode, it has the above effect...

1 point
login to vote
vitaly user
Posted Jun 23, 2008

wushi777, WOW GREAT!!! So happy that you added the multitran so quickly. And after some testing it seems to work just great, following your instruction. Thank you so much for your efforts!! :)

May I ask you... Is it possible that the Bar remains visible, even if navigating away from currently viewed webpage? (closing only by pressing F4 again). Or if this is not possible, that it automatically re-opens on each page within a domain, as specified in "Included pages" in Greasemonkey options?

1 point
login to vote
wushi777 script's author
Posted Jun 23, 2008

hi vitaly, Because http://multitran.ru/ isn't a unicode-based site, So I put it into a iframe. You need download both multi-lang lookup bar 3.0.1Beta1 and multitran.ru from multilanglookupbar->setting->Box.net, then drag and drop them into firefox's window.

And I suggest you to setup Stylish. Then write the following code in it for helping you filter some content.
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://multitran.ru/c/m.exe) {
.topnavy, .b10,.topmenu,#translation {display:none}
}

1 point
login to vote
vitaly user
Posted Jun 22, 2008

It is very nice script!!! How about adding the support for http://multitran.ru/ ?
en<->ru
de<->ru
fr<->ru
... It would be great, cause it is very good dictionary.

1 point
login to vote
wushi777 script's author
Posted Jun 19, 2008

这个dictionary.com我看没有让我可以选择返回语言种类的地方呀,好像是所有解释都在一个页面里了, 就像是answer.com的解释一样。 如果你知道怎么让页面返回某个固定语言的解释,请告诉我。

另外,这个脚本在不同的字典间切换, 会自动查找上一个单词,这样只要网速快,也可以查看不同语言的解释。

1 point
login to vote
SecretMan scriptwright
Posted Jun 19, 2008

希望你可以添加dictionary.com的字典. 并且可以实现支持N种语言. 例如我可以选择字典同时返回的是英文和中文的解释.

1 point
login to vote
BaRyU scriptwright
Posted May 23, 2008

Wonderful !!

Thank you very much

1 point
login to vote
wushi777 script's author
Posted May 22, 2008

Update to version 3.0.0Beta4:
1. Removed bottom bar trigger;
2. Update Double Middle-Click Trigger;
3. Update iciba.com dictionary;
4. Introduce mouse gesture trigger;

1 point
login to vote
BaRyU scriptwright
Posted May 21, 2008

But ottom bar is not nice & useful

Can you remove the bottom bar ?

Best regards

1 point
login to vote
wushi777 script's author
Posted May 20, 2008

If you need middle-click trigger, you can download it from the following link.

http://www.box.net/shared/j643zzokkw

Firefox can not auto-install the script from Box.net. So you need download it into disk, then manually drag and drop it into the window of firefox.

1 point
login to vote
BaRyU scriptwright
Posted May 19, 2008

Thanx for working

1 point
login to vote
wushi777 script's author
Posted May 18, 2008

This version is for test. If you really need middle-click trigger, I can take it back.

1 point
login to vote
BaRyU scriptwright
Posted May 18, 2008

Oh shit,
Removed middle-click trigger is not useful

1 point
login to vote
wushi777 script's author
Posted May 18, 2008

Update to version 3.0.0Beta3:
1.It is Firefox 3 only;
2.Updated some dictionaries;
3.Added new trigger way;
4.Removed middle-click trigger.

1 point
login to vote
Chu user
Posted May 17, 2008

很不错的东东啊! 支持国产!

1 point
login to vote
wushi777 script's author
Posted May 13, 2008

I have put the beta version into Box.net. You may download them from "BAR->settings->Box.net->Multi-lang lookup Bar 3.0.0Beta2", or http://www.box.net/shared/ba68knpelo

Note:I added new trigger way instead of the middle-click trigger.

1 point
login to vote
BaRyU scriptwright
Posted May 12, 2008

Nice script but not working in firefox 3 beta 5 :(

Can you fix it ?

1 point
login to vote
wushi777 script's author
Posted Mar 16, 2008

For dangerboy:
FF 3目前是测试版,存在各种兼容性问题是正常的情况。 我还没有移到ff 3中,所以没有办法做调试。你试试在settings->iframe style里写入right:0,看看能不能修正一下。

You could comment on this script if you were logged in.