« Utilisateur:HMa/common.js » : différence entre les versions
Apparence
Contenu supprimé Contenu ajouté
HMa (discuter | contributions) Retouche de la modification précédente Balise : Révocation manuelle |
HMa (discuter | contributions) Activation smart-rollback |
||
Ligne 6 : | Ligne 6 : | ||
// Provides several useful functions for rollback (custom edit summary, mark as bot edits and mass revert) |
// Provides several useful functions for rollback (custom edit summary, mark as bot edits and mass revert) |
||
// by [[m:user:Hoo man]] <https://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Smart_rollback> |
// by [[m:user:Hoo man]] <https://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Smart_rollback> |
||
⚫ | |||
var disable_smart_rollback = true; // désactive smart_rollback |
|||
//if(typeof(smartRollbackConfig) === 'undefined') smartRollbackConfig = {}; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
smartRollbackConfig = ' ; |
|||
smartRollbackConfig. = ; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
smartRollbackConfig.lang = 'fr'; |
|||
smartRollbackConfig.enableMarkbotedits = false; |
|||
smartRollbackConfig.oneClickBotLinks = false; |
Dernière version du 23 décembre 2024 à 12:34
// Wikidata descriptions
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");
obtenir('MonobookToolbarSortSelected');
// Provides several useful functions for rollback (custom edit summary, mark as bot edits and mass revert)
// by [[m:user:Hoo man]] <https://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Smart_rollback>
var disable_smart_rollback = true; // désactive smart_rollback
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');
if(typeof(smartRollbackConfig) === 'undefined') smartRollbackConfig = {};
smartRollbackConfig.editSummaries = {};
smartRollbackConfig.editSummaries[0] = 'revert - vandalisme';
smartRollbackConfig.editSummaries[1] = 'revert - propre PU';
smartRollbackConfig.editSummaries[2] = 'revert - auto-revert';
smartRollbackConfig.lang = 'fr';
smartRollbackConfig.enableMarkbotedits = false;
smartRollbackConfig.oneClickBotLinks = false;