User:94rain/js/Gadget-afchelper.js
外观
< User:94rain | js
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
///////////////////////////////////////////////
//////// Yet Another AfC Helper Script ////////
//// https://en.wikipedia.org/wiki/WP:AFCH ////
//// https://github.com/WPAFC/afch-rewrite ////
///////////////////////////////////////////////
( function ( mw, importScript ) {
if ( /^(?:User:|Draft:|Wikipedia(?:_talk)?:建立條目專題)/.test( mw.config.get( 'wgPageName' ) ) &&
mw.config.get('wgPageName') !== 'Wikipedia:建立條目專題/重定向' ) {
// These dependencies are also enforced by the gadget definition, this is a fallback
// in case people ure using the gadget indirectly .
mw.loader.using( ['mediawiki.api', 'mediawiki.util', 'mediawiki.user', 'jquery.chosen'] ).done( function() {
importScript( 'User:94rain/js/afch-master.js' );
});
}
}( mediaWiki, importScript ) );