Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

google extra

Displays results for google image search, video search, wikipedia search, dictionary.com search and Dict.CN search alongside normal google searches.

Update Log

  • 5-July-2007:
    • Initial release.
    • Better functionality for wikipedia, images added for wikipedia, google video images now link, google video images now in a 2x2 grid.
    • Image results now smaller but bigger on mouseover, slightly improved the wikipedia images, included all TLD's.
  • 6-July-2007:
    • Minor changes to styles and code. Should improve searches on wikipedia and dictionary.com.
    • Dictionary.com results now works better.
    • wikipedia results now works better.
    • Further improvement of wikipedia results, also links in both wikipedia and dictionary results now functional.
    • Disambiguation pages on wikipedia now show.
  • 8-July-2007:
    • Wikipedia and dictionary results now have a 300 pixels max height, and scroll if bigger than that.
    • Various other minor improvements.
    • Improved google image search for if there are few results.
  • 9-July-2007:
    • Video now works for all TLD's, thanks JackF.
    • 'Did you mean' now stays at the bottom if searches are spelt wrong.
    • Some other minor changes.
    • Improved video search to cope with <4 results.
  • 12-July-2007:
    • Dict.CN search added.
    • Icons added to rearrange the order of the searches.
    • Icons added to show or hide search results.
    • Preferences for ordering and showing/hiding remembered.
    • Google Video results now loads quicker.
    • Few other minor changes.
    • Dict.CN blue bar now doesn't show by default. This can be set to display via the script commands.
  • 12-September-2007:
    • 'goto' links now removed, links now on titles of sections.
    • Expanding options now gone, options shown by default.
    • Google images now shows full size image on mouseover, max height and width set to 500 pixels.
    • Disambiguation pages on wikipedia should now work better.
    • Bug with video links fixed.
    • Issues with hiding Dict.CN now fixed.
    • Probably a few other changes I've forgotten about.
  • 16-September-2007:
    • Google image search results now links to images.google, rather than www.google.
    • Resizing the window now works better.
    • Wikipedia search results now doesn't display if no results are found.
  • 17-September-2007:
    • Google image search results no longer stretched if they're small.
    • Larger images now stick around if you mouseover them, so you can right-click them and view image. They disappear if you move the mouse further than 20 pixels though.
  • 15-October-2007: Minor fix to problem pointed out by Dawudd in the comments.
  • 8-November-2007: Now when putting the mouse over youtube thumbnail images for the videos, it will flick between three thumbnails for that link instead of staying on the one.
  • 9-November-2007: Minor bug with video linking now fixed.
  • 28-November-2007: Pink background to sponsored links no longer goes the whole way across the extra results.
  • 4-December-2007: Animated video images now have a 1 pixel green border to aid quick identification.
  • 9-December-2007: Description snippet taken from Google Video search results page now displays on mouseover of video thumbnails.
  • 2-March-2008: Minor fixes, thanks to Dark Ryder for pointing this out, and taking the time to suggest the fixes.
  • 3-March-2008: Another fix, thanks to Dawudd for pointing this out.
  • 10-March-2008: Includes tweaked as per Kerry1960 and dexter crowley's requests.
  • 20-April-2008: Fixed again to work for google video search results. Thanks to everyone who commented telling me about this bug, and sorry for the delay in the fix.
  • 30-May-2008: Fixed video search so it will display properly now. Thanks to those who pointed this out to me.
  • 19-June-2008:
    • Changed line 101 of the code to stop the message in the error console, thanks to WindBlade for the suggestion.
    • Added the stupid icons to the google homepage. Thanks to Mikado for supplying the code.
  • 25-June-2008: Changed links to icons to a data url instead of having it remotely hosted.
  • 26-June-2008: Tweaked the includes as per the requests in the comments.

FAO: Chinese Users

To view Dict.CN search results, whilst on a google results page, right click on the monkey in the bottom right, hit "User Script Commands..." and then "Show Dict.CN results in future". This menu can also be accessed in "Tools", "Greasemonkey".

Updates

For users of this script who want to be kept up-to-date with updates to it, I recommend using the Script Updater script. I've not added an auto-checker on this script by default because I believe users shouldn't be bugged to update scripts, but I personally use this one.

Screenshots




Jun 30, 2008
merttt User

great script! thanks a lot!

 
Jun 26, 2008
znerp Script's author

@m0mm0 & Brandyn: I've changed the includes as per your requests, but I'm not overly happy about this. I'm going to be away from my computer for some time so I won't be able to make further changes for the next week or so but it almost definitely will cause problems with other pages on google and fill error consoles with various issues.

 
Jun 26, 2008
Brandyn Scriptwright

Change the included url to

// @include http://www.google.*/*

You forgot to add the asterisk to allow Firefox's Google to gain that feature.

 
Jun 25, 2008
Ronen Mendez... User

ok, as for the background with the videos/images/wiki, i just changed this line:
rightDiv.setAttribute("style", "max-width: 350px; float: right; background: #ffffff; padding-left: 10px;");

seems to be working when i set to (background: none;) - looks great in blue :)

as for the links, i changed them to text only by removing these lines:
//GM_addStyle('.GM_stupidicon{width:52px;height:37px;background:#fff url(http://img519.imageshack.us/img519/6129/svcspri...) no-repeat scroll 0 0}\
// .GM_blocklink{display:block;margin:0 6px 0 6px}');

so all worked out for me, thanks

 
Jun 25, 2008
m0mm0 User

what i ment was that if I is on "www.google.com" and click images and then "web" the url will change to "http://www.google.com/webhp?hl=en&tab=iw" so the icons won't be there, but you can't ad "http://www.google.com/webhp?hl=en&tab=iw" only becuse if I click news and then "web" it wont work so I wold recomend "www.google.*/*"

 
Jun 25, 2008
Ronen Mendez... User

first of all, thank you for the swift reply.
I have seen that image, my problem was that all the images were in one file. is it possible to maybe input the images one by one in different files or just using text links without the images?

also, i am using the stylish css to make google blue, so the images appearing in white not looking so hot, that is why i wanted to change them, same goes for the background in the other great features that extra provides, if it was possible to make the background transparent so it wouldn't interfere with userstyle's blue google, it would be nice as well

thank you

 
Jun 25, 2008
znerp Script's author

@Ronen: It would be possible, you'd just need to change this image, replacing the icons you want with the corresponding ones for your links. You'd then need to host it somewhere (or change it to a data url, which I really should do for the actual script), and change the line in the script that references it.

 
Jun 25, 2008
Ronen Mendez... User

I just saw the little icons, this is a very good thing that i wanted to see, but is it possible to allow different icons? I replaced the google links with links i use on my own such as myspace, facebook, etc.. but could not find how to change the icons for them so it won't show the google calendar icon on my facebook link.

 
Jun 23, 2008
znerp Script's author

@possumboy: Thanks, glad you like it.

@joppe: 1 - It would be possible, but not really in my interest to do this. If you were going to have a go though, I could give you a brief overview in way of a pointer.
2- I did some reading on this in December when someone posed a similar question on one of my other scripts. The issue with that is that the GM_xmlhttprequest function is not supported in Opera, and since this script relies somewhat heavily on that function, this wouldn't be possible.

@m0mm0: Thanks for the feedback. Can you give me an example url that would need to be included? The icons have worked for every http://www.google.tld/ that I've tried it with.

 
Jun 23, 2008
m0mm0 User

work's great but...

there is one thing thats wrong...

INCLUDED PAGES:
http://www.google.*/
and the other one

to make the "stupid icons" work properly you need to change that to "http://www.google.*/>*<"

 
Jun 23, 2008
joppe User

1) I'd like to have a column with the Swedish Wikipedia below the English Wikipedia. Is this possible? I tried to mod the file myself but my scripting knowledge is far too low :/

2) I tried the script in Opera 9.5 but it didnt seem to work. Is it possible to make it work? May be a longshot though

 
Jun 23, 2008
possumboy Scriptwright

this is probably my favourite script on userscripts.
It makes google SO much more useful.
I can't use google without it any more.

Thanks allot!

 
Jun 10, 2008
znerp Script's author

As I said, I've not noticed any errors with this script at all. I'm using FF3 RC2 as well, so I don't know what's up with that.

And I really don't know about the efficiency differences between the two methods; the difference would presumably be absolutely minimal, so I can't say I've ever really investigated this. I might do some reading up on it and possibly update the script. My issue with this really is that I'm not generally huge on making such small updates to my scripts.

 
Jun 9, 2008
WindBlade User

Thanks znerp.. :)
Not really an annoyance.. but just that i like my Firefox to be free of errors... :)
Thanks for the suggestion..

I do suppose that XPath will be more efficient than CSS selector right?
In that case, wouldn't it be better if that line of code had been used instead in the first place?
Or you only noticed that error after you released the last version..
Just wondering.. :)

 
Jun 9, 2008
znerp Script's author

I've noticed this too, but not actually with this script. Firebug kept throwing this error at me when I used Facebook with one of my other scripts, and I fixed that one by not going to Facebook any more. I don't know why it does this though, because even if this error comes up the scripts seem to still be functioning fine. Anyhow, if this really is an annoyance to you, just replace the offending line (line 101 of the script) with the following;

if (document.evaluate ("//div[@id='navbar']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.parentNode == results) {

 
Jun 9, 2008
WindBlade User

Hi znerp..

Just a small annoyance which should be an easy fix..
I keep getting this error in my Error Console..
Using GreaseMonkey 20080519 and FF3 RC2..


Error: document.getElementById("navbar") is null
Source file: file:///D:/Documents%20and%20Settings/WindBlade/Application%20Data/Mozilla/Firefox/Profiles/wrv5pc6k.MineField/gm_scripts/googleextra/googleextra.user.js
Line: 101

Is it possible to fix that or something..
Even though I get that, using DOM Inspector and looking for nabvar id, I did get the navbar class.. Not sure why Error Console say that it is null? hmmm

 
May 31, 2008
Mersine User

Thank you Znerp! This is one of my top favorite scripts

Formally Rodney

 
May 30, 2008
WindBlade User

Thanks znerp! :)

 
May 30, 2008
Mersine User

Thank you Znerp for all your work. I appreciate it

 
May 30, 2008
znerp Script's author

@WindBlade and Rodney: Sorry about this, I'll look at fixing this when I get in tonight; it should be a quick fix.

 
May 29, 2008
Mersine User

I'm having the video problem. Waiting for the fix

 
May 28, 2008
WindBlade User

Is anyone experiencing the same problem as me?
The Video part Heading does not show any Videos.. instead, it is blank.. :(
The rest of the headers (images etc) is okay..

Using FF2 and FF3RC1 with Greasemonkey latest version..

 
May 4, 2008
Broni User

Very cool!!!

 
Apr 22, 2008
Jordan Perr User

I can't find how to PM you, but here is what I have found so far:

If you add this to the top of the script (under the meta data), it will perform the code on scroll.. You can use that in combination with whats on my test page to make it work..

if(USER_PREFERENCE){

window.addEventListener('scroll', function(){

var theSidebar = document.getElementById("google_extra");

//your code goes here..

}, false);
}

hope that helps

 
Apr 21, 2008
Alan Smith User

You asked for opinions on the fix for the videos. Just putting in that I think it's fine that it checks googlevideo now. The only difference I see is that when you choose one of the links, if it happens to be a youtube video, it just adds the sidebar onto the youtube site. It still pulls up videos by there best results so I like it.

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