跳转到内容

MediaWiki:Gadget-HotCat.js/local defaults:修订间差异

勤求古训,博采众方
无编辑摘要
鹿野耕云留言 | 贡献
无编辑摘要
第1行: 第1行:
// <source lang="javascript">
// <source lang="javascript">
if ( typeof( HotCat ) != 'undefined' ) {
if ( typeof( HotCat ) != 'undefined' ) {
HotCat.uncat_regexp            = null;
HotCat.uncat_regexp            = /((?=[^{]|^)| )\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Cc]ategori[sz]e)[^}]*\}\}/gm;
HotCat.single_minor            = true;
HotCat.single_minor            = false;
HotCat.use_up_down              = false;
HotCat.use_up_down              = false;
HotCat.upload_disabled         = false;
HotCat.upload_disabled         = true;
HotCat.redir_category          = null;
HotCat.redir_category          = 中医百科软重定向分类;
HotCat.disambig_category        = null;
HotCat.disambig_category        = 消歧义分类;
HotCat.messages.using          = ' 使用 HotCat';
HotCat.messages.using          = ' 使用 HotCat';
}
}
// </source>
// </source>
  //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;
  // 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 = '//zybkcn.com/images/4/4c/P_no_red.svg';
}

2022年12月12日 (一) 19:06的版本

//

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.redir_category           = 中医百科软重定向分类;
	HotCat.disambig_category        = 消歧义分类;
	HotCat.messages.using           = ' 使用 HotCat';
}
//
 //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;
 // 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 = '//zybkcn.com/images/4/4c/P_no_red.svg';

}