Utilisateur:Rhizome/monobook.js
Apparence
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.//<pre><nowiki>
importScript('User:EDUCA33E/LiveRC.js');
obtenir("CatsaGauche");
obtenir("DeluxeBar");
obtenir("CopyScape");
obtenir("RevertDiff");
obtenir("OptimizedSuivi");
// [[:en:User:Lupin/popups.js]]
// Traduction de [[Utilisateur:Leag/Navigation popups]]
importScript('MediaWiki:Gadget-Popups.js');
// Auteur : Anakin
// Dernière mise à jour : 11 décembre 2005
function CategoryTree()
{
var element = document.getElementById('ca-nstab-category');
if (element)
{
var categoryname = element.firstChild.href;
categoryname = categoryname.substring(7);
var wikiname = categoryname.substring(0, categoryname.indexOf('.'));
var indexofname = categoryname.indexOf(":") + 1;
categoryname = categoryname.substring(indexofname);
var indexofampersand = categoryname.indexOf("&");
if (indexofampersand != -1)
categoryname = categoryname.substring(0, indexofampersand);
var li = document.createElement('li');
li.id = 'ca-categorytree';
var a = document.createElement('a');
a.appendChild(document.createTextNode("Arborescence"));
a.href = 'http://tools.wikimedia.de/~daniel/WikiSense/CategoryTree.php?wikilang=fr&wiki=' + wikiname + '&art=on&cat=' + categoryname;
li.appendChild(a);
document.getElementById('ca-nstab-category').parentNode.appendChild(li);
}
}
$(CategoryTree);
/*
* Résumé Deluxe
*
* Ajoute des commentaires de modification prédéfinis
*
* Auteur : Dake
* Contributions : Pabix, Tieno
* Date de dernière révision : 12 novembre 2006
*/
//////////////////////ZONE PERSONNALISABLE//////////////////////
var resumedeluxeTitles = new Array();
with (resumedeluxeTitles) {
push("revert");
push("+ corrections orthographe");
push("+ corrections typographie");
push("+ titres en italique");
push("+ conventions bibliographiques");
push("+ conventions typographiques");
push("+ correction lien interne");
push("+ correction lien rouge");
push("+ diverses retouches");
push("+ catégorisation");
push("+ interwiki");
push("+ wikification");
push("+ homonymie");
push("+ image");
push("+ Lien vers page d'homonymie");
}
var resumedeluxeInputs= new Array();
with (resumedeluxeInputs) {
push("revert");
push("corrections orthographe");
push("corrections typographie");
push("titres en italique");
push("conventions bibliographiques");
push("conventions typographiques");
push("correction lien interne");
push("correction lien rouge");
push("diverses retouches");
push("catégorisation");
push("interwiki");
push("wikification");
push("lien vers page d'homonymie");
push("image");
push("Lien vers page d'homonymie");
}
/////////////////FIN DE LA ZONE PERSONNALISABLE/////////////////
function setSummary(str)
{
document.editform.wpSummary.value = str;
}
function addToSummary(str)
{
var resum = document.editform.wpSummary.value;
if(resum != 0 && resum.indexOf("*/") < resum.length - 3) {
document.editform.wpSummary.value += " + ";
}
document.editform.wpSummary.value += str;
}
function DeluxeSummary()
{
var sumLbl = document.getElementById("wpSummaryLabel");
if(sumLbl) {
var sumInput = document.getElementById("wpSummary");
sumInput.style.width = "95%";
var str = "Messages prédéfinis : ";
for(var cpt = 0; cpt < resumedeluxeTitles.length; cpt ++) {
str += "<a href=\"javascript:addToSummary('" +resumedeluxeInputs[cpt] + "')\""
+ " class=\"sumLink\" title=\"Ajouter '" +resumedeluxeInputs[cpt] +"' dans la boîte de résumé\">"
+ resumedeluxeTitles[cpt]
+ "</a> ";
}
sumLbl.innerHTML = str + "<br />" + sumLbl.innerHTML;
}
}
$(DeluxeSummary);
//</nowiki></pre>