2007/9/25, Magnus Manske:
Freshly hacked: Add
importScript('User:Magnus Manske/googlesearch.js');
to your monobook.js page. This will add a "google search" button in
your sidebar.
That's neat. Is it possible to do something similar when you're using
the Classic skin, too?
You'd usually put it on User:yourname/classic.js instead. The problem
here is that classic skin misses several ids.
Monobook search:
<form action="/wiki/Special:Search"
id="searchform"><div>
<input id="searchInput" name="search" type="text"
title="Search
Wikipedia [f]" accesskey="f" value="" />
<input type='submit' name="go" class="searchButton"
id="searchGoButton" value="Go" />
<input type='submit' name="fulltext" class="searchButton"
id="mw-searchButton" value="Search" />
</div></form>
Classic search:
<form name="search" class="inline" method="post"
action="/wiki/Special:Search">
<input type="text" name="search" size="19"
value="" />
<input type="submit" name="go" value="Go"
/> <input type="submit"
name="fulltext" value="Search" />
</form>