//<syntaxhighlight lang="javascript">//<pre>//<nowiki>
// Personnalisation pour LiveRC
/* ** Variables ** */
window.LiveRC_getUserCustom = function(){
lrcDisplayDebug('getUserCustom');
// -- Paramètres de LiveRC --
try{
addCustomParam("TZ", '-23:00');
addCustomParam("GoogleSearchURL", 'https://www.google.com/?q=$1');
addCustomParam("PreviewHeight", '250px');
addCustomParam("HistoryHeight", '250px');
addCustomParam("GoogleHeight", '250px');
addCustomParam("TchatHeight", '150px');
addCustomParam("DisplayDebug", false);
addCustomParam("ShowExternalEdits", false);
addCustomParam("LoadCatAndTemplates", true);
addCustomParam("MinWatchers", 20);
addCustomParam("ReloadList", 600);
addCustomParam("GoogleSearchLimit", 100);
}catch(e){ }
// -- Options au démarrage de LiveRC --
try{
addCustomOption("LiveRCFollowDisplayed", false);
addCustomOption("Log", false);
addCustomOption("NS", true);
addCustomOption("User_HideOwnSubpage", true);
addCustomOption("showCatRC", true);
addCustomOption("Log_upload", false);
addCustomOption("Log_newusers", false);
addCustomOption("Log_patrol", false);
addCustomOption("Log_merge", false);
addCustomOption("Log_rights", false);
addCustomOption("Log_import", false);
addCustomOption("NS_1", false);
addCustomOption("NS_5", false);
addCustomOption("NS_6", false);
addCustomOption("NS_7", false);
addCustomOption("NS_8", false);
addCustomOption("NS_10", false);
addCustomOption("NS_11", false);
addCustomOption("NS_12", 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("NS_2600", false);
addCustomOption("DisplayliveNewUsers", false);
addCustomOption("DisplayliveNewPages", false);
addCustomOption("NS_2300", false);
addCustomOption("NS_2301", false);
addCustomOption("Tchat", false);
addCustomOption("Preview", false);
addCustomOption("Lists", false);
addCustomOption("Filter", false);
addCustomOption("OnlyNewPages", true);
}catch(e){ }
// -- Résumés de blanchiment --
try{
defineCustomBlankMessages([
{ 'tooltip' : 'copyvio' , 'resume' : ']' },
{ 'tooltip' : 'CAA' , 'resume' : ']' },
{ 'tooltip' : 'non encyclo' , 'resume' : ']' },
{ 'tooltip' : 'BaS' , 'resume' : '], test de débutant' },
{ 'tooltip' : 'vandalisme' , 'resume' : 'Vandalisme' },
{ 'tooltip' : 'promo' , 'resume' : 'Promotion et publicité ou spam ; contenu non vérifiable' },
{ 'tooltip' : 'pas français' , 'resume' : 'Pas en français' }
]);
}catch(e){ }
// -- Résumés de révocation --
try{
defineCustomRevertMessages([
{ 'resume' : ']' , 'text' : 'Bac à sable' },
{ 'resume' : ']' , 'text' : 'Vandalisme' },
{ 'resume' : 'Information fausse ou ]' , 'text' : 'Non-sourcé' },
{ 'resume' : 'Traduction automatique, texte incompréhensible' , 'text' : 'Trad auto' },
{ 'resume' : 'Information non pertinente' , 'text' : 'Inutile' },
{ 'resume' : ']' , 'text' : 'Non encyclo' },
{ 'resume' : ']' , 'text' : 'Non neutre' },
{ 'resume' : 'Retrait d\'information sans justification' , 'text' : 'non justifié' },
{ 'resume' : 'Maladresse' , 'text' : 'maladresse' },
{ 'resume' : 'Lien externe non encyclopédique' , 'text' : 'LE HC' },
{ 'resume' : 'Ne pas retirer les bandeaux de maintenance' , 'text' : 'bandeaux' },
{ 'resume' : 'Copyvio' , 'text' : 'Copyvio' },
{ 'resume' : 'Contenu potentiellement diffamatoire' , 'text' : 'Diffamation' },
{ 'resume' : 'Ajout de wikitexte avec l\'Éditeur visuel' , 'text' : 'nowiki' },
{ 'resume' : 'Lien externe dans le corps de l\'article' , 'text' : 'LE dans texte' },
{ 'resume' : 'Orthographe/grammaire' , 'text' : 'ortho' }
]);
}catch(e){ }
// -- Modèles d’avertissement --
try{
defineCustomWarningTemplates([
{ 'template' : 'Test 1' , 'string' : 'Test 1' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Test 2' , 'string' : 'Test 2' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Test 2+' , 'string' : 'Test 2+' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Test 2-' , 'string' : 'Test 2-' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Test 3' , 'string' : 'Test 3' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Seul avertissement' , 'string' : 'Test 4' , 'hasPage' : true , 'addName' : true , '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' : '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' : true , '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' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Aide images' , 'string' : 'Aide images' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Aide wikification' , 'string' : 'Aide wikif' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Aide liens' , 'string' : 'Aide liens' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue IP' , 'string' : 'Bienvenue IP' , 'hasPage' : true , 'addName' : false , 'addSectionTitle' : false },
{ 'template' : 'Signature' , 'string' : 'Signature' , 'hasPage' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue nouveau|Mathis B' , 'string' : 'Bienvenue' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue IP méritante|Mathis B' , 'string' : 'IP méritante' , 'hasPage' : false , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Copieurlight' , 'string' : 'Copieurlight' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue copyvio 3' , 'string' : 'Copyvio 3' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue copyvio 4' , 'string' : 'Copyvio 4' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue Copyvio 4|new=oui' , 'string' : 'Copyvio 4 new' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Aide création sans source' , 'string' : 'Création sans sources' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bon début' , 'string' : 'Bon début' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Faux décès' , 'string' : 'Faux décès' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Faux décès 2' , 'string' : 'Faux décès 2' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue SI 2' , 'string' : 'BSI2' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue SI 3' , 'string' : 'BSI3' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue SI 4' , 'string' : 'BSI4' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Bienvenue Copyvio Synopsis' , 'string' : 'Copyvio synopsis' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Merci IP|~~~~' , 'string' : 'Merci IP' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
{ 'template' : 'Faut sourcer 2' , 'string' : 'Faut sourcer 2' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'U-R3R' , 'string' : 'R3R' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Ajout nowiki' , 'string' : 'Nowiki' , 'hasPage' : true , 'addName' : true , 'addSectionTitle' : false },
{ 'template' : 'Vandalisme cracra' , 'string' : 'Cracra' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
{ 'template' : 'Contributions rémunérées' , 'string' : 'Rémunéré' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
{ 'template' : 'Contributions rémunérées rappel' , 'string' : 'Rémunéré 2' , 'hasPage' : false , 'addName' : false , 'addSectionTitle' : false },
{ 'template' : 'Conflit d\'intérêts' , 'string' : 'Conflit d\'intérêts' , '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' : 'Évènement récent' , 'string' : 'récent' , 'withDate' : '$month $year' },
{ 'template' : 'Évènement sportif en cours' , 'string' : 'sport en cours' , 'withDate' : '' },
{ 'template' : 'Pour wiktionnaire' , 'string' : 'Wiktionnaire' , 'withDate' : '' },
{ 'template' : 'Pour wikinews' , 'string' : 'Wikinews' , 'withDate' : '' },
{ 'template' : 'Promotionnel' , 'string' : 'pub/promo' , 'withDate' : '' },
{ 'template' : 'Mort récente' , 'string' : 'mort récente' , 'withDate' : '$month $year' },
{ 'template' : 'Avantage non déclaré' , 'string' : 'rémunéré' , 'withDate' : '$month $year' }
]);
}catch(e){ }
}
/* ** Extensions ** */
LiveRC_Config = [
'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.
'HotCatsMulti', // Permet d’ajouter/modifier/retirer une ou plusieurs catégories lors de la prévisualisation d’une page
'PreviewThisPageExtension', // Permet de prévisualiser une page au choix
'DiffExtension', // Permet d’avoir les fonctions automatiques de LiveRC dans les diff "normaux"
'BandeauPortail' // Permet d’ajouter/modifier/retirer un ou plusieurs bandeau de portail lors de la prévisualisation d’un article
];
//END PARAMS
//</nowiki></pre></syntaxhighlight>
// {{Catégorisation JS}}