MediaWiki:Gadget-HotCat.js/local defaults:修订间差异
外观
创建页面,内容为“if ( typeof( HotCat ) != 'undefined' ) { HotCat.uncat_regexp = null; HotCat.single_minor = true; HotCat.use_up_down = false; HotCat.upload_disabled = false; HotCat.redir_category = null; HotCat.disambig_category = null; HotCat.messages.using = ' 使用HotCat'; } //” |
小 // Edit via Wikiplus |
||
| (未显示2个用户的8个中间版本) | |||
| 第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.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'; | |||
} | } | ||
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';
}