View source for MediaWiki:Common.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
var config = mw.config.values;
// Load personal JS if logged in user
if (config.wgUserName && config.wgUserName.length>0) {
importScript('User:'+config.wgUserName+'/common.js');
}
// Load site JS
[
'BetterUpload.js', // Improvements to Special:Upload
'BetterDiff.js' // Aids with patrolling and with diff viewing on RC, page history and user contribs
]
.forEach(function(scr){
importScript('MediaWiki:'+scr);
});
// Add navigational keybinds
mw.hook('wikipage.content').add(function(){
var actions = {
e: 'edit',
000
1:0
Return to MediaWiki:Common.js.