MediaWiki:Gadget-HotCat.js/local defaults: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
if (typeof (HotCat) != 'undefined') { |
if (typeof (HotCat) != 'undefined') { |
||
HotCat.uncat_regexp = /((?=[^{]|^)| )\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Cc]ategori[sz]e)[^}]*\}\}/gm; |
|||
⚫ | |||
HotCat.single_minor = false; |
|||
HotCat.use_up_down = false; |
|||
HotCat.upload_disabled = true; |
|||
⚫ | |||
// |
//Blacklisted categories cannot be added through HotCat. |
||
HotCat.blacklist = /\b[Ss]tubs?$|^[Ss]tubs?\b|\b[Dd]isambiguation pages$|^[Rr]edirect(?:s|ed)?\b/; |
HotCat.blacklist = /\b[Ss]tubs?$|^[Ss]tubs?\b|\b[Dd]isambiguation pages$|^[Rr]edirect(?:s|ed)?\b/; |
||
Line 8: | Line 13: | ||
HotCat.del_needs_diff = true; |
HotCat.del_needs_diff = true; |
||
// |
// Non-confirmed users will always go through the diff screen. |
||
HotCat.no_autocommit = (function (default_setting) { |
HotCat.no_autocommit = (function (default_setting) { |
||
if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf(' |
if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf('confirmed ') < 0) return true; |
||
return default_setting; |
return default_setting; |
||
})(HotCat.no_autocommit); |
})(HotCat.no_autocommit); |
||
// Disable for non-logged-in users. |
|||
HotCat.disable = (function (default_disable) { |
|||
return function () { |
|||
if (!mw.config.get('wgUserName')) return true; |
|||
return default_disable(); |
|||
}; |
|||
})(HotCat.disable); |
|||
// Improve visual distinction between positive+ and negative- indicator icons. |
// Improve visual distinction between positive+ and negative- indicator icons. |