User:Henrik/sandbox/google-search

Copy the following to your monobook.js or vector.js to supplement Wikipedia's search engine with a google search of en.wikipedia.org. If you have any suggestions or problems, please let me know.


 * -Henrik

// User:Henrik/sandbox/google-search (please include this line) function install_search { var elem; if (skin == "vector") { elem = document.getElementById('searchform').parentNode; } else { elem = document.getElementById('searchBody'); } elem.innerHTML += ''+ ''+ ''+ ''+ 'Web'+ 'WP'+ ' '; } addOnloadHook(install_search);

Use the following to display both the wikipedia search and the google search:

// User:Henrik/sandbox/google-search (please include this line) function install_search { var elem; if (skin == "vector") { elem = document.getElementById('searchform').parentNode; } else { elem = document.getElementById('searchBody'); } elem.innerHTML += ''+ ''+ ''+ ''+ 'Web'+ 'WP'+ '<INPUT type="submit" name="btnG" VALUE="Google Search" /></FORM> '; } addOnloadHook(install_search);