Utilisateur:Rémih/monobook.js
Un article de Wikipédia, l'encyclopédie libre.
Note : Après avoir sauvegardé, vous devez forcer le rechargement de la page pour voir les changements : Mozilla / Konqueror / Firefox : Shift-Ctrl-R, IE / Opera : Ctrl-F5, Safari : Cmd-R.
/*************************** *Historique en couleur avec icones (voir monobook.css aussi) ***************************/ document.write('<script type="text/javascript" src="' + 'http://fr.wikipedia.org/w/index.php?title=Utilisateur:GôTô/objects.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); document.write('<script type="text/javascript" src="' + 'http://fr.wikipedia.org/w/index.php?title=Utilisateur:Dake/monobook.js/deluxehistory.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); /*************************** *Bouton « Revert » ***************************/ obtenir("RevertDiff"); /*************************** *Onglet « Modifier 1er paragraphe » ***************************/ obtenir("EditZeroth"); /*************************** *Lien « Bistro du jour et Oracle» ***************************/ function TodayDate() { m = new Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"); today = new Date(); day = today.getDate(); year = today.getYear(); if (year < 2000) year = year + 1900; return (day + " " + m[today.getMonth()] + " " + year); } function Bistro_Oracle() { var a = document.getElementById("p-navigation"); if (a) { b = a.getElementsByTagName("ul"); if(b.length > 0) { b[0].innerHTML = b[0].innerHTML + '<li><a style="display: inline" id="n-bistro" title="Wikipédia:Le Bistro" href="/wiki/Wikipédia:Le_Bistro/' + TodayDate() + '">Le Bistro</a>, <a style="display: inline" id="n-bistro" title="Oracle" href="/wiki/Wikipédia:Oracle">Oracle</a>' + '</li>' } } } addLoadEvent(Bistro_Oracle); // /*************************** *Onglet « Purger le cache » ***************************/ obtenir("OngletPurge"); /*************************** *Modifications courantes dans la boite de résumé ***************************/ <!--AJOUT DE BOUTONS POUR COMMENTER LES MODIFICATIONS COURANTES LORS D'UNE MODIFICATION--> function addToSummary(str) { document.editform.wpSummary.value += " " + str } function DeluxeSummary() { var sumLbl = document.getElementById("wpSummaryLabel") if (sumLbl) { //élargissement boite de résumé var sumInput = document.getElementById("wpSummary") sumInput.style.width = "90%" var titles = new Array() titles.push("ajout infos") titles.push("style") titles.push("wikification") titles.push("mise en page") titles.push("ébauche") titles.push("intro") titles.push("article connexe") titles.push("lien externe") titles.push("référence") titles.push("portail") titles.push("cat") titles.push("interwiki") titles.push("image") titles.push("correction homonymie") var inputs = new Array() inputs.push("ajout d’infos") inputs.push("style") inputs.push("wikification") inputs.push("mise en page") inputs.push("{{ébauche}}") inputs.push("intro") inputs.push("article connexe") inputs.push("lien externe") inputs.push("référence") inputs.push("portail") inputs.push("catégorie") inputs.push("interwiki") inputs.push("image") inputs.push("correction homonymie") var str = "" for (var cpt = 0; cpt < titles.length; cpt ++) { str += "<a href=\"javascript:addToSummary('" + inputs[cpt] + "')\"" + " class=\"sumLink\" title=\"Ajouter '" + inputs[cpt] +"' dans la boîte de résumé\">" + titles[cpt] + " ·</a> " } sumLbl.innerHTML = str + "<br />" + sumLbl.innerHTML } } addLoadEvent(DeluxeSummary)