<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-externalsearch.js</id>
	<title>MediaWiki:Gadget-externalsearch.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-externalsearch.js"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MediaWiki:Gadget-externalsearch.js&amp;action=history"/>
	<updated>2026-07-03T10:37:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=MediaWiki:Gadget-externalsearch.js&amp;diff=59648&amp;oldid=prev</id>
		<title>Ned Scott: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MediaWiki:Gadget-externalsearch.js&amp;diff=59648&amp;oldid=prev"/>
		<updated>2013-06-16T00:27:32Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:27, 16 June 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Ned Scott</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MediaWiki:Gadget-externalsearch.js&amp;diff=59647&amp;oldid=prev</id>
		<title>&gt;Krinkle@en.wikipedia.org: addOnloadHook is deprecated</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MediaWiki:Gadget-externalsearch.js&amp;diff=59647&amp;oldid=prev"/>
		<updated>2012-01-16T21:00:24Z</updated>

		<summary type="html">&lt;p&gt;addOnloadHook is deprecated&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/** Change Special:Search to use a drop-down menu *******************************************************&lt;br /&gt;
  *&lt;br /&gt;
  *  Description: Change Special:Search to use a drop-down menu, with the default being&lt;br /&gt;
  *               the internal MediaWiki engine&lt;br /&gt;
  *  Created and maintained by: [[User:Gracenotes]]&lt;br /&gt;
  */&lt;br /&gt;
&lt;br /&gt;
function SpecialSearchEnhanced() {&lt;br /&gt;
    var createOption = function(site, action, mainQ, addQ, addV) {&lt;br /&gt;
        var opt = document.createElement(&amp;#039;option&amp;#039;);&lt;br /&gt;
        opt.appendChild(document.createTextNode(site));&lt;br /&gt;
        searchEngines.push([action, mainQ, addQ, addV]);&lt;br /&gt;
        return opt;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    if (document.forms.powersearch)&lt;br /&gt;
        var searchForm = document.forms.powersearch;&lt;br /&gt;
    if (document.forms.search)&lt;br /&gt;
        var searchForm = document.forms.search;&lt;br /&gt;
&lt;br /&gt;
    if (searchForm.lsearchbox) {&lt;br /&gt;
        var searchBox = searchForm.lsearchbox;&lt;br /&gt;
    } else {&lt;br /&gt;
        var searchBox = searchForm.search;&lt;br /&gt;
    }&lt;br /&gt;
    var selectBox = document.createElement(&amp;#039;select&amp;#039;);&lt;br /&gt;
    selectBox.id = &amp;#039;searchEngine&amp;#039;;&lt;br /&gt;
    searchForm.onsubmit = function() {&lt;br /&gt;
        var optSelected = searchEngines[document.getElementById(&amp;#039;searchEngine&amp;#039;).selectedIndex];&lt;br /&gt;
        searchForm.action = optSelected[0];&lt;br /&gt;
        searchBox.name = optSelected[1];&lt;br /&gt;
        searchForm.title.value = optSelected[3];&lt;br /&gt;
        searchForm.title.name = optSelected[2];&lt;br /&gt;
    }&lt;br /&gt;
    selectBox.appendChild(createOption(&amp;#039;English Wikipedia&amp;#039;, mw.config.get( &amp;#039;wgScript&amp;#039; ), &amp;#039;search&amp;#039;, &amp;#039;title&amp;#039;, &amp;#039;Special:Search&amp;#039;));&lt;br /&gt;
    selectBox.appendChild(createOption(&amp;#039;Google&amp;#039;, &amp;#039;http://www.google.com/search&amp;#039;, &amp;#039;q&amp;#039;, &amp;#039;sitesearch&amp;#039;, &amp;#039;en.wikipedia.org&amp;#039;));&lt;br /&gt;
    selectBox.appendChild(createOption(&amp;#039;Yahoo&amp;#039;, &amp;#039;http://search.yahoo.com/search&amp;#039;, &amp;#039;p&amp;#039;, &amp;#039;vs&amp;#039;, &amp;#039;en.wikipedia.org&amp;#039;));&lt;br /&gt;
    selectBox.appendChild(createOption(&amp;#039;Bing&amp;#039;, &amp;#039;http://www.bing.com/search&amp;#039;, &amp;#039;q&amp;#039;, &amp;#039;q1&amp;#039;, &amp;#039;site:http://en.wikipedia.org&amp;#039;));&lt;br /&gt;
    selectBox.appendChild(createOption(&amp;#039;Wikiwix&amp;#039;, &amp;#039;http://www.wikiwix.com/&amp;#039;, &amp;#039;action&amp;#039;, &amp;#039;lang&amp;#039;, &amp;#039;en&amp;#039;));&lt;br /&gt;
    selectBox.appendChild(createOption(&amp;#039;Exalead&amp;#039;, &amp;#039;http://www.exalead.com/wikipedia/results&amp;#039;, &amp;#039;q&amp;#039;, &amp;#039;language&amp;#039;, &amp;#039;en&amp;#039;));&lt;br /&gt;
    searchBox.style.marginLeft = &amp;#039;0px&amp;#039;;&lt;br /&gt;
    if (document.getElementById(&amp;#039;loadStatus&amp;#039;)) {&lt;br /&gt;
        var lStat = document.getElementById(&amp;#039;loadStatus&amp;#039;);&lt;br /&gt;
    } else {&lt;br /&gt;
        var lStat = searchForm.title;&lt;br /&gt;
        if( typeof lStat === &amp;#039;object&amp;#039;  &amp;amp;&amp;amp; typeof lStat.length === &amp;#039;number&amp;#039; ) lStat = lStat[0];&lt;br /&gt;
    }&lt;br /&gt;
    lStat.parentNode.insertBefore(selectBox, lStat);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
var searchEngines = [];&lt;br /&gt;
&lt;br /&gt;
// Script is specific to Special:Search&lt;br /&gt;
if ( mw.config.get( &amp;#039;wgCanonicalSpecialPageName&amp;#039; ) === &amp;#039;Search&amp;#039;){&lt;br /&gt;
  $(SpecialSearchEnhanced);&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>&gt;Krinkle@en.wikipedia.org</name></author>
	</entry>
</feed>