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