MediaWiki:Gadget-afchelper.js: Difference between revisions
Appearance
Content deleted Content added
mNo edit summary |
Amorymeltzer (talk | contribs) Disable on WP:AFC/R |
||
Line 6: | Line 6: | ||
( function ( mw, importScript ) { |
( function ( mw, importScript ) { |
||
if ( /^(?:User:|Draft:|Wikipedia(?:_talk)?:Articles_for_creation)/.test( mw.config.get( 'wgPageName' ) ) |
if ( /^(?:User:|Draft:|Wikipedia(?:_talk)?:Articles_for_creation)/.test( mw.config.get( 'wgPageName' ) ) && |
||
mw.config.get('wgPageName') !== 'Wikipedia:Articles_for_creation/Redirects' ) { |
|||
// These dependencies are also enforced by the gadget definition, this is a fallback |
// These dependencies are also enforced by the gadget definition, this is a fallback |
||
// in case people ure using the gadget indirectly . |
// in case people ure using the gadget indirectly . |
Revision as of 22:37, 31 July 2018
///////////////////////////////////////////////
//////// 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)?:Articles_for_creation)/.test( mw.config.get( 'wgPageName' ) ) &&
mw.config.get('wgPageName') !== 'Wikipedia:Articles_for_creation/Redirects' ) {
// 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:Enterprisey/afch-master.js' );
});
}
}( mediaWiki, importScript ) );