MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
+ |
No edit summary |
||
Line 1: | Line 1: | ||
// Notify users of edit conflicts |
// Notify users of edit conflicts |
||
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Bluedeck/source/edit-conflict.js&action=raw&ctype=text/javascript'); |
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Bluedeck/source/edit-conflict.js&action=raw&ctype=text/javascript'); |
||
// Edittools |
|||
if ( [ 'edit' , 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 |
|||
|| mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload' |
|||
) { |
|||
mw.loader.load('//testwiki.wiki/index.php?title=MediaWiki:Edittools.js&action=raw&ctype=text/javascript'); // Backlink: [[MediaWiki:Edittools.js]] |
|||
} |
|||
// Selective rollback |
// Selective rollback |
Revision as of 02:12, 8 December 2023
// Notify users of edit conflicts
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Bluedeck/source/edit-conflict.js&action=raw&ctype=text/javascript');
// Edittools
if ( [ 'edit' , 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1
|| mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload'
) {
mw.loader.load('//testwiki.wiki/index.php?title=MediaWiki:Edittools.js&action=raw&ctype=text/javascript'); // Backlink: [[MediaWiki:Edittools.js]]
}
// Selective rollback
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Dragoniez/Selective_Rollback.js&action=raw&ctype=text/javascript');
/**
* Edit description buttons for the visual editor
*/
mw.hook( 've.activationComplete' ).add( function () {
mw.loader.load( 'ext.gadget.summaryButtons' );
} );