Utilisateur:Fabrice Ferrer 2/iglooDevSettings.js
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./* ======================================================== *\
** igloo frontend manager - settings
** tracker: [[:en:User:Ale_jrb/Scripts/igloo]]
\* ======================================================== */
// this page simply defines some global code settings for igloo
function ig () {
// version settings
this.version = '1.0l-b-dev-fr';
this.build = 'development';
this.versionString = 'version: '+this.version+'; build: '+this.build;
this.developerMode = true;
this.firstRun = true; // set true to enable displaying of first run info & welcome
// url settings
this.remoteHost = 'http://alejrb.0sites.net/igloo/';
this.articleBase = mw.config.get('wgServer') + mw.config.get('wgArticlePath').substr ( 0, ( mw.config.get('wgArticlePath').length - 2 ) );
this.localBase = 'User:Ale_jrb/Scripts/igloo/';
this.rootApi = mw.config.get('wgScriptPath') + '/api.php';
// interface settings
this.hookInterface = true;
this.enableFeedColour = true;
this.enableWindowColour = false;
this.profFilter = true;
this.histWinTimeout = 0.8;
this.blockKeys = true;
this.dynamicBlockKeys = 'default';
this.preloadInterface = true;
this.diffFontSize = 10;
// program settings
this.serverTimeout = 10;
this.updateTime = 3;
this.updateQuantity = 15;
this.hideOwn = false; // hide own edits from queue
this.defaultUserScore = 0.5;
this.maxHistory = 20;
this.permitPingfails = 4;
// user data - this data is always either overwritten by the server or ignored
this.lastConnectIp = 0;
this.lastConnectTime = 0;
this.totalSessions = 0;
this.iglooFlags = 'noflags';
// iglooNet settings
this.recheck = true; // investigate even if we already have data
this.commitToIgNet = true; // whether igloo can attempt to commit its findings to iglooNet
this.commitWhen = 2; // how often igloo should attempt to investigate a user (lower = more often)
// wiki settings
this.vandalTemplate = 'test';
this.warningMessage = '{'+'{subst:uw-%MESSAGE%%LEVEL%|%PAGE%|2=Édition révoquée <span class="plainlinks">[%DIFF% ici]</span>. Merci.}'+'}<!'+'-- igloo:%MESSAGE%%LEVEL% --'+'> ~~'+'~~';
this.warningSummary = 'Avertissement de niveau %LEVEL%. Vandalisme sur [[%PAGE%]] (['+'[' + this.localBase.substr ( 0, this.localBase.length - 1 ) + '|GLOO]'+'])';
this.rollbackSummary = 'Révocation des modifications par [[Special:Contributions/$2|$2]] (retour à la dernière version de $1) (['+'[' + this.localBase.substr ( 0, this.localBase.length - 1 ) + '|GLOO]'+'])';
this.warningsOldAfter = 2; // days after which warnings are considered irrelevant
this.aiv = 'Wikipédia:Vandalisme en cours';
this.aivWhere = 'appendtext';
this.aivIp = 'IPvandal';
this.aivUser = 'vandal';
this.aivMessage = '* {'+'{%TEMPLATE%|%USER%}'+'} - vandalisme après dernier avertissement. ~~'+'~~';
this.aivSummary = 'Signalement [[Special:Contributions/%USER%|%USER%]] - vandalisme après dernier avertissement (['+'['+this.localBase.substr(0, this.localBase.length-1)+'|GLOO]'+'])';
// customisation settings
this.updateLimit = 80;
this.notifyWarningDone = true;
this.promptRevertSelf = true;
this.enableUserFilters = false;
this.flagColours = [ '#ff8888', '#ffbbbb', '#ffffff', '#bbffbb', '#88ff88' ]; // v. dirty, dirty, neutral, clean, v. clean
this.enableFilters = true;
this.filterList = [];
// sysop only settings
this.mesysop = false; // iglooMain overwrites on load, if required
this.blockAction = 'prompt';
this.useAutoBlock = true;
this.blockTypes = { 'default' : 'subst:bloqué|1=%DURATION%', /*'sharedipedu' : 'schoolblock|1=Blocked for %DURATION%.|sig=~~'+'~~', 'sharedippublic' : 'anonblock|1=Blocked for %DURATION%.|sig=~~'+'~~', 'sharedip' : 'anonblock|1=Blocked for %DURATION%.|sig=~~'+'~~'*/ }; // if detected on the talk page, the autoblocker will try to use this template
this.blockIncrement = [ 'indefinite', '1 hour', '3 hours', '6 hours', '12 hours', '24 hours', '31 hours', '48 hours', '72 hours', '1 week', '2 weeks', '1 month', '3 months', '6 months', '1 year' ]; // recognised block length
this.blockDefault = 8; // the above block length to issue by default
this.blockSpecTemp = '1 month'; // non-default templates above will only be used when handling blocks greater than or equal to this setting
this.anonBlockSettings = '&anononly=&nocreate=&allowusertalk='; // this should take the form of an API block settings string, and will be attached to the api request (default string)
this.userBlockSettings = '&autoblock=&nocreate=&allowusertalk='; // this should take the form of an API block settings string, and will be attached to the api request (default string)
}
var iglooSettings = new ig ();