Extension:GoogleAjax

What can this extension do?
This will add a section to the bottom of the search results page for a google search, just above the Advanced Search box, using Google's Ajax API. It will automatically search for the term that the user has searched for, and return the first result, offering the option to expand to show all results.

Usage
This is a bit of a Hack, but once it is put in place it is stable and works very smoothly, no further configuration is needed.

To use this, you will need to have Ajax enabled by adding the following to LocalSettings.php

Problems with MediaWiki 1.15.1
The extension is currently not correctly working with MediaWiki 1.15.1.

This has now been resolved by changing the name of the Google version of the to

Installation
To install this extension, add the following to SpecialSearch.php:

please make sure you save a backup of specialsearch.php before you apply this extension

In the SpecialSearch.php file locate the following code

Paste in the following code after that:

Then, locate the next section of Code:

and change it to:

For MediaWiki 1.18:

Locate this section of Code (line 273):

and change it to: