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

Google search addon v3

Adds a drop down menu to google so that you can change what you are searching, and comes with comments to add searches, default is :Wikipedia. Fixed for all domains, not just .com

Beta test of Version 3 Someone can make an easy gui to add different searches, but that is the most time consuming part of the script, It is more effcient than the previous version and has been completely rewritten to utilize GM_set/getValue.






Jun 23, 2008
mouseboyx Script's author

No more work on this script will take place by the original owner, because of http://www.goosh.org/.

 
May 31, 2008
mouseboyx Script's author

The GUI version takes way to long to make, but i refined it, and rewrote it so that it might be easier to understand.

 
May 18, 2008
Uldor User

Also, could be get Ebay added?

Plus, id like to have an option where you could disable or enable a search without modifying code. This is because a lot of people dont use wikipedia and ebay, and it would just clutter the dropdown menu. Then you can put a heap of searches on here, so anyone can modify the searches in the dropdown menu to their liking.

The next step from there would be to make it possible to simply add a webpage to the dropdown list, by simply clicking a button and 'adding it'. However, i think you will need to create a firefox extension to do this.

 
May 18, 2008
Uldor User

Firstly, i know nothing about scripts. I used this script and found it doesn't work on google.co.uk and google.com.au. SO i took 'MainP' advice and changed last line from

'forms[0].parentNode.insertBefore(logo, forms[4]);
to
'forms[0].parentNode.insertBefore(logo, forms[7]);
.

Worked a charm. But i still had to go to the script and change a few google images links from 'google.com/blahblahblah' to 'google.com.au/blahblahblah'. This was because it kept reverting to Google Images (America) every time i searched an image.

This is an awesome script. Someone please fix it so every language in Google AND Google images is supported without user having to do anything.

 
Jan 10, 2008
mouseboyx Script's author

Im always making usless scripts...

 
Jan 4, 2008
amareus User

Sorry, the code wont come out right, Sorry for cluttering the site. Visit my page for the script.

 
Jan 4, 2008
amareus User

Sorry, use this script:

// ==UserScript==



// @name           Google search addon



// @namespace      google



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



// @include        http://www.google.com/webhp?*

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

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



// ==/UserScript==

























var logo = document.createElement("span");  //create element











logo.innerHTML = '<select>' //starting select

// new searches go below here

//begin default option back to google



+'<option>Google'





//end default back to google



//googleimages start

+'<option>Images'
//googleimages end









									// begin new search

// youtube start

+'<option>Youtube' // name of option



//youtube end

									// end new search







									//example begin without comments

//wikipedia start

+'<option>Wikipedia'

//wikipedia end

									//example end without comments







// new searches go above here

+'</select>' //ending select needed for the searches







var forms = document.getElementsByTagName('input');

forms[0].parentNode.insertBefore(logo, forms[7]);  //insert the table for searches

 
Jan 4, 2008
amareus User

Hey guys,
If you are using "Google Harry" (http://userscripts.org/scripts/show/10778)
then I recommend you changing the script to this:

// ==UserScript==

// @name Google search addon

// @namespace google

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

// @include http://www.google.com/webhp?*

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

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

// ==/UserScript==

var logo = document.createElement("span"); //create element

logo.innerHTML = '

+'cng(fname,fact,inname,logosrc,searchval,widthl,heightl) {' //main function to create searches begin

+'var x=document.getElementsByName(fname);' //name of the form to change

+'var searchlogo=document.getElementsByTagName("img");' //get all image tags

+'searchlogo[0].width = widthl;'

+'searchlogo[0].height = heightl;'

+'x[0].action = fact;' //change form action

+'x[0].q.name = inname;' //change main input name

+'searchlogo[0].src = logosrc;' //change logo

+'x[0].btnG.value = searchval;' //change input search value

+'document.f.q.focus();' //autofocus form after selection

+'}

+'<select>' //starting select

// new searches go below here

//begin default option back to google

+'<option>Google'

//end default back to google

//googleimages start

+'<option>Images'
//googleimages end

// begin new search

// youtube start

+'<option>Youtube' // name of option

//youtube end

// end new search

//example begin without comments

//wikipedia start

+'<option>Wikipedia'

//wikipedia end

//example end without comments

// new searches go above here

+'</select>' //ending select needed for the searches

var forms = document.getElementsByTagName('input');

forms[0].parentNode.insertBefore(logo, forms[7]); //insert the table for searches

 
Dec 26, 2007
m4n_in_bl4ck Scriptwright

if you have Stumble Upon links in Google search for 'searchlogo[0]' and replace it with 'searchlogo[2]'.

 
Dec 16, 2007
MainP User

If you change the last line in:
forms[0].parentNode.insertBefore(logo, forms[7]);
Then it works in German Google to ;-)

 
Dec 13, 2007
mouseboyx Script's author

Where is the site you want the search from?

 
Dec 13, 2007
TastyFlySoup Scriptwright

rapidshare search (maybe?) i dunno :P

 
Dec 12, 2007
mouseboyx Script's author

its ok just change the metadata

 
Dec 12, 2007
bl_nk User

My bad, the name is the same

 
Dec 12, 2007
bl_nk User

Do not rename the script when you update, the users must then uninstall your old version manually.

 
Dec 12, 2007
TastyFlySoup Scriptwright

well google.co.uk should also be in the include list for starters ;)

 
Dec 12, 2007
mouseboyx Script's author

Any suggestions?
boolean for Im feeling lucky?

 
Dec 12, 2007
TastyFlySoup Scriptwright

nicely done

 
Dec 11, 2007
mouseboyx Script's author

Done!

 
Dec 10, 2007
Michael Fern... User

I like your script, very useful. One suggestion: could you set the google radio button to <select> since it's the default.</select>

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