Difference between revisions of "MediaWiki:Common.js"

From Bose Portable PA Encyclopedia
Jump to: navigation, search
m
m
Line 2: Line 2:
  
  
if (mw.config.get('wgUserName') != "ST") {
 
 
alert("Hi ST");
 
  
  
}
 
  
  
  
/*
+
$(document).ready(function () {
 +
 
 +
 
 +
if (mw.config.get('wgUserName') != "ST") {
 +
  
  
  
$(document).ready(function () {
 
 
     //Disable cut copy paste
 
     //Disable cut copy paste
 
     $('body').bind('cut copy paste', function (e) {
 
     $('body').bind('cut copy paste', function (e) {
Line 25: Line 24:
 
         return false;
 
         return false;
 
     });
 
     });
 +
 +
}
 +
 
});
 
});
  
 
*/
 
*/

Revision as of 03:10, 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;
    });

}

});

*/