MediaWiki:Gadget-HotCat.js/local defaults: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m 1 revision imported |
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; |
|||
HotCat.disambig_category = 'Disambiguation categories'; |
|||
HotCat.messages.using = ''; |
HotCat.messages.using = ''; |
||
Line 20: | Line 15: | ||
// Improve visual distinction between positive+ and negative- indicator icons. |
// Improve visual distinction between positive+ and negative- indicator icons. |
||
HotCat.existsYes = '//upload.wikimedia.org/wikipedia/commons/thumb/b/be/P_yes.svg/20px-P_yes.svg.png', |
|||
HotCat.existsNo = '//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/P_no_red.svg/20px-P_no_red.svg.png'; |
HotCat.existsNo = '//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/P_no_red.svg/20px-P_no_red.svg.png'; |
||
} |
} |
Revision as of 01:27, 19 August 2023
if (typeof (HotCat) != 'undefined') {
HotCat.messages.using = '';
// Blacklisted categories cannot be added through HotCat.
HotCat.blacklist = /\b[Ss]tubs?$|^[Ss]tubs?\b|\b[Dd]isambiguation pages$|^[Rr]edirect(?:s|ed)?\b/;
// Clicks on (-) will always go through the diff screen.
HotCat.del_needs_diff = true;
// Users will always go through the diff screen.
HotCat.no_autocommit = (function (default_setting) {
if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf('autoconfirmed ') < 0) return true;
return default_setting;
})(HotCat.no_autocommit);
// Improve visual distinction between positive+ and negative- indicator icons.
HotCat.existsYes = '//upload.wikimedia.org/wikipedia/commons/thumb/b/be/P_yes.svg/20px-P_yes.svg.png',
HotCat.existsNo = '//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/P_no_red.svg/20px-P_no_red.svg.png';
}