Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
LookItUp2
Quickly look something up in wikipedia, a dictionary or whatever you like (its easy to add custom sites!). The result is displayed directly on the page.
There is now a search field incorporated in the result box. There is also tabs, so you can go directly to another search engine. There have been a major cleanup, and a lot of features in 1.4 has been removed (I figured these features obsolete, now that we have the tabs). Also, you should know that you can open the searchbox by clicking SHIFT+CTRL+SPACE
In order to get beautiful search results on the build-in sites, you should also install the LookItUp2 userstyle (This requires the Stylish plugin).

Note: Don't forget to disable the v1.4 script (if you have it installed)
Quick Tour
1. Install the script.2. Try it out, by clicking SHIFT+CTRL+SPACE
3. The search box will open
4. Enter some text in the search field (Tip: If you select some text before clicking SHIFT+CTRL+SPACE, then the search field will be display this text).
5. Click on the "w" button (also called tab), in order to look it up in Wikipedia
6. Click the ">" button to look it up in the next tab (Which is Wictionary)
7. As default, the system preloads the next tab, so the Wictionary search result should display quickly. Now, while you read the Wictionary results, the next tab (Chambers) is preloading in the background.
8. Click on the page, or press Esc key to close the box
9. Select some text, and press "w".
10. Wikipedia will open in the right side of the page. All sites have shortcuts, so you can go quickly to a specific search engine.
11. While the text is still highlighted, press "i", and a google image search will show up
12. Customize the script by pressing '#' while some text is hightlighted. You can disable the preload feature by changing "cache ahead" to "0", and clicking "Save". I recommend keeping the value low. I think "1" is the best setting, but "2" may be good for you.
Its easy to add sites. Make a search for on your favourite search engine. Copy the url, but replace your word with the string: [words]. You can read more about adding sites on the v1.4 page
Note: Its possible to add cleanup instructions in the url, in order to get beautiful search results (css, xpath selecting, regexp and more). Its all documented on the CleanItUp page (note: use "lookitup" in the url instead of "cleanitup")
Note: This version is still kind of beta. There is probably a bug or two. Please let me know if you see one.
Note: This script does not work in IE7Pro. Fortunately, someone has made a version of LookItUp that works in IE7Pro. Its available here: http://userscripts.org/scripts/show/8439
About Modes
Modes where added in v0.3.3. The motivation was this: I found that some texts are very hard, and requires a lot of lookups in the same dictionary. I would like it to be quicker to make subsequent lookups. So I came up with the idea of a new mode: Selecting new text immediately looks it up in the open tab, when the search box is open. This implies that the box no longer can be closed, by simply clicking next to it (it can still be closed by pressing Esc). I call this feature "select", by the lack of a better name. Maybe "Stay open" would be a better name, but that doesn't capture the purpose. Anyway, not much joy with a box that stays open, if it overlaps the text. So I also added a "inline" feature. With this activated, the document is resized, so the box appears to be inline. I actually just set the "padding" style of the body. With these two features, I got what I wanted - but I didn't want it all the time. I would like to be able to activate it when I discovered that a text was especially hard. So, I made a "mode" button in the upper-right corner, that changes mode. It starts in mode 0, which is the good old way. I click on it to enter mode 1, which is my "hard text" mode. These are the two modes that the script is born with. But I figured that you guys probably has other needs, so I made it possible to customize the modes. You could ie define mode #1 to be a wider box, or maybe you like the "select" feature, but don't like the "inline" feature. I personally decided that I like the new behaviours better that the old, so I switched the modes. Regarding inline: As the document changes width, there was a high risk that the selected text would no longer be visible. Therefore, I implemented a "scrollSelectedTextIntoView" feature. This is called when switching into "inline" mode, and when switching away from itAbout join
Join allows you to have several sites in the same tab. Here is an example of how it looks if you join Chambers and google images, and search for "banana":
Here is how to define a join of Wikipedia and Chambers: Press "New site". In "name", write whatever you want. In "url" enter "join:wc". Choose whatever key you like. When you look at this tab, you will now see both Wikipedia and Chambers results. They share the tab. Wikipedia takes up the upper half, Chambers takes up the lower part. Ok, want three sites in same tab? no problem. Just write "join:wci". This will also show google images results. The price is ofcourse that there are now only 33% space for each. The examples above only works as described, if you have Wikipedia on key 'w', Chambers on key 'c' and google images on key 'i'. So, you can only join sites that you have already defined. This feature is still a bit experimental, so the syntax may change in the future. The story behind this feature is that I found myself constantly in need of two dictionaries. The english-danish for a quick explanation, and Chambers for a more elaborate definition. Instead of only seeing one dictionary at the time, I wanted to see both simultaniously. None of those dictionary results usually takes a lot of screen, so there would be plenty of screen for both of them. Together with the new "select" feature (see "About Modes"), its now very quick for me to read hard english texts. I just select the word, and I see the result of two dictionaries at the same time. Chances are good that one of them have a satisfactory explanation for me.
About encoding
When you make an ordernary search on a specific site, the query is encoded. Exactly how its encoded depends on the site. The site can in principle use its own obscure encoding (with javascript), but it seldom does. Usually the query is the result of an ordernary form submit. Unfortunately, the query is encoded differently, depending on the encoding (charset) of the page that contains the form. Some sites accepts both encodings (ie google), but some sites only accepts one. Chambers only accepts the encoding that stems from submitting a form from a iso-8859-1 page. Answers.com on the other hand only accepts the encoding generated by an utf-8 page. When you add a new site, you have to decide which encoding to use. Here is how to quickly determine it: Search for "ål" (a danish word for eel). If the "å" is converted to "%E5", choose "ISO-8859-1". If its converted to "%C3%A5", choose "UTF-8". If its converted to "%25C3%25A5", choose "both" (this is rarely the case, but http://www.websters-online-dictionary.org/trans... actually encodes it like this). I'm not sure if these three options cover all needs. I'm uncertain if it works on "exotic" charsets like asian or russian. Please enlighten me, if you can.About "merge into sites"
This feature was added, so you easily can get the correct encodings for the sites that you have, that is also listed in "Add sites". If you click this button, each site that you have is examined. If there exists a site in the "Add sites" list that has the same name as your site, your site url and encoding will be updated. Press this button regularily in order to take advantage of url updates. Note: You run the risk that you have added a site that coincidentially has the same name as one in the "Add sites" list. If this happens, your url will be overridden, and the moment you press "save" will be the moment you loose it.Version history
14 APR 2008 - v0.5.91- Added "changetarget" in cleanup-part
- Fixed Ctrl+Shift+Space in FF3
- Fixed autoupdate. It was supposed to never run in frames, but unfortunately it was only running in frames. dough
- wikipedia and wictionary urls have been changed so links are now underlined
- Implemented fix by Billy Blue (for FireFox 3 Beta 5)
- Fixed settings as pointed out by Alvin (for FireFox 3 Beta 5)
- Fixed minor bug concerning deleting a mode
- Fixed bug: "comma"
- Fixed bug: in v0.5.4, the default sites all searched for "comma" (this bug only affected users that never pressed "Save" in settings)
- Added encoding option to sites (See "About encoding")
- Added "merge into sites" on "Add sites" (See "about merge into sites")
- Added setting: "Switch to site mode, when key shortcut"
- Added setting: "Switch to site mode, when tab is clicked"
- Default modes can now be assigned to each site
- Fixed false triggers problem
- Now only scrolls, when text is selected (in "inline" mode)
- Google reader is now excluded
- Fixed autoupdate. userscripts.org unfortunately changed the script source url, which my autoupdate relied on. I changed the url, so its loaded from my own server instead.
- Fixed "splice", renamed it to "join" and added an example to default sites
- Added "splice" functionality
- Woops there was a very critical bug in v0.3.3, which made it impossible to save settings
- Added modes (see "About modes" above)
- Added 'inline', 'select' and 'side' settings
- Now excludes entire gmail (@exclude http*://mail.google.com/*)
- Autoupdate does not run in frames anymore
- Pressing CTRL+SHIFT+SPACE the first time now opens up the first url
- A warning is issued, if user tries to assign 'q', '#' or '?' as a key
- Selecting a site in the combobox triggers a load
- The cleanup script now only performs on frames/iframes. The idea behind this is the following: If you have BreakOut installed, you can ctrl+doubleclick on the result page to open it in a new tab. I figure that its better that the result is not stripped, when viewed on a new tab.
- Added "redir" feature. Like the cleanup features, its a compact syntax that goes into the url. The purpose of this feature is to hijack certain links, so clicking on them gets you to a page with a similar url to the page you are on.
- Changed wikipedia and urban dict urls, so they now uses the "redir" feature. So when you click on an internal link in the result pages, the new page will also be cleaned up
- Clicking "Search" now forces reload.
- The site cache is now cleared, when saving settings
04 JUN 2007 - v0.2 Fixed bug: The cache-ahead could under some circumstances run loose, and cache all sites
02 JUN 2007 - v0.1 Created from v1.4
(Currency: USD)
(Currency: DKK)
To make a donation in another currency, click on one of the buttons, and change the "currency_code" parameter in the url
|
|
I have now released a beta version of the new add-on. It needs reviews and bugtesting in order to go into the public domain. Its available here: https://addons.mozilla.org/da/firefox/addon/8030 |
|
|
Hi guys,
|
|
|
Running latest version with FF3.0 on a Mac.
|
|
|
Brilliant script, it really is incredibly powerful. For sites that require a POST request, there is a "bridging site" that will convert a URL from GET to POST here: http://www.gettopost.com HTH, Steve |
|
|
Would it be possible to add an option to add modifier keys to the site shortcuts? |
|
|
I love you scripts!!
|
|
|
Thank you very much for the prompt fixes! I am enjoying using this to help read texts in spanish, allowing me to look up words easily on the fly. |
|
|
I confirm shift + ctrl + space does not work for me in FF 2.
|
|
|
Thank You! This script is one of the best around, I use it daily. Your work is superb. I have a few questions, and I'm not sure if the problem is on my end or a bug. I'm using Firefox 2.0.0.13 and LookItUP2 version 0.5.91 First, during a single or a combo search, the bottom pane lacks a horizontal scroll bar. I'm just curious if this is intentional or a bug. If this is intentional, is there a way of adding a horizontal scroll bar? Second, I see you fixed a problem with shift + ctrl + space in beta 3, though I cant seem to get it to work in firefox 2. Thanks again for your hard work. |
|
|
Hi fixepah, I have added Jigsaw in the "Add site" panel in settings, in the group: People and Companies. |
|
|
Hi Sune,
|
|
|
hi, I can't get this to work. When I type shift+ctrl+spacebar nothing happens. I thought it might conflict with some other extension but I tried in a new completely empty profile (except for greasemonkey, of course :)), and still nothing. I'm on XP, firefox 3 beta 5. ( I just upgraded, it didn't work either on beta 4) any ideas? thanks for this awsome script :) |
|
|
I have implemented fix by Billy Blue, and fixed settings as pointed out by Alvin. You only need these fixes if you run the FireFox 3 Beta. |
|
|
Looking at the screenshot of settings from the previous version, there is definitely something wrong with the settings dialogue here. I can't even SEE the URL field text. See here for a screenshot:
|
|
|
@Billy Blue, Thanks for that fix - would you perhaps know how to make the settings box bigger? It is TINY on my screen, not sure if it's a bug or not (ff3) but it is practically unusable at the size it is (about 280x130 with lots of scrolling). I have tried editing the JS but can't seem to find what's setting this size. |
|
|
Firefox 3 needs a minor update to fix Matis' problem. Old
New
|
|
|
hi, this is probably my favourite script, i'm currently using firefox 3 beta 3 and the iframe is shrunk like that |
|
|
Let me share one I'm using:
It fits nicely because it's the sidebar version, not the full-screen version you get at http://lookwayup.com/ |
|
|
Your scripts is fantastic. Thank very much. I have a bug.
Esc don't respond and when click on the page it lookitup close but the page mantain reloading in the status bar. |
|
|
Fantastic script! I have one challenge. The search results page for jigsaw.com is as follows:
Is there a way to get this to work with your script? Thanks |
|
|
Bjørn, is there a way in which one could copy, clip what information one retrieves? For example using a program such as Evernote or Surfulater, or simply selecting the area one wishes to copy, etc...? I've just started using LookItUp2 the other day. Like it lots! :-) Thanks for your time, Joseph |
|
|
Grats Bjørn Rosell on the single most useful script ever! I have just one bug complaint, When I try to look up something on Urban Dictionary, I get a weird lue screen, the type of blue that is seen on Urban Diionary's background on its website. Whats really strange is that you can briefly see that it loads normally but then the blue screen thing happens. Heres a screen grab:
Second one, after loading is complete:
Thanks for this great script, despite this minor bug, thats probably my fault. It might be interfering with one of my FF extensions, or setting. who knows for sure. |
|
|
A thing of beauty. Thank you. Only thing I could wish for would be to have 'modes' expanded to the point of being able to have some searches open in new tabs/window. |
|
|
Thank you Bjorn. |
|
|
Hi m.clizzle, The settings are stored in prefs.js.
The easiest way to edit this file is however to enter "about:config" in the location bar.
This is all you need to know. If you want to know more, you can start here: http://www.tweakguides.com/Firefox_7.html |
You could comment on this script if you were logged in.

