User:Juandev/monobook.js

// - custom edit toolbar - if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/01/Button_no_source.png", "speedTip": "Welcome", "tagOpen": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/8d/Button_no_source_no_license.png", "speedTip": "Welcomeanon", "tagOpen": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/33/Button_exclamation.png", "speedTip": "Test", "tagOpen": "", "sampleText": ""}; 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/7/71/TableCell.png", "speedTip": "Svislík", "tagOpen": "|", "tagClose": "", "sampleText": ""}; 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": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f7/Button_referencesR.png", "speedTip": " ", "tagOpen": " ", "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); }

function loadScript(url) {  var e = document.createElement("script"); e.src = url; e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); }

function addSummaryToolbar_Tl(items) { var elem = document.getElementById('editpage-copywarn'); if (elem == null) return; if (document.getElementById('summarytools') != null) return; var addedBox = " Shrnutí editace "; var firstOnLine = true; for (var i = 0; i < items.length; i++) { if (items[i] == "") { addedBox += " "; firstOnLine = true; } else { if (!firstOnLine) addedBox += " &bull; "; firstOnLine = false; addedBox += "" + items[i] + ""; }	}	addedBox += " "; elem.innerHTML = addedBox + elem.innerHTML; }

// nastavení shrnutí editace function setWpSummary_Tl(str) { var eSummary = document.getElementById('wpSummary'); if (eSummary != null) eSummary.value = eSummary.value + str; }

loadScript("http://cs.wikipedia.org/w/index.php?title=Wikipedista:Mormegil/tools.js&action=raw&ctype=text/javascript&dontcountme=s");

$(function { addFindAndReplaceToolbar });

$(function { addSummaryToolbar_Tl([",", "typo", "+interwiki", "+kategorie", "upravit", "experimenty", "experimenty2"]); }); loadScript("http://cs.wikipedia.org/w/index.php?title=Wikipedista:Mormegil/tools.js&action=raw&ctype=text/javascript&dontcountme=s");

/* Darkcode's skin importer */ importStylesheet("User:"+wgUserName+"/"+wgPageName+".css");