Přeskočit na obsah

Wikipedista:Power/monobook.js

Z Wikipedie, otevřené encyklopedie

Poznámka: Po uložení musíte vyprázdnit mezipaměť vašeho prohlížeče, jinak změny neuvidíte.

// --------- custom edit toolbar --------- 
if (mwCustomEditButtons) 
 { 
  mwCustomEditButtons [mwCustomEditButtons.length] =  
    {  
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png",  
    "speedTip": "Citace webu",  
    "tagOpen": "<ref>\x7b\x7bCitace webu\n| url = \n| titul = \n| datum přístupu = " + (y = new Date().getFullYear ()) + "-" + (m = new Date ().getMonth () + 1) + "-" + (d = new Date ().getDate ()) + "\n}}</ref>", 
    "tagClose": "",  
    "sampleText": ""  
    }; 
 };

function loadScript(url)
{
   var e = document.createElement("script");
   e.src = url;
   e.type="text/javascript";
   document.getElementsByTagName("head")[0].appendChild(e);
}
 
loadScript("http://cs.wikipedia.org/w/index.php?title=Wikipedista:Mormegil/tools.js&action=raw&ctype=text/javascript&dontcountme=s");
 
$(function() { addSummaryToolbar(["typo, ", "interwiki, ", "", "úprava, ", "linky, ", "", "rekategorizace, ", "Doplnění, ", "", "přeformulování, ", "Aktualizace, ","",  "Založení, ", "oprava, ", "", "link fix, ", "pseudošablona, ", "", "Rozcestník, ", "Rozcestník OK, ", "", "Přesměrování (Redirect), ", "Různé významy, ", ]); });
$(function() { addFindAndReplaceToolbar() });