Utilisateur:Punawa/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) ;
Firefox (sur GNU/Linux) / Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.document.write('<script type="text/javascript" src="'
+ 'http://fr.wiki.x.io/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.wiki.x.io/w/index.php?title=Utilisateur:Dake/monobook.js/deluxehistory.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/* Lien Editcount */
var tabAction = "p-cactions";
function addECButton()
{
if ( window.location.href.indexOf('Contributions') < 0) return;
var c = document.getElementById('contentSub');
var a = c.getElementsByTagName('a');
name = a[0].innerHTML;
var l = document.getElementById(tabAction);
t = l.innerHTML;
ind = t.toLowerCase().indexOf("</ul>");
before = t.substring(0,ind);
after = t.substring(ind);
pitem = "<li><a href='http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user="+escape(name)+"&dbname=frwiki_p'>"+
"<div id='EditCount' style='display:inline;'>" +
"Editcount" +
"</div></a></li>";
l.innerHTML = before + pitem + after ;
}
$(addECButton);
//<source lang="javascript" line>
/*
* Deluxe Bar
*
* Barre d'outils d'édition étendue
*
* Auteur : Dake
* Dernière révision : 3 novembre 2006
*/
//////////////////////ZONE PERSONNALISABLE//////////////////////
var deluxebarMessages = new Array();
var deluxebarImages = new Array();
var deluxebarCommentaires = new Array();
with (deluxebarMessages) {
push("{{subst:" + "Bienvenue sur ta page" + "}}" + "~~" + "~~");
push("{{subst:" + "Bienvenue" + "}}" + "~~" + "~~");
push("{{subst:" + "Vandale bloqué" + "}}" + "~~" + "~~");
push("{{subst:" + "Vandalisme|page" + "}}" + "Veuillez bien lire [[WP:CAA|les critères d'admissibilité des articles]] avant de continuer. Merci, " + "~~" + "~~");
push("{{subst:" + "Bienvenue spammeur" + "}}" + "~~" + "~~");
push("{{subst:" + "Fait}}" + "~~" + "~~");
push("{{subst:" + "Test 0}}" + "~~" + "~~");
push("{{subst:" + "Test 1}}" + "~~" + "~~");
push("{{subst:" + "Test 2}}" + "~~" + "~~");
push("{{subst:" + "Test 2+}}" + "~~" + "~~");
push("{{subst:" + "Test 3}}" + "~~" + "~~");
push("== Notes et références ==" + "{{Traduction/Référence|en|Nom_Article|NUM_ident|type=note}}" + "<references/>");
push("{{subst:" + "Copieur|Nom_Article|Lien_du_Copyvio|pays=fr}}" + "~~" + "~~");
}
with (deluxebarImages) {
push("http://up.wiki.x.io/wikipedia/fr/1/12/Button_accueilA.png");
push("http://up.wiki.x.io/wikipedia/fr/e/eb/Button_accueilB.png");
push("http://up.wiki.x.io/wikipedia/fr/0/00/Button_vandale.png");
push("http://up.wiki.x.io/wikipedia/fr/a/ad/Button_vandale2.png");
push("http://up.wiki.x.io/wikipedia/fr/f/fb/Button_spam2.png");
push("http://up.wiki.x.io/wikipedia/fr/d/d9/Button_trait%C3%A9.png");
push("http://up.wiki.x.io/wikipedia/commons/f/f0/Bouton_Vandale0.png");
push("http://up.wiki.x.io/wikipedia/commons/1/1d/Bouton_Vandale1.png");
push("http://up.wiki.x.io/wikipedia/commons/c/cc/Bouton_Vandale2.png");
push("http://up.wiki.x.io/wikipedia/commons/e/e4/Bouton_Vandale3.png");
push("http://up.wiki.x.io/wikipedia/commons/7/7e/Bouton_Vandale4.png");
push("http://up.wiki.x.io/wikipedia/fr/e/e5/Button_copyvio.png");
push("http://up.wiki.x.io/wikipedia/commons/1/1d/Red_copyright.svg");
}
with (deluxebarCommentaires) {
push("Bienvenue sur ta page !");
push("Bienvenue !");
push("Blocage d'un vandale");
push("Avertissement vandalisme");
push("Avertissement spam" );
push("Fait");
push("Test0");
push("Test1");
push("Test2");
push("Test2+");
push("Test3");
push("Traduction");
push("copyvio");
}
/////////////////FIN DE LA ZONE PERSONNALISABLE/////////////////
function DeluxeBar() {
if (document.createTextNode) {
var toolbar = document.getElementById("toolbar");
if (!toolbar) return;
for (var i=0;i<deluxebarMessages.length;i++) {
var img = document.createElement("img");
img.setAttribute("src", deluxebarImages[i]);
var ref = document.createElement("a");
ref.setAttribute("href", "javascript:insertTags('', \"" + deluxebarMessages[i] + "\", '');" +
"javascript:changeSummary(\"" + deluxebarCommentaires[i] + "\");" );
ref.appendChild(img);
toolbar.appendChild(ref);
}
}
}
function changeSummary(sampleText) {
var resum = document.editform.wpSummary.value;
if(resum != 0 && resum.indexOf("*/") < resum.length - 3) {
document.editform.wpSummary.value += " - ";
}
document.editform.wpSummary.value += sampleText;
}
$(DeluxeBar);
//</source>{{Catégorisation JS}}
//[[Image:ResumeDeluxe JS.png|center|Illustration]]<source lang="javascript" line="">
/*
* 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("orthographe");
push("- typographie");
push("- catégorisation");
push("- interwiki");
push("- wikification");
push("- image");
push("- redirection");
push("- style");
push("- revert");
push("- page blanchie");
push("- pub");
push("- maintenance");
push("- spam");
push("- vandalisme");
push("- copyvio");
push("- non encyclopédique");
}
var resumedeluxeInputs= new Array();
with (resumedeluxeInputs) {
push("orthographe");
push("typographie");
push("catégorisation");
push("interwiki");
push("wikification");
push("image");
push("redirection");
push("style");
push("revert");
push("(Page Blanchie)");
push("pub");
push("maintenance");
push("spam");
push("vandalisme");
push("copyvio");
push("non encyclopédique");
}
/////////////////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 ++) {
var tmp = resumedeluxeInputs[cpt];
str += "<a href=\"javascript:addToSummary('" + tmp.replace( /[']/g , "\\'") + "')\""
+ " class=\"sumLink\" title=\"Ajouter dans la boîte de résumé\">"
+ resumedeluxeTitles[cpt]
+ "</a> ";
}
sumLbl.innerHTML = str + "<br />" + sumLbl.innerHTML;
}
}
$(DeluxeSummary);
//</source>{{Catégorisation JS}}
obtenir("OptimizedSuivi");
obtenir("BistroDuJour");
obtenir("HotCats");