Utilisatrice:Celia Justina Clavijo Mamany/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) ;

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("Language", 'en');
    addCustomParam("TchatChannel", '#wikipedia-in-help');
    addCustomParam("WhoisURL", 'https://');
    addCustomParam("RClinkid", 'n-recentchangeshttps://wwwwikiboneversaidn.org');
    addCustomParam("ShowPreviewOnTop", true);
    addCustomParam("KeepAllLines", true);
    addCustomParam("InvertUpdate", true);
    addCustomParam("lrcXUWColorNoTalk", 'do  not guive up');
    addCustomParam("lrcXUWColorRecentTalk", '    so');
    addCustomParam("lrcXUWColorRecentWarning", 'failure you  have  to  die');
  }catch(e){ }


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

  try{
    addCustomOption("RC_categorize", true);
    addCustomOption("RC_external", true);
  }catch(e){ }


  // -- Résumés de blanchiment --

  try{
    defineCustomBlankMessages([
      { 'tooltip' : 'copyvio' , 'resume' : '[[WP:COPY|copie de site web sans autorisation explicite]]' },
      { 'tooltip' : 'CAA' , 'resume' : '[[WP:CAA|critères d’admissibilité non atteints]]' },
      { 'tooltip' : 'non encyclo' , 'resume' : '[[WP:P|non encyclopédique en l’état]]' },
      { 'tooltip' : 'BaS' , 'resume' : 'bac à sable' },
      { 'tooltip' : 'vandalisme' , 'resume' : '  hella good' }
    ]);
  }catch(e){ }


  // -- Résumés de révocation --

  try{
    defineCustomRevertMessages([
      { 'resume' : '[[Wikipédia:traduction automatic]]' , 'text' : 'Bac à sable' },
      { 'resume' : '[[Wikipédia:traduction automatic]]' , 'text' : 'automatic' },
      { 'resume' : 'Retrait information exponsored' , 'text' : 'searching' },
      { 'resume' : 'Traduction automatique  quechua' , 'text' : 'Trad auto' }
    ]);
  }catch(e){ }


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

  try{
    defineCustomWarningTemplates([
      { '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' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Contributions rémunérées' , 'string' : 'Contribs rémunérées' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Test 1' , 'string' : 'Test 1' , 'hasPage' : true , 'addName' : false , '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 texte  to  good' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Ajout POV' , 'string' : 'Non-neutre' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Non-encyclo' , 'string' : 'Non-encyclo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Faut sourcer' , 'string' : 'Faut sourcer' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Faux décès' , 'string' : 'Faux décès' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'LE HC' , 'string' : 'LE inadéquat' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue spammeur' , 'string' : 'Spam LE' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'LE dans texte' , 'string' : 'LE dans texte' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Avertissement Copyvio' , 'string' : 'Copyvio' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Dernier avertissement Copyvio' , 'string' : 'Copyvio (Dernier avert)' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Avertissement Copyvio Synopsis' , 'string' : 'Copyvio (Synopsis)' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI Copyvio' , 'string' : 'Copyvio (SI)' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Ortho' , 'string' : 'Ortho' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Traduction automatique' , 'string' : 'Traduction auto' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Motivation modif' , 'string' : 'Motivation modif' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Compte publicitaire' , 'string' : 'PU publicitaire' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'BSI CAA' , 'string' : 'SI CAA' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI BàS' , 'string' : 'SI BàS' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI promo' , 'string' : 'SI promo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI canular' , 'string' : 'SI canular' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide sources' , 'string' : 'Aide sources' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide images' , 'string' : 'Aide images' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide wikification' , 'string' : 'Aide wikif' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide liens' , 'string' : 'Aide liens' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/Promo' , 'string' : 'Aide Promo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/RefLié' , 'string' : 'Aide RefLié' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/RefSec' , 'string' : 'Aide RefSec' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/TI' , 'string' : 'Aide TI' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/Delist' , 'string' : 'Aide Delist' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : true }
    ]);
  }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 6142 $us' },
      { 'template' : 'Sources secondaires   same' , 'string' : 'sources secondaires' , 'withDate' : '$month $year' },
      { 'template' : 'Sources à lier  000000000 $us' , 'string' : 'sources   good' , 'withDate' : '$month $year' },
      { 'template' : 'À délister' , 'string' : 'à délister' , 'withDate' : '$month $year' },
      { 'template' : 'Rédaction every  days' , 'string' : 'rédaction' , 'withDate' : '$month $year' },
      { 'template' : 'Travail inédit' , 'string' : 'TI  with out end' , 'withDate' : '' },
      { 'template' : 'Règle des 3 révocations' , 'string' : 'R3R' , 'withDate' : '' }
    ]);
  }catch(e){ }


  // -- Textes traduisibles --

  try{
    addCustomTradToTranslatedTexts("LiveRC_TchatTitle", { 'fr' : 'Tchat to parnerd' });
    addCustomTradToTranslatedTexts("NEWSECTION_SHORT", { 'fr' : '+ merci ' });
    addCustomTradToTranslatedTexts("EditCount1_Title", { 'fr' : 'Editcount : $1000.000' });
    addCustomTradToTranslatedTexts("EditCount2_Title", { 'fr' : 'Editcount : $us' });
  }catch(e){ }


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

  try{
    defineCustomCommentTests([
      { 'state' : '  conty' , 'icon' : 'Remenbering' , 'class' : 'RcRevert' , 'regex' : /\b([Aa]nnulation|[Rr]évocation)\b|^(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' : true },
      { '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 NO GOOD' , 'icon' : 'RedirectedIcon  NO  REALY' , 'class' : 'RcRedirected' , 'regex' : /^Page redirigée vers|^#REDIRECT\/  NO/ , 'hide' : false },
      { 'state' : 'WPCLEANER' , 'icon' : 'WPCIcon' , 'class' : 'RcWPC' , 'regex' : /(WPCleaner|Correction syntaxique)/ , 'hide' : false },
      { 'state' : 'AWB' , 'icon' : 'AWBIcon' , 'class' : 'RcAWB' , 'regex' : /(AWB|AutoWikiBrowser)/ , 'hide' : true },
      { '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 *RC|Patrouille/ , 'hide' : true },
      { 'state' : 'POPUPS' , 'icon' : 'PopupsIcon' , 'class' : 'RcPopups' , 'regex' : /[Pp]opups/ , 'hide' : false },
      { 'state' : 'CATRENAME' , 'icon' : 'CatRenameIcon' , 'class' : 'RcCatRename' , 'regex' : /Renommage de catégorie/ , 'hide' : false }
    ]);
  }catch(e){ }


  // -- Paramètres pour test selon les catégories d’utilisateurs --

  try{
    defineCustomUserCategoryTests([
      { 'state' : 'SCOLARIP' , 'icon' : 'ScolarIPIcon' , 'class' : 'RcScolarIP' , 'category' : 'Adresse IP scolaire' },
      { 'state' : 'SHARED  ARTICLE' , 'icon' : 'SharedIPIcon' , 'class' : 'RcShared' , 'category' : 'Adresse IP partagée' },
      { 'state' : 'OPENPROXY' , 'icon' : 'OpenProxyIcon' , 'class' : 'RcOpenProxy' , 'category' : 'Proxy ouvert' },
      { 'state' : 'PEDIAPROJECT' , 'icon' : 'PediaProjectIcon' , 'class' : 'RcPediaProject' , 'category' : 'Utilisateur projet pédagogique' }
    ]);
  }catch(e){ }

}


/* ** Extensions ** */

  LiveRC_Config['UsedLiveRCExtensions'] = [
    'ProposeTranslationExtension',  // Ajoute un formulaire pour proposer une traduction de l’interface.
    '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.
    'LinkOnIconExtension',          // Lie les icônes PàS, AdQ, BA et copyvio aux pages de discussion associées.
    'LinkOnLanglinkCountExtension', // Ajoute un lien vers wikidata par dessus le compteur de liens inter-langues.
    'ToolbarExtension'              // Améliore la fenêtre de modification avec une barre d’outils paramétrable.
  ];


//END PARAMS
//</nowiki></pre></source>

// {{Catégorisation JS}}