MediaWiki:Gadget-afchelper.js: Difference between revisions
Disable on WP:AFC/R |
Johnrdorazio (talk | contribs) m 1 revision imported |
(No difference)
|
Revision as of 20:41, August 30, 2020
///////////////////////////////////////////////
//////// 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 ) );