User:Juandev/monobook.js

From Wikimedia Incubator

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// --------- 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": "{{chybí 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": "",
      "tagClose": "",
      "sampleText": " °C"};
 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": "",
      "tagClose": "",
      "sampleText": "<references/>"};
};

// --------- 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");
addOnloadHook(function() { removeAccessKeys(null); });

<!--this monobook was copied from: http://cs.wikipedia.org/wiki/Wikipedista:Juan_de_Vojn%C3%ADkov/monobook.js-->