MediaWiki:Gadget-HotCat.js/local defaults:修订间差异
外观
鹿野耕云将页面MediaWiki:Gadget-HotCat.js/local defaults的内容模型从“wikitext”更改为“JavaScript” |
小 // Edit via Wikiplus |
||
| (未显示1个用户的4个中间版本) | |||
| 第1行: | 第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 = null; | |||
HotCat.redir_category = '已重定向的分类'; | |||
HotCat.messages.using = ' 使用 HotCat'; | |||
// | // 不能通过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/; | ||
// | // 单击(-)将始终通过差异屏幕 | ||
HotCat.del_needs_diff = true; | HotCat.del_needs_diff = true; | ||
// | // 未确认的用户将始终通过差异屏幕。 | ||
HotCat.no_autocommit = (function (default_setting) { | HotCat.no_autocommit = (function (default_setting) { | ||
if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf('confirmed ') < 0) return true; | if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf('confirmed ') < 0) return true; | ||
| 第20行: | 第20行: | ||
})(HotCat.no_autocommit); | })(HotCat.no_autocommit); | ||
// | // 对未登录用户禁用 | ||
HotCat.disable = (function (default_disable) { | HotCat.disable = (function (default_disable) { | ||
return function () { | return function () { | ||
| 第28行: | 第28行: | ||
})(HotCat.disable); | })(HotCat.disable); | ||
// | // 改善正负指示器图标之间的视觉区分 | ||
HotCat.existsNo = '// | HotCat.existsNo = '//zybkcn.com/images/3/37/20px-P_no_red.svg.png'; | ||
} | } | ||
2022年12月19日 (一) 13:47的最新版本
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 = null;
HotCat.redir_category = '已重定向的分类';
HotCat.messages.using = ' 使用 HotCat';
// 不能通过HotCat添加黑名单类别。
HotCat.blacklist = /\b[Ss]tubs?$|^[Ss]tubs?\b|\b[Dd]isambiguation pages$|^[Rr]edirect(?:s|ed)?\b/;
// 单击(-)将始终通过差异屏幕
HotCat.del_needs_diff = true;
// 未确认的用户将始终通过差异屏幕。
HotCat.no_autocommit = (function (default_setting) {
if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf('confirmed ') < 0) return true;
return default_setting;
})(HotCat.no_autocommit);
// 对未登录用户禁用
HotCat.disable = (function (default_disable) {
return function () {
if (!mw.config.get('wgUserName')) return true;
return default_disable();
};
})(HotCat.disable);
// 改善正负指示器图标之间的视觉区分
HotCat.existsNo = '//zybkcn.com/images/3/37/20px-P_no_red.svg.png';
}