Aller au contenu

Utilisateur:Jules*/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.
//<syntaxhighlight lang="javascript">//<pre>//<nowiki>

// Personnalisation pour LiveRC

/* ** Variables ** */

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


  // -- Paramètres de LiveRC --

  try{
    addCustomParam("TZ", '+01:00');
    addCustomParam("ShowTimer", false);
    addCustomParam("GetPageInfos", false);
    addCustomParam("GetFileInfos", false);
    addCustomParam("ShowNotifications", false);
    addCustomParam("ShowInterwikiList", false);
    addCustomParam("InterwikiPreviewEnabled", false);
  }catch(e){ }


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

  try{
    addCustomOption("LiveRCFollowDisplayed", false);
    addCustomOption("NS", true);
    addCustomOption("User_ShowAllSelf", false);
    addCustomOption("Log_upload", false);
    addCustomOption("Log_newusers", false);
    addCustomOption("Log_patrol", false);
    addCustomOption("Log_merge", false);
    addCustomOption("Log_protect", false);
    addCustomOption("Log_delete", false);
    addCustomOption("Log_block", false);
    addCustomOption("Log_rights", false);
    addCustomOption("Log_import", false);
    addCustomOption("Log_managetags", false);
    addCustomOption("NS_1", false);
    addCustomOption("NS_2", false);
    addCustomOption("NS_3", false);
    addCustomOption("NS_4", false);
    addCustomOption("NS_5", false);
    addCustomOption("NS_6", false);
    addCustomOption("NS_7", false);
    addCustomOption("NS_8", false);
    addCustomOption("NS_9", false);
    addCustomOption("NS_10", false);
    addCustomOption("NS_11", false);
    addCustomOption("NS_12", false);
    addCustomOption("NS_13", false);
    addCustomOption("NS_14", false);
    addCustomOption("NS_15", false);
    addCustomOption("NS_100", false);
    addCustomOption("NS_101", false);
    addCustomOption("NS_102", false);
    addCustomOption("NS_103", false);
    addCustomOption("NS_104", false);
    addCustomOption("NS_105", false);
    addCustomOption("NS_828", false);
    addCustomOption("NS_829", false);
    addCustomOption("DisplayliveNewUsers", false);
    addCustomOption("Log_tag", false);
  }catch(e){ }


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

  try{
    defineCustomRevertMessages([
      { 'resume' : '[[Wikipédia:Vandalisme|Vandalisme]]' , 'text' : 'Vandalisme' },
      { 'resume' : 'Maladresse' , 'text' : 'Maladresse' },
      { 'resume' : '[[WP:Citez vos sources|Information non sourcée]]' , 'text' : 'Non-sourcé' },
      { 'resume' : 'Motif ?' , 'text' : 'Motif ?' },
      { 'resume' : '[[WP:Neutralité de point de vue|Non neutre]]' , 'text' : 'Non-neutre' },
      { 'resume' : 'Non-enyclopédique' , 'text' : 'Non-enyclopédique' },
      { 'resume' : '[[WP:LE|Liens externes]]' , 'text' : 'WP:LE' }
    ]);
  }catch(e){ }


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

  try{
    defineCustomWarningTemplates([
      { '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 injustifié' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Motivation modif' , 'string' : 'Résumé' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Attention image externe' , 'string' : 'Image externe' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'LE HC' , 'string' : 'LE hors-critères' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'LE dans texte' , 'string' : 'LE dans texte' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Spammeur' , 'string' : 'Spam' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue spammeur 2' , 'string' : 'Spam 2' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Ortho' , 'string' : 'Orthographe' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Ajout POV' , 'string' : 'POV' , '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' : 'Suppr Bandeaux' , 'string' : 'Bandeaux' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue Copyvio 1' , 'string' : 'Copyright' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI CAA' , 'string' : 'BSI CAA' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI BàS' , 'string' : 'BSI BàS' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI promo' , 'string' : 'BSI promo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'BSI canular' , 'string' : 'BSI canular' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide sources' , 'string' : 'Aide sources' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide sources EV' , 'string' : 'Aide sources EV' , '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 BandoPromo' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'AideMeta/RefSec' , 'string' : 'Aide BandoRefSec' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Aide création sans source' , 'string' : 'Aide création sans source' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue IP' , 'string' : 'Bienvenue IP' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Merci IP' , 'string' : 'Merci IP' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Contributions promotionnelles' , 'string' : 'Contribs promotionnelles' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false }
    ]);
  }catch(e){ }


  // -- Affichage/masquage des onglets du menu de configuration --

  try{
    addCustomParamMenuTab("UnTranslatedTexts", false);
    addCustomParamMenuTab("commenttests", false);
    addCustomParamMenuTab("categoriestests", false);
    addCustomParamMenuTab("templatestests", false);
    addCustomParamMenuTab("ContactListLegend", false);
    addCustomParamMenuTab("LinkOnIconParams", false);
    addCustomParamMenuTab("lstAskForRevisionReasons", 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"
  ];


//END PARAMS
//</nowiki></pre></syntaxhighlight>

// {{Catégorisation JS}}