Difference between revisions of "MediaWiki:Middleclick.js"

From Tycoon Gaming
Line 3: Line 3:
 
/*if ( window.location !== window.parent.location ) { */
 
/*if ( window.location !== window.parent.location ) { */
 
if(e.which === 2 ){
 
if(e.which === 2 ){
alert('test');
+
alert('Middleclick is currently Disabled due to Bugs');
 
return false; // Or e.preventDefault()
 
return false; // Or e.preventDefault()
 
}
 
}

Revision as of 19:31, 12 October 2019

function start(){
	$(document).mousedown(function(e){
		/*if ( window.location !== window.parent.location ) { */
			if(e.which === 2 ){
				alert('Middleclick is currently Disabled due to Bugs');
				return false; // Or e.preventDefault()
			}
		/*}*/
	});
}
start();