Utilisateur:Super10/LiveRCparam.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) ;
Firefox (sur GNU/Linux) / Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.//<syntaxhighlight lang="javascript">//<pre>//<nowiki>
// Personnalisation pour LiveRC
/* ** Variables ** */
function LiveRC_getUserCustom(){
// -- Résumés de révocation --
try{
defineCustomRevertMessages([
{'resume':'[[Wikipédia:Bac à sable|Bac à sable]]','text':'Bac à sable'},
{'resume':'[[Wikipédia:Vandalisme|Vandalisme]]','text':'Vandalisme'},
{'resume':'Retrait d’information non sourcée','text':'Non-sourcé'},
{'resume':'Traduction automatique','text':'Trad auto'},
{'resume':'Suppression injustifié','text':'Suppression injustifé'},
{'resume':'Gaminerie','text':'Gaminerie'}
]);
}catch(e){ }
// -- Modèles de bandeaux --
try{
Custom_lstBando = [
{'template':'Admissibilité à vérifier','string':'admissibilité','withDate':'$month $year'},
{'template':'Copie à vérifier','string':'copyvio','withDate':''},
{'template':'À sourcer','string':'à sourcer','withDate':'$month $year'},
{'template':'À wikifier','string':'à wikifier','withDate':'$month $year'},
{'template':'Sources secondaires','string':'sources secondaires','withDate':'$month $year'},
{'template':'Sources à lier','string':'sources à lier','withDate':'$month $year'},
{'template':'À délister','string':'à délister','withDate':'$month $year'},
{'template':'Rédaction','string':'rédaction','withDate':'$month $year'},
{'template':'Travail inédit','string':'TI','withDate':''},
{'template':'Règle des 3 révocations','string':'R3R','withDate':''},
{'template':'Suppression imédiate','string':'SI','withDate':''}
];
}catch(e){ }
// -- Paramètres pour test selon les commentaires de modification --
try{
defineCustomCommentTests([
{'state':'REVERT','icon':'RevertIcon','class':'RcRevert','regex':'(Live|Patrouille) *(RC)?( : )?Révocation |([Bb]ot : )?[Aa]nnulation des modifications|([Bb]ot : )?[Rr]évocation de |^(Undid|Revert to( the)?) revision|^(Undoing|Reverted( d+)?) edit|^r(e)?v(ert(ing|ed)?)?','hide':false},
{'state':'BLANKING','icon':'BlankingIcon','class':'RcBlanking','regex':'^Résumé automatique : blanchiment|^[Bb]lanchi|(Live|Patrouille) *(RC)?( : )?Blanchiment','hide':false},
{'state':'REPLACED','icon':'ReplacedIcon','class':'RcReplaced','regex':'^Résumé automatique : contenu remplacé par','hide':false},
{'state':'REDIRECTED','icon':'RedirectedIcon','class':'RcRedirected','regex':'^Page redirigée vers|^#REDIRECT','hide':false},
{'state':'WPCLEANER','icon':'WPCIcon','class':'RcWPC','regex':'(WPCleaner|Correction syntaxique)','hide':false},
{'state':'AWB','icon':'AWBIcon','class':'RcAWB','regex':'(AWB|AutoWikiBrowser)','hide':false},
{'state':'B_PORTAIL','icon':'BandeauxPortailsIcon','class':'RcBandeauxPortails','regex':'BandeauxPortails','hide':false},
{'state':'B_EBAUCHE','icon':'BandeauxEbauchesIcon','class':'RcBandeauxEbauches','regex':'BandeauxEbauches','hide':false},
{'state':'HOTCAT','icon':'HotCatIcon','class':'RcHotCat','regex':'(HotCatsMulti|HotCat|Hotcat)','hide':false},
{'state':'LRC','icon':'LRCIcon','class':'RcLRC','regex':'(Live|Patrouille) *(RC)?','hide':false},
{'state':'POPUPS','icon':'PopupsIcon','class':'RcPopups','regex':'(P|p)opups','hide':false},
{'state':'CATRENAME','icon':'CatRenameIcon','class':'RcCatRename','regex':'Renommage de catégorie','hide':false}
]);
}catch(e){ }
}
/* ** Extensions ** */
//EXTENSIONS SETUP : |UserWarningsExtension|
// -- UserWarningsExtension : Ajoute une icône aux utilisateurs ayant reçu un avertissement. En option, indique si la page de discussion de l’utilisateur existe ou non. --
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-LiveRC.js/Extensions/UserWarningsExtension.js&action=raw&ctype=text/javascript');
//END PARAMS
//</nowiki></pre></syntaxhighlight>
// {{Catégorisation JS}}