Aller au contenu

Utilisateur:GrandCelinien/LiveRCparam.js

Une page de Wikipédia, l'encyclopédie libre.
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.
//<source lang="javascript">//<pre>//<nowiki>

// Personnalisation pour LiveRC

/* ** Variables ** */

window.LiveRC_getUserCustom = function(){
  lrcDisplayDebug('getUserCustom');


  // -- Paramètres de LiveRC --

  try{
    addCustomParam("TZ", '+02:00');
    addCustomParam("lrcXUWColorNoTalk", '#298A08');
    addCustomParam("lrcXUWColorRecentTalk", '#B404AE');
    addCustomParam("lrcXUWColorRecentWarning", '#B40404');
  }catch(e){ }


  // -- Options au démarrage de LiveRC --

  try{
    addCustomOption("LiveRCFollowDisplayed", false);
  }catch(e){ }


  // -- 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' : 'Ajout de contenu non encyclopédique' , 'text' : 'Non Encylo' }
    ]);
  }catch(e){ }


  // -- Modèles d’avertissement --

  try{
    defineCustomWarningTemplates([
      { 'template' : 'Test 0' , 'string' : 'Test 0' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Test 1' , 'string' : 'Test 1' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Test 2' , 'string' : 'Test 2' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Test 3' , 'string' : 'Test 3' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Seul avertissement' , 'string' : 'Test 4' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Retrait injustifié' , 'string' : 'Retrait injustifié' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Motivation modif' , 'string' : 'Résumé' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'LE HC' , 'string' : 'LE hors-critères' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'LE dans texte' , 'string' : 'LE dans texte' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Spammeur' , 'string' : 'Spam' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Ortho' , 'string' : 'Ortho' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Ajout POV' , 'string' : 'Non-neutre' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Non-encyclo' , 'string' : 'Non-encyclo' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Faut sourcer' , 'string' : 'Faut sourcer' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Maladresse' , 'string' : 'Modif corrigée' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Suppr Bandeaux' , 'string' : 'Bandeaux' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue Copyvio 1' , 'string' : 'Copyright' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Compte publicitaire' , 'string' : 'PU publicitaire' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'BSI CAA' , 'string' : 'BSI CAA' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'BSI BàS' , 'string' : 'BSI BàS' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'BSI promo' , 'string' : 'BSI promo' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'BSI canular' , 'string' : 'BSI canular' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Aide sources' , 'string' : 'Aide sources' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Aide images' , 'string' : 'Aide images' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Aide wikification' , 'string' : 'Aide wikif' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Aide liens' , 'string' : 'Aide liens' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/Promo' , 'string' : 'Aide BandoPromo' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/RefLié' , 'string' : 'Aide BandoRefLié' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/RefSec' , 'string' : 'Aide BandoRefSec' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/TI' , 'string' : 'Aide BandoTI' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/Delist' , 'string' : 'Aide BandoDelist' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue' , 'string' : 'Bienvenue' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue IP' , 'string' : 'Bienvenue IP' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue IP méritante' , 'string' : 'Bienvenue IP +' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Merci IP' , 'string' : 'Merci IP !' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Test ?' , 'string' : 'Modification douteuse ' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'vandalisme cracra' , 'string' : 'Vandalisme vulgaire' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide:créer un article' , 'string' : 'Aide créer article' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false }
    ]);
  }catch(e){ }


  // -- Modèles de bandeaux --

  try{
    defineCustomTagTemplates([
      { '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 Immédiate|Non encyclopédique en l\'état|[[utilisateur:GrandCelinien|GrandCelinien]]' , 'string' : 'SI non encyclo' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|Ne répond pas aux critères d\'admissibilité de Wikipédia|[[utilisateur:GrandCelinien|GrandCelinien]]' , 'string' : 'SI CAA' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|Bac à sable, test de débutant|[[utilisateur:GrandCelinien|GrandCelinien]]' , 'string' : 'SI BàS' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|Vandalisme|[[utilisateur:GrandCelinien|GrandCelinien]]' , 'string' : 'SI Vandalisme' , 'withDate' : '' },
      { 'template' : 'Suppression Immédiate|Copie de site web sans autorisation explicite|[[utilisateur:GrandCelinien|GrandCelinien]]' , 'string' : 'SI Copyvio' , 'withDate' : '' },
      { 'template' : 'Traduction incomplète' , 'string' : 'Trad' , 'withDate' : '' }
    ]);
  }catch(e){ }


  // -- Textes traduisibles --

  try{
    addCustomTradToTranslatedTexts("LiveRC_Launched_mission", { 'fr' : 'Votre mission : Protéger et servir WP !' });
    addCustomTradToTranslatedTexts("LiveRC_Launched_goodluck", { 'fr' : 'Comme un roc, <i>$1</i>!' });
  }catch(e){ }


  // -- Textes non traduisibles --

  try{
    addCustomUnTranslatedText("RESUMESTART", '[[WP:PRC|Patrouille]] : ');
  }catch(e){ }


  // -- Paramètres pour test selon les commentaires de modification --

  try{
    defineCustomCommentTests([
      { 'state' : 'REVERT' , 'icon' : 'RevertIcon' , 'class' : 'RcRevert' , 'regex' : /(Live|Patrouille)? *(RC)?( : )?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)?)?\b|^La dernière modification du texte .* a été rejetée/ , '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.
    'MostModifiedPagesExtension', // Ajoute une icône aux pages ayant été modifiées récemment par plusieurs utilisateurs ou ayant fait l’objet de plusieurs reverts.
    'LinkOnIconExtension',        // Lie les icônes PàS, AdQ, BA et copyvio aux pages de discussion associées.
    '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></source>

// {{Catégorisation JS}}