<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.harlamenkov.ru/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ASearch.js</id>
	<title>MediaWiki:Search.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.harlamenkov.ru/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ASearch.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=MediaWiki:Search.js&amp;action=history"/>
	<updated>2026-11-11T21:42:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=MediaWiki:Search.js&amp;diff=22783&amp;oldid=prev</id>
		<title>Sancho at 14:14, 13 February 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=MediaWiki:Search.js&amp;diff=22783&amp;oldid=prev"/>
		<updated>2013-02-13T14:14:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 14:14, 13 February 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//  'Внутренний поиск': false,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//  'Внутренний поиск': false,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//  'Wikiwix': 'http://ru.wikiwix.com/?action=%s&amp;amp;disp=article',&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//  'Wikiwix': 'http://ru.wikiwix.com/?action=%s&amp;amp;disp=article',&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   'Яndex': 'http://yandex.ru/yandsearch?text=%s&amp;amp;site=wiki.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;i-rs&lt;/del&gt;.ru&amp;amp;site_manually=true&amp;amp;ras=1',&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   'Яndex': 'http://yandex.ru/yandsearch?text=%s&amp;amp;site=wiki.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;harlamenkov&lt;/ins&gt;.ru&amp;amp;site_manually=true&amp;amp;ras=1',&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//  'Yahoo': 'http://search.yahoo.com/search?p=%s&amp;amp;vs=ru.wikipedia.org',&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//  'Yahoo': 'http://search.yahoo.com/search?p=%s&amp;amp;vs=ru.wikipedia.org',&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   'Google': 'http://www.google.ru/custom?q=%s&amp;amp;hl=ru&amp;amp;domains=wiki.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;i-rs&lt;/del&gt;.ru&amp;amp;sitesearch=wiki.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;i-rs&lt;/del&gt;.ru'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   'Google': 'http://www.google.ru/custom?q=%s&amp;amp;hl=ru&amp;amp;domains=wiki.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;harlamenkov&lt;/ins&gt;.ru&amp;amp;sitesearch=wiki.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;harlamenkov&lt;/ins&gt;.ru'&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  createOption = function(site, engine) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  createOption = function(site, engine) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=MediaWiki:Search.js&amp;diff=22740&amp;oldid=prev</id>
		<title>Sancho: Yandex</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=MediaWiki:Search.js&amp;diff=22740&amp;oldid=prev"/>
		<updated>2013-02-13T12:16:05Z</updated>

		<summary type="html">&lt;p&gt;Yandex&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;function searchPage() {&lt;br /&gt;
 var searchEngines = {&lt;br /&gt;
//  'Внутренний поиск': false,&lt;br /&gt;
//  'Wikiwix': 'http://ru.wikiwix.com/?action=%s&amp;amp;disp=article',&lt;br /&gt;
  'Яndex': 'http://yandex.ru/yandsearch?text=%s&amp;amp;site=wiki.i-rs.ru&amp;amp;site_manually=true&amp;amp;ras=1',&lt;br /&gt;
//  'Yahoo': 'http://search.yahoo.com/search?p=%s&amp;amp;vs=ru.wikipedia.org',&lt;br /&gt;
  'Google': 'http://www.google.ru/custom?q=%s&amp;amp;hl=ru&amp;amp;domains=wiki.i-rs.ru&amp;amp;sitesearch=wiki.i-rs.ru'&lt;br /&gt;
  }&lt;br /&gt;
 createOption = function(site, engine) {&lt;br /&gt;
   var opt = document.createElement('option')&lt;br /&gt;
   opt.appendChild(document.createTextNode(site))&lt;br /&gt;
   opt.value = site&lt;br /&gt;
   return opt&lt;br /&gt;
 }&lt;br /&gt;
 var searchForm = document.forms['search'] || document.forms['powersearch']&lt;br /&gt;
 if (searchForm.fulltext) searchForm.fulltext.value = 'Найти'&lt;br /&gt;
 submit = function() {&lt;br /&gt;
   var optSelected = searchEngines[document.getElementById('searchEngine').value]&lt;br /&gt;
   if (optSelected) {&lt;br /&gt;
     searchInput = document.getElementById('searchText') || document.getElementById('powerSearchText')&lt;br /&gt;
     window.location = optSelected.replace(/%s/g, encodeURIComponent(searchInput.value))&lt;br /&gt;
     return false&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 if (navigator.appName == 'Microsoft Internet Explorer') addHandler(searchForm, 'submit', submit)&lt;br /&gt;
 else searchForm.onsubmit = submit&lt;br /&gt;
 var selectBox = document.createElement('select')&lt;br /&gt;
 selectBox.id = 'searchEngine'&lt;br /&gt;
 for (var se in searchEngines)&lt;br /&gt;
    selectBox.appendChild(createOption(se, searchEngines[se]))&lt;br /&gt;
 searchInput = document.getElementById('searchText') || document.getElementById('powerSearchText')&lt;br /&gt;
 searchInput.parentNode.insertBefore(selectBox, searchInput.nextSibling)&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
addOnloadHook(searchPage)&lt;/div&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
</feed>