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 #1 result, with 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.

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: