MediaWiki:Gadget-extra-toolbar-buttons.js

if ( /^(edit|submit)$/.test( mw.config.get( 'wgAction' ) ) || mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload' ) { mw.loader.load( 'ext.gadget.extra-toolbar-buttons-core' ); }