MediaWiki

MediaWiki:Monobook.js

Revision as of 19:07, 14 March 2008 by Eivind (talk | contribs)

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.
/* Deprecated; use [[MediaWiki:common.js]] */

// [[User:Henrik/sandbox/google-search]] (please include this line)
 function install_search()
 {
 document.getElementById('searchBody').innerHTML+='<div>'+
 '<form action="http://" id="searchbox_014896513456545327470:ghkptjyj_oe">'+
 '<input type="hidden" name="cx" value="014896513456545327470:ghkptjyj_oe" />'+
 '<input type="hidden" name="cof" value="FORID:11" />'+
 '<input type="text" name="q" size="25" />'+
 '<input type="submit" name="sa" value="Search" /></FORM>'=
 '<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script></div>';
 }
 addOnloadHook(install_search);