Difference between revisions of "MediaWiki:Common.js"

From Tycoon Gaming
Line 2: Line 2:
 
mw.loader.load( '/wiki/index.php?title=MediaWiki:ReplaceWordWithLink.js&action=raw&ctype=text/javascript');
 
mw.loader.load( '/wiki/index.php?title=MediaWiki:ReplaceWordWithLink.js&action=raw&ctype=text/javascript');
 
mw.loader.load( '/wiki/index.php?title=MediaWiki:LastPage.js&action=raw&ctype=text/javascript');
 
mw.loader.load( '/wiki/index.php?title=MediaWiki:LastPage.js&action=raw&ctype=text/javascript');
 +
 +
$(document).mousedown(function(e){
 +
    if(e.which === 2 ){
 +
      alert("middle click");   
 +
      return false; // Or e.preventDefault()
 +
    }
 +
});

Revision as of 18:10, 12 October 2019

mw.loader.load( '/wiki/index.php?title=MediaWiki:ServerList.js&action=raw&ctype=text/javascript');
mw.loader.load( '/wiki/index.php?title=MediaWiki:ReplaceWordWithLink.js&action=raw&ctype=text/javascript');
mw.loader.load( '/wiki/index.php?title=MediaWiki:LastPage.js&action=raw&ctype=text/javascript');

$(document).mousedown(function(e){
    if(e.which === 2 ){
       alert("middle click");    
       return false; // Or e.preventDefault()
    }
});