MediaWiki:Gadget-afchelper.js

From Seeds of the Word, the encyclopedia of the influence of the Gospel on culture
Revision as of 20:41, August 30, 2020 by Johnrdorazio (talk | contribs) (1 revision imported)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
///////////////////////////////////////////////
//////// 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 ) );