Utilisateur:Linedwell/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 ** */
window.LiveRC_getUserCustom = function(){
lrcDisplayDebug('getUserCustom');
// -- Paramètres de LiveRC --
try{
addCustomParam("TZ", '+02:00');
}catch(e){ }
// -- Options au démarrage de LiveRC --
try{
addCustomOption("Log_patrol", false);
}catch(e){ }
// -- Icônes utilisées par LiveRC --
try{
addCustomIcon("SysopIcon", { 'type' : 0 , 'src' : 'thumb/2/2c/Broom_icon.svg/16px-Broom_icon.svg.png' , 'width' : 16 , 'height' : 16 });
}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 ** */
LiveRC_Config['UsedLiveRCExtensions'] = [
'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.
'DiffExtension', // Permet d’avoir les fonctions automatiques de LiveRC dans les diff "normaux"
'MarkQuestionable' // Instaure un système de modifications marquées comme douteuses
];
//END PARAMS
//</nowiki></pre></syntaxhighlight>
// {{Catégorisation JS}}