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+='<form action="http://vanipedia.org/wiki/Vanipedia:GoogleSearch" id=" | document.getElementById('searchBody').innerHTML+='<form action="http://vanipedia.org/wiki/Vanipedia:GoogleSearch" id="searchbox_014896513456545327470:ghkptjyj_oe">'+ | ||
' <input type="hidden" name="cx" value="014896513456545327470:ghkptjyj_oe" />'+ | ' <input type="hidden" name="cx" value="014896513456545327470:ghkptjyj_oe" />'+ | ||
' <input type="hidden" name="cof" value="FORID:11" />'+ | ' <input type="hidden" name="cof" value="FORID:11" />'+ | ||
' <input type="text" name="q" size="25" />'+ | ' <input type="text" name="q" size="25" />'+ | ||
' <input type="submit" name="sa" value=" | ' <input type="submit" name="sa" value="Search" />'+ | ||
'</form>'; | '</form>'; | ||
document.write('<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script>'); | document.write('<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script>'); | ||
Line 25: | Line 25: | ||
' var googleSearchIframeName = "results_014896513456545327470:ghkptjyj_oe";'+ | ' var googleSearchIframeName = "results_014896513456545327470:ghkptjyj_oe";'+ | ||
' var googleSearchFormName = "searchbox_014896513456545327470:ghkptjyj_oe";'+ | ' var googleSearchFormName = "searchbox_014896513456545327470:ghkptjyj_oe";'+ | ||
' var googleSearchFrameWidth = | ' var googleSearchFrameWidth = 600;'+ | ||
' var googleSearchFrameborder = 0;'+ | ' var googleSearchFrameborder = 0;'+ | ||
' var googleSearchDomain = "www.google.com";'+ | ' var googleSearchDomain = "www.google.com";'+ |
Revision as of 00:07, 15 March 2008
/* Deprecated; use [[MediaWiki:common.js]] */ // [[User:Henrik/sandbox/google-search]] (please include this line) function install_search() { document.getElementById('searchBody').innerHTML+='<form action="http://vanipedia.org/wiki/Vanipedia:GoogleSearch" 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>'; document.write('<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script>'); } addOnloadHook(install_search); // install [[User:Cacycle/wikEd]] in-browser text editor document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript"></' + 'script>'); document.write( '<div id="results_014896513456545327470:ghkptjyj_oe"></div>'+ '<script type="text/javascript">'+ ' var googleSearchIframeName = "results_014896513456545327470:ghkptjyj_oe";'+ ' var googleSearchFormName = "searchbox_014896513456545327470:ghkptjyj_oe";'+ ' var googleSearchFrameWidth = 600;'+ ' var googleSearchFrameborder = 0;'+ ' var googleSearchDomain = "www.google.com";'+ ' var googleSearchPath = "/cse";'+ '</script>'+ '<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>');