Difference between revisions of "MediaWiki:Common.js"
m |
m |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | |||
− | + | if (mw.config.get('wgUserName') != "ST") { | |
− | if (mw.config.get('wgUserName') | ||
alert("Hi ST"); | alert("Hi ST"); | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Revision as of 03:09, 13 November 2019
/* Any JavaScript here will be loaded for all users on every page load. */
if (mw.config.get('wgUserName') != "ST") {
alert("Hi ST");
}
/*
$(document).ready(function () {
//Disable cut copy paste
$('body').bind('cut copy paste', function (e) {
e.preventDefault();
});
//Disable mouse right click
$("body").on("contextmenu",function(e){
return false;
});
});
*/