Difference between revisions of "MediaWiki:Common.js"

From Bose Portable PA Encyclopedia
Jump to: navigation, search
m
m
Line 4: Line 4:
  
  
if (mw.config.get('wgUserName') === "ST") {
+
if (mw.config.get('wgUserName') == "ST") {
 
   
 
   
 
alert("Hi ST");
 
alert("Hi ST");

Revision as of 03:07, 13 November 2019

/* Any JavaScript here will be loaded for all users on every page load. */

alert(mw.config.get('wgUserName'));


if (mw.config.get('wgUserName') == "ST") {
 
alert("Hi ST");

/*
 mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:AnonymousI18N.js&action=raw&ctype=text/javascript' );
  // ULS disabled until functional - T58464
  $('#pt-uls').hide();
*/
}



/*



$(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;
    });
});

*/