MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary Tag: Reverted |
||
Line 13: | Line 13: | ||
mw.loader.load( 'ext.gadget.summaryButtons' ); |
mw.loader.load( 'ext.gadget.summaryButtons' ); |
||
} ); |
} ); |
||
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-script-installer.js&action=raw&ctype=text/javascript'); |
Revision as of 18:15, 17 March 2024
// Edittools (do not remove)
if ( [ 'edit' , 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1
|| mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload'
) {
mw.loader.load('//testwiki.wiki/index.php?title=MediaWiki:Edittools.css&action=raw&ctype=text/css'); // Backlink: [[MediaWiki:Edittools.css]]
mw.loader.load('//testwiki.wiki/index.php?title=MediaWiki:Edittools.js&action=raw&ctype=text/javascript'); // Backlink: [[MediaWiki:Edittools.js]]
}
/**
* Edit description buttons for the visual editor
*/
mw.hook( 've.activationComplete' ).add( function () {
mw.loader.load( 'ext.gadget.summaryButtons' );
} );
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-script-installer.js&action=raw&ctype=text/javascript');