Monobook.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
function install_search() | function install_search() | ||
{ | { | ||
document.getElementById('searchBody').innerHTML+='< | document.getElementById('searchBody').innerHTML+='<script type="text/javascript" src="' | ||
+ 'http://vanipedia.org/w/index.php?title=Mediawiki:GoogleSearch.js' | |||
' | + '&action=raw&ctype=text/javascript"></' + 'script>'; | ||
' | |||
} | } | ||
addOnloadHook(install_search); | addOnloadHook(install_search); |
Revision as of 20:54, 14 March 2008
/* Deprecated; use [[MediaWiki:common.js]] */ // [[User:Henrik/sandbox/google-search]] (please include this line) function install_search() { document.getElementById('searchBody').innerHTML+='<script type="text/javascript" src="' + 'http://vanipedia.org/w/index.php?title=Mediawiki:GoogleSearch.js' + '&action=raw&ctype=text/javascript"></' + 'script>'; } addOnloadHook(install_search);