User:Flint/monobook.js

From Wikipedia, the free encyclopedia

If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure whether the code is safe, you can ask at the appropriate village pump.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
//Jumt to text
importScript('Участник:Alex Smotrov/jump2text.js');
 
//Скрипт подсвечивает имя участников жирным.
importScript('Участник:X-romix/user bold.js');
 
//Скрипт дополняет форму поиска ссылками на поиск в гугле по различным вики-проектам.
extSearchMode = 1; //Режим просмотра: 1 - в новом окне, 0 - в текущем.
importScript('Участник:X-romix/wiki_google.js')
 
//Скрипт оформляет таблицу, скопированную из Excel или Calc, по правилам Википедии.
importScript('Участник:X-romix/tablifikator.js');
 
//Скрипт показывает переполнение поля «Описание изменений».
importScript('Участник:X-romix/summary show overload.js');
 
//Скрипт для транслитерации латиницы
importScript('Участник:X-romix/translit.js');
 
//Скрипт для перевода текста в нижний регистр
importScript('Участник:X-romix/lowercase.js');
 
//Скрипт для преобразования ссылок в читабельный вид.
importScript('Участник:X-romix/refconv.js');
 
//Быстрый предпросмотр
importScript('User:Alex Smotrov/qpreview.js');
 
//Подпись
importScript('User:Alex Smotrov/qsig.js');
 
importScript('User:Alex Smotrov/urldecoder.js');
 
//Навигационные окошки. При наведении мыши на внутреннюю ссылку скрипт показывает начало этой страницы во всплывающем окошке.
importScript('Участник:Lockal/strings-ru.js');
 importScript('User:Lupin/popups.js', 'en');
 
popupDelay = 1.5; // задержка на полторы секунды перед всплытием окна
popupStructure = 'fancy'; // не объединять навигационные ссылки в выпадающие списки
imagePopupsForImages = false; // не всплывать на иллюстрациях
popupMaxWidth = 400; // ширина всплывающего окна
popupMaxPreviewSentences = 10; // больше предложений в окне
popupMaxPreviewCharacters = 666;// больше символов в окне
popupPreviewFirstParOnly = false; // цитируется не только первый абзац
popupPreviewKillTemplates = false; // шаблоны показывать, пусть и сырыми
 
//Список наблюдения: новые изменения
importScript('User:Ilmari_Karonen/watchsince.js','en');
 
//Количество статей
importScript('User:Morpheios Melas/articlecount.js');
 
//Search list
importScript('User:Alex Smotrov/searchlist.js');
 
//wikied
// 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>');
 
/***** InstaView *****/
importScript('User:Pilaf/instaview.js', 'en')
 
/***** Top Contribs *****/
//importScript('User:Ais523/topcontrib.js');
 
/***** Redirects *****/
//importScript('User:Dschwen/highlightredirects.js');
 
// [[User:Ais523/topcontrib.js]]
 
// This script color-codes lines according to who has the top contribution for a page.
//<pre><nowiki>
addOnloadHook(function () {
  if((location.href.indexOf("Special:Contributions")!=-1||
      location.href.indexOf("Special%3AContributions")!=-1)
     &&location.href.indexOf("&ais523")==-1&&location.href.indexOf("?ais523")==-1)
  {
    var i,li,a;
    li=document.getElementById("bodyContent");
    //li.getElementsByTagName("ul")[0].tagName="ol";
    li=li.getElementsByTagName("li");
    i=-1;
    a=new Array();
    while(++i<li.length)
    {
      var s,t;
      t=li[i].innerHTML.match(/"\/wiki\/([^"]*)"/)[1];
      if(li[i].getElementsByTagName("strong").length>0)
        s="#CCCCFF";
      else
        s="#FFCCCC";
      if(a[t]!=undefined) s=(a[t]=="#CCCCFF"?"#CCFFFF":"#FFFFCC"); else a[t]=s;
      li[i].innerHTML="<SPAN STYLE='background-color:"+s+"'>"+li[i].innerHTML+"</SPAN>";
    }
  }
});
//</nowiki></pre>
//[[Category:Wikipedia scripts]]
 
 
// [[User:Dschwen/highlightredirects.js]] - please include this line 
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');