Wikipedista:Adam Zábranský/monobook.js

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/5/55/Button_nbsp_1.png",
      "speedTip": "Tvrdá mezera",
      "tagOpen": " ",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anf%C3%BChrung.png",
      "speedTip": "Úvozovky",
      "tagOpen": "„",
      "tagClose": "“",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/42/Buttonsablona.png",
      "speedTip": "Šablona",
      "tagOpen": "{{",
      "tagClose": "}}",
      "sampleText": "šablona"};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png",
      "speedTip": "Svislík",
      "tagOpen": "|",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/94/Button_zdroj.png",
      "speedTip": "{{Doplňte zdroj}}",
      "tagOpen": "{{",
      "tagClose": "}}",
      "sampleText": "chybí zdroj"};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/22/Button_ellipsis.png",
      "speedTip": "Tři tečky",
      "tagOpen": "…",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/41/Button_hr_halfwidth.png",
      "speedTip": "Pomlčka",
      "tagOpen": "–",
      "tagClose": "",
      "sampleText": ""};
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/d/db/Button_with_wikinumber_character.png",
      "speedTip": "Křížek-číslo",
      "tagOpen": "#",
      "tagClose": "",
      "sampleText": ""};
  mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e4/Button_with_Celsius_degree.png",
      "speedTip": "Stupeň Celsia",
      "tagOpen": " °C",
      "tagClose": "",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1b/Button_hide_wiki_tag.png",
      "speedTip": "Sktytý text",
      "tagOpen": "<!--",
      "tagClose": "-->",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png",
      "speedTip": "Ref",
      "tagOpen": "<ref>",
      "tagClose": "</ref>",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/17/Button_small_2.png",
      "speedTip": "Small",
      "tagOpen": "<small>",
      "tagClose": "</small>",
      "sampleText": ""};
 mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f7/Button_referencesR.png",
      "speedTip": "<references/>",
      "tagOpen": "<references/>",
      "tagClose": "",
      "sampleText": ""};
};

// --------- tohle má vypnout klávesové zkratky altgr+X---------
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() { removeAccessKeys(null); });

importScript('User:TheDJ/Gadget-HotCat.js');