Utilisateur:Pachycephale/monobook.js
Note : après avoir enregistré la page, vous devrez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
Mozilla / Firefox / Konqueror / Safari : maintenez la touche Majuscule (Shift) en cliquant sur le bouton Actualiser (Reload) ou pressez Maj-Ctrl-R (Cmd-R sur Apple Mac) ;
Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.importScript('User:EDUCA33E/LiveRC.js');
obtenir("OptimizedSuivi");
obtenir("BistroDuJour");
/////////////////////////////////////////////////////////////
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("- lien ext")
titles.push("ménage")
titles.push("typo")
titles.push("section")
titles.push("+ lien int")
titles.push("+ ébauche")
titles.push("+ portail")
titles.push("+ cat")
titles.push("+ interwiki")
titles.push("corr lien int")
titles.push("MeP")
titles.push("style")
titles.push("ortho/gram")
titles.push("retouches")
titles.push("ajInfo")
titles.push("neutre")
titles.push("+ réf")
titles.push("mise en forme réf")
var inputs = new Array()
inputs.push("- lien externe")
inputs.push("/ ménage dans les liens externes")
inputs.push("/ typographie")
inputs.push("/ sectionnement")
inputs.push("+ lien interne")
inputs.push("+ ébauche")
inputs.push("+ portail")
inputs.push("+ catégorie")
inputs.push("+ liens interwiki")
inputs.push("/ correction lien interne")
inputs.push("/ mise en page")
inputs.push("/ style et tournures de phrase")
inputs.push("/ correction orthographe et/ou grammaire")
inputs.push("/ diverses retouches")
inputs.push("/ ajout d’infos")
inputs.push("/ neutralisation")
inputs.push("/ ajout de références")
inputs.push("/ mise en forme références")
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
}
}
$(DeluxeSummary)
////////////////////////////////////////////////////////