Utilisateur:DreZhsh/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.
//<nowiki>

// Personnalisation pour LiveRC

/* ** Variables ** */

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


  // -- Paramètres de LiveRC --

  try{
    addCustomParam("SandboxPage", 'Aide:Bac à sable');
    addCustomParam("TZ", '+01:00');
    addCustomParam("ShowTimer", false);
    addCustomParam("LoadUsersInGroupsList", false);
    addCustomParam("LoadIPCat", false);
    addCustomParam("LoadLastBlocks", false);
    addCustomParam("GetPageInfos", false);
    addCustomParam("GetFileInfos", false);
    addCustomParam("ShowNotifications", false);
    addCustomParam("ShowInterwikiList", false);
    addCustomParam("lrcXUWColorNoTalk", '#000000	');
    addCustomParam("lrcXUWColorRecentTalk", '#008000');
    addCustomParam("lrcXUWColorRecentWarning", '#FF0000');
  }catch(e){ }


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

  try{
    addCustomOption("NS", true);
    addCustomOption("User_HideOwnSubpage", true);
    addCustomOption("User_ShowAllSelf", false);
    addCustomOption("User_ShowAllRevert", false);
    addCustomOption("User_ShowAllBlanking", false);
    addCustomOption("User_ShowAllReplaced", false);
    addCustomOption("User_REGISTRED", false);
    addCustomOption("Log_upload", false);
    addCustomOption("Log_newusers", false);
    addCustomOption("Log_patrol", false);
    addCustomOption("Log_move", 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("Log_thanks", 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_104", false);
    addCustomOption("NS_105", false);
    addCustomOption("NS_828", false);
    addCustomOption("NS_829", false);
    addCustomOption("NS_2600", false);
    addCustomOption("DisplayliveSpam", true);
    addCustomOption("DisplayliveNewUsers", false);
    addCustomOption("DisplayliveNewPages", false);
    addCustomOption("Log_tag", false);
    addCustomOption("NS_2300", false);
    addCustomOption("NS_2301", false);
    addCustomOption("NS_2302", false);
    addCustomOption("NS_2303", false);
    addCustomOption("Log_create", false);
  }catch(e){ }


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

  try{
    defineCustomRevertMessages([
      { 'resume' : '[[Wikipédia:Vandalisme|Vandalisme]]' , 'text' : 'Vandalisme' },
      { 'resume' : 'Modification suspecte' , 'text' : 'Modification suspecte' },
      { 'resume' : '[[Wikipédia:Citez vos sources|Non sourcé]]' , 'text' : 'Non sourcé' },
      { 'resume' : 'Suppression d\'information sourcée' , 'text' : 'Retrait source' },
      { 'resume' : 'Retrait injustifié' , 'text' : 'Retrait injustifié' },
      { 'resume' : 'Maladresse ?' , 'text' : 'Maladresse ?' },
      { 'resume' : '[[Aide:Bac à sable|Bac à sable]]' , 'text' : 'Bac à sable' },
      { 'resume' : '[[Wikipédia:Neutralité de point de vue|Problème de neutralité]]' , 'text' : 'Neutralité' },
      { 'resume' : '[[Wikipédia:Style encyclopédique|Non encyclopédique]]' , 'text' : 'Non encyclo' },
      { 'resume' : '[[WP:LE|LE]] dans le texte' , 'text' : 'LE Texte' },
      { 'resume' : 'Spam' , 'text' : 'Spam' }
    ]);
  }catch(e){ }


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

  try{
    defineCustomWarningTemplates([
      { 'template' : 'Test 0|sources=oui' , 'string' : 'RV Sources' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Test 0|wikif=oui' , 'string' : 'RV Wikif' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Test 0|POV=oui' , 'string' : 'RV Neutre' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Test 0|autre=Elle ressemblait à un test de la modification de Wikipédia : utilisez plutôt le [[Aide:bac à sable|]] pour vos essais.' , 'string' : 'RV BàS' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Test ?' , 'string' : 'Test ?' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Suppr Bandeaux' , 'string' : 'Suppr Bandeaux' , 'hasPage' : true , 'addName' : false , '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' : 'Test 4' , 'string' : 'Seul avertissement' , 'hasPage' : false , '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' : 'Ajout POV' , 'string' : 'Non-neutre' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Non-encyclo' , 'string' : 'Non-encyclo' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Retrait injustifié' , 'string' : 'Retrait texte' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Ortho' , 'string' : 'Ortho' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
      { 'template' : 'Conflit d\'intérêts' , 'string' : 'Conflit d\'intérêts' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue autobiographie ' , 'string' : 'Autobiographie' , 'hasPage' : true , 'addName' : false , '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' : 'Bienvenue SI 2' , 'string' : 'SI 2' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Bienvenue SI 3' , 'string' : 'SI 3' , 'hasPage' : false , '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' : 'U-R3R' , 'string' : 'R3R' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'U-R3R-2' , 'string' : 'R3R-2' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Vandalisme cracra' , 'string' : 'Vandalisme' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
      { 'template' : 'Contributions rémunérées' , 'string' : 'Contributions rémunérées' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false }
    ]);
  }catch(e){ }


  // -- Icônes utilisées par LiveRC --

  try{
    addCustomIcon("HomonIcon", { 'type' : 0 , 'src' : 'a/a9/Logo_disambig.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("PaSIcon", { 'type' : 0 , 'src' : '8/80/OOjs_UI_icon_alert.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ExtendedLockIcon", { 'type' : 0 , 'src' : '7/72/Extended-semi-protection-shackle-frwiki.svg' , 'width' : 11 , 'height' : 16 });
    addCustomIcon("FullLockIcon", { 'type' : 0 , 'src' : '9/97/Full-protection-shackle-frwiki.svg' , 'width' : 11 , 'height' : 16 });
    addCustomIcon("TrackingCategoriesIcon", { 'type' : 0 , 'src' : 'thumb/9/9e/Icono_consulta_borrar.png/16px-Icono_consulta_borrar.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("Watchers0Icon", { 'type' : 0 , 'src' : 'e/ee/Twemoji12_1f534.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("Watchers1Icon", { 'type' : 0 , 'src' : '5/56/Twemoji12_1f7e0.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("Watchers2Icon", { 'type' : 0 , 'src' : 'f/fd/Twemoji12_1f7e1.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("Watchers3Icon", { 'type' : 0 , 'src' : 'b/ba/Twemoji12_1f7e2.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("RedirectIcon", { 'type' : 0 , 'src' : '5/59/Arrows-move.svg' , 'width' : 16 , 'height' : 10 });
    addCustomIcon("ExternalIcon", { 'type' : 0 , 'src' : 'f/ff/Wikidata-logo.svg' , 'width' : 28 , 'height' : 16 });
    addCustomIcon("FlowIcon", { 'type' : 0 , 'src' : '4/40/OOjs_UI_icon_speechBubbles-ltr.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ManagetagsIcon", { 'type' : 0 , 'src' : '6/63/OOjs_UI_icon_info_big.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ChangetagIcon", { 'type' : 0 , 'src' : 'd/dd/OOjs_UI_icon_tag-ltr.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("AbuselogIcon", { 'type' : 0 , 'src' : '6/64/Logo_Patrouille.svg' , 'width' : 16 , 'height' : 13 });
    addCustomIcon("UploadIcon", { 'type' : 0 , 'src' : '5/5d/Oxygen480-actions-document-save.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("BlockIcon", { 'type' : 0 , 'src' : '7/7f/Dialog-error.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("DeleteIcon", { 'type' : 0 , 'src' : 'f/fc/Twemoji12_2702.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ProtectIcon", { 'type' : 0 , 'src' : 'thumb/9/95/OOjs_UI_icon_lock.svg/16px-OOjs_UI_icon_lock.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ThanksIcon", { 'type' : 0 , 'src' : 'thumb/a/aa/OOjs_UI_icon_userTalk-ltr-constructive.svg/20px-OOjs_UI_icon_userTalk-ltr-constructive.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("RenameuserIcon", { 'type' : 0 , 'src' : 'thumb/c/c6/Breezeicons-actions-22-similarartists-amarok.svg/16px-Breezeicons-actions-22-similarartists-amarok.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("RightsIcon", { 'type' : 0 , 'src' : 'thumb/3/3d/Breezeicons-actions-22-resource-group-new.svg/16px-Breezeicons-actions-22-resource-group-new.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("MassMessageIcon", { 'type' : 0 , 'src' : '6/61/Twemoji12_1f4e8.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("CheckUserIcon", { 'type' : 0 , 'src' : 'thumb/c/c0/Breezeicons-actions-22-user-group-properties.svg/16px-Breezeicons-actions-22-user-group-properties.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("OversightIcon", { 'type' : 0 , 'src' : 'thumb/6/63/Breezeicons-actions-22-hint.svg/16px-Breezeicons-actions-22-hint.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ReviewIcon", { 'type' : 0 , 'src' : 'd/de/OOjs_UI_icon_search-ltr.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("StableIcon", { 'type' : 0 , 'src' : 'thumb/f/f7/Breezeicons-actions-22-go-jump-declaration.svg/16px-Breezeicons-actions-22-go-jump-declaration.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("PagetriageDeletionIcon", { 'type' : 0 , 'src' : '3/3f/OOjs_UI_icon_trash.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("PagetriageCurationIcon", { 'type' : 0 , 'src' : '6/6e/OOjs_UI_icon_heart.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("EducationProgramIcon", { 'type' : 0 , 'src' : '3/32/OOjs_UI_icon_academic.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("OAuthIcon", { 'type' : 0 , 'src' : '2/22/OOjs_UI_icon_key.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("InterwikiIcon", { 'type' : 0 , 'src' : '1/1d/Wikimedia_logo_family_complete-2013.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("SharedIPIcon", { 'type' : 0 , 'src' : 'thumb/a/a8/Breezeicons-actions-22-user-group-new.svg/16px-Breezeicons-actions-22-user-group-new.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("ScolarIPIcon", { 'type' : 0 , 'src' : 'thumb/b/b1/Breezeicons-actions-22-view-bank.svg/16px-Breezeicons-actions-22-view-bank.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("OpenProxyIcon", { 'type' : 0 , 'src' : 'thumb/c/c8/Breezeicons-actions-22-user-group-delete.svg/16px-Breezeicons-actions-22-user-group-delete.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("NewbieIcon", { 'type' : 0 , 'src' : 'thumb/9/98/OOjs_UI_icon_userAvatar.svg/800px-OOjs_UI_icon_userAvatar.svg.png' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("SysopIcon", { 'type' : 0 , 'src' : '2/2c/Broom_icon.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("BotIcon", { 'type' : 0 , 'src' : 'c/c3/Logo_wikibot.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("BlockedIcon", { 'type' : 0 , 'src' : 'b/b8/Modern_clock_chris_kemps_01_with_Octagon-warning.svg' , 'width' : 16 , 'height' : 16 });
    addCustomIcon("MinorEditIcon", { 'type' : 0 , 'src' : '9/92/OOjs_UI_icon_unFlag-ltr.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("RevertIcon", { 'type' : 0 , 'src' : 'c/c5/OOjs_UI_icon_editUndo-ltr.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("RedirectedIcon", { 'type' : 0 , 'src' : 'thumb/a/a5/OOjs_UI_icon_articleRedirect-ltr.svg/240px-OOjs_UI_icon_articleRedirect-ltr.svg.png' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("BlankingIcon", { 'type' : 0 , 'src' : 'thumb/7/7a/OOjs_UI_icon_clear.svg/20px-OOjs_UI_icon_clear.svg.png' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("AWBIcon", { 'type' : 0 , 'src' : '1/14/AWB_logo_alt.png' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("BandeauxPortailsIcon", { 'type' : 0 , 'src' : 'thumb/c/c9/Portal.svg/270px-Portal.svg.png' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("BandeauxEbauchesIcon", { 'type' : 0 , 'src' : 'thumb/7/74/Twemoji2_1f527.svg/240px-Twemoji2_1f527.svg.png' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("PopupsIcon", { 'type' : 0 , 'src' : '3/38/OOjs_UI_icon_window.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("CatRenameIcon", { 'type' : 0 , 'src' : '8/85/OOjs_UI_icon_moveLast-ltr.svg' , 'width' : 12 , 'height' : 12 });
    addCustomIcon("SpamIcon", { 'type' : 0 , 'src' : '2/2c/LiveRC_Spam.svg' , 'width' : 20 , 'height' : 20 });
    addCustomIcon("Test0Icon", { 'type' : 0 , 'src' : '9/94/LiveRC_Test0.svg' , 'width' : 20 , 'height' : 20 });
    addCustomIcon("Test1Icon", { 'type' : 0 , 'src' : 'd/dc/LiveRC_Test1.svg' , 'width' : 20 , 'height' : 20 });
    addCustomIcon("Test2Icon", { 'type' : 0 , 'src' : '5/56/LiveRC_Test2.svg' , 'width' : 20 , 'height' : 20 });
    addCustomIcon("Test3Icon", { 'type' : 0 , 'src' : '3/38/LiveRC_Test3.svg' , 'width' : 20 , 'height' : 20 });
  }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.
    'PreviewAllLinksExtension',   // Permet de prévisualiser tout lien interne de la fenêtre de prévisualisation
    'PreviewThisPageExtension',   // Permet de prévisualiser une page au choix
    'DiffExtension',              // Permet d’avoir les fonctions automatiques de LiveRC dans les diff "normaux"
    'RunCommonJS'                 // Améliore la prévisualisation avec des fonctions du Common.js (boîtes déroulantes, palettes, etc...)
  ];


//END PARAMS
//</nowiki>
// {{Catégorisation JS}}