User:KirkEN/monobook.js

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(["+ New category", "typo", "+ Iw"]); });

// - custom edit toolbar - if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/42/Buttonsablona.png", "speedTip": "Šablona", "tagOpen": "\x7b\x7b", "tagClose": "}}", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png", "speedTip": "Nedělitelná mezera", "tagOpen": " ", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b4/Button_category03.png", "speedTip": "Kategorie", "tagOpen": "[[Category:",     "tagClose": "]]", "sampleText": ""}; };