MediaWiki:ExtSearchPanel.js
Билгалдаккхар: Ӏалашйинчул тӀаьхьа хийцамаш га браузеран кэш цӀанйан йезаш хила мега.
- Firefox / Safari: Shift тӀетаӀийна йитина, гӀирсийн панелан тӀера тӀетаӀайе Карлайаккха йа Ctrl+F5 йа Ctrl+R (⌘+R Mac тӀехь)
- Google Chrome: тӀетаӀайе Ctrl+Shift+R (⌘+Shift+R Mac тӀехь)
- Internet Explorer / Edge: тӀетаӀийна йитина Ctrl, тӀетаӀайе Карлайаккха йа тӀетаӀайе Ctrl+F5
- Opera: тӀетаӀайе Ctrl+F5.
/* <pre> */
/* Шуьйра лахар */
var extSearchMode = 1; //Лелоран хьажар: 1 - керлачу корехь, 0 - йодаш йолчехь.
function addExtSearchPanel()
{
var d = document;
var ptb = d.getElementById('p-search').getElementsByTagName('div')[0];
ptb.innerHTML = '<FORM action="//ce.wikipedia.org/wiki/Special:Search" id="searchform"><DIV><INPUT id="searchInput" name="search" type="text" accesskey="f" value=""/><INPUT type="submit" name="go" class="searchButton" id="searchGoButton" value="Дехьа вала"/><INPUT type="submit" name="fulltext" class="searchButton" value="Лаха"/> <br /> <INPUT type="button" name="google" value="Я" onclick="openW(yURL());" class="searchButton" /> <INPUT type="button" class="searchButton" name="google" value="Gru" onclick="openW(gURL());"/> <INPUT type="button" name="google" value="Gint" class="searchButton" onclick="openW(gaURL());"/></DIV></FORM>';
}
function gURL() {
return 'http://www.google.ru/search?q=site:ce.wikipedia.org&q=' + document.getElementById('searchInput').value;
}
function gaURL() {
return 'http://www.google.ru/search?q=site:wikipedia.org&q=' + document.getElementById('searchInput').value;
}
function yURL() {
return 'http://www.yandex.ru/yandsearch?site=http://ce.wikipedia.org&site_manually=true&ras=1&text=' + document.getElementById('searchInput').value;
}
function openW(url) {
if (extSearchMode == 0) window.open(url, "_self");
else window.open(url, "_blank");
}
$(addExtSearchPanel);
/* </pre> */