MediaWiki:Gadget-HotCat.js/local defaults
注意:儲存之後,你可能要兜過你嘅瀏覽器快取至睇到更改。Internet Explorer: 撳住Ctrl掣再撳重新整理掣。 Firefox: 撳住Shift掣再撳重新載入(又或者撳Ctrl-Shift-R)。 Google Chrome同埋Safari用戶就噉撳個重載掣。
if (typeof (HotCat) != 'undefined') {
HotCat.uncat_regexp = /\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|冇分類|[Cc]ategori[sz]e)[^}]*\}\}/g ;
HotCat.single_minor = false;
HotCat.use_up_down = false;
HotCat.upload_disabled = true;
HotCat.redir_category = '維基百科類跳轉';
HotCat.disambig_category = '搞清楚類';
HotCat.messages.using = ',用[[WP:HC|HotCat]]';
HotCat.messages.cat_removed = '拎走咗[[Category:$1]]';
HotCat.messages.template_removed = '拎走咗{{[[Category:$1]]}}';
HotCat.messages.cat_added = '加咗[[Category:$1]]';
HotCat.messages.cat_keychange = '改咗類[[Category:$1]]嘅排序關鍵字:';
HotCat.messages.cat_notFound = '搵唔到類"$1"';
HotCat.messages.cat_exists = '已經有類「$1」,唔使再加';
HotCat.messages.cat_resolved = '(成功處理[[Category:$1]]嘅跳轉)';
HotCat.messages.uncat_removed = '拎走咗{{uncategorized}}';
HotCat.messages.multi_change = '$1個類';
//Blacklisted categories cannot be added through HotCat.
HotCat.blacklist = /\b楔類$|^楔類\b|\b搞清楚版$|^跳轉\b/;
// Clicks on (-) will always go through the diff screen
HotCat.del_needs_diff = true;
// Non-confirmed users will always go through the diff screen.
HotCat.no_autocommit = (function (default_setting) {
if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf('confirmed ') < 0) return true;
return default_setting;
})(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
HotCat.existsNo = '//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/P_no_red.svg/20px-P_no_red.svg.png';
}