19,800
edits
(replacing deprecated global with mw.config variable) |
m (http->https) |
||
| Line 36: | Line 36: | ||
} | } | ||
selectBox.appendChild(createOption('MediaWiki Search', mw.config.get('wgScriptPath') + '/index.php', 'search', 'title', 'Special:Search')); | selectBox.appendChild(createOption('MediaWiki Search', mw.config.get('wgScriptPath') + '/index.php', 'search', 'title', 'Special:Search')); | ||
selectBox.appendChild(createOption('Google', ' | selectBox.appendChild(createOption('Google', 'https://www.google.com/search', 'q', 'sitesearch', 'wiki.oni2.net')); | ||
selectBox.appendChild(createOption('Yahoo!', ' | selectBox.appendChild(createOption('Yahoo!', 'https://search.yahoo.com/search', 'p', 'vs', 'wiki.oni2.net')); | ||
selectBox.appendChild(createOption('Bing', ' | selectBox.appendChild(createOption('Bing', 'https://www.bing.com/search', 'q', 'q1', 'site:https://wiki.oni2.net')); | ||
searchBox.style.marginLeft = '0px'; | searchBox.style.marginLeft = '0px'; | ||
if (document.getElementById('loadStatus')) { | if (document.getElementById('loadStatus')) { | ||