Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* <pre> скрипт позволяващ добавяне на бутони в тулбара */
 
function DeluxeBar() {
  if (document.createTextNode) {
        var toolbar = document.getElementById("toolbar"); 
        if (!toolbar) return;
 
 
        var messages = new Array()
        var images = new Array()
        var title = new Array()
        var commentaires = new Array()
        var a=-1; // Броенето започва от -1, като се увеличава още на първото съобщение, за да избегне проблеми при изтриване му
 
        ////////////////////////////////
        //// зона за персонализация ////
        ////////////////////////////////
 
        // текстът е "сплитнат", за да се избегне конфликт с МедияУики
 
        messages[++a] = ["["+"[bg:", "]]"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "[[bg:...]]     " 

        messages[++a] = ["|", ""];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "чертица |     " 

        messages[++a] = ["["+"[", "|]]"]
        images[a] = "";
        commentaires[a] = ""
        title[a] = "[[ |...]]     " 

        messages[++a] = ["{"+"{lang-bg|", "}}"];
        images[a] = "";
        commentaires[a] = ""
        title[a] = "{{lang-bg|...}}     "   



        ////////////////////////////////
        // край на персонализацията
        ////////////////////////////////
 
        for (var i=0;i<messages.length;i++) {
                var img = document.createElement("img");
                img.setAttribute("src", images[i]);
 
                var ref = document.createElement("a");
                ref.setAttribute("href", "javascript:insertTags(\"" + messages[i][0] + "\", \"" + messages[i][1] + "\", '');" +
                                 "javascript:changeSummary(\"" + commentaires[i] + "\");" ); 
                ref.setAttribute("title", "" + commentaires[i] + "" ); 
                //ref.appendChild(img); 
                ref.appendChild(document.createTextNode(title[i]));
 
                toolbar.appendChild(ref);
        }
  }
}
 
function changeSummary(sampleText) {
        document.editform.wpSummary.value = sampleText;
}
 
hookEvent('load', DeluxeBar);
 
/*  край на скрипта позволяващ добавяне на бутони в тулбара
</pre>*/