User:John R. Brews/monobook.js

From Citizendium
< User:John R. Brews
Revision as of 08:49, 21 May 2011 by imported>John R. Brews
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
importScript("User:John R. Brews/searchbox.js")
// from [[User:Henrik/sandbox/google-search]] at Wikipedia (please include this line)
function install_search( )
{
document.getElementById('searchBody').innerHTML+='<div>'+
'<FORM method=get action="http://www.google.com/search">'+
'<input type=hidden name="ie" value="UTF-8" /><input type=hidden name="oe" value="UTF-8" />'+
'<INPUT id="searchInput" name="q" type="text" accesskey="f" value="" />'+
'<input type="hidden" name="domains" value="en.citizendium.org" />'+
'<input type=radio name=sitesearch value="">Web'+
'<input type=radio name=sitesearch value="en.citizendium.org" checked />CZ'+
'<INPUT type="submit" name="btnG" VALUE="Google Search"/></FORM></div>';
}
addOnloadHook(install_search);