Difference between revisions of "MediaWiki:Middleclick.js"

From Tycoon Gaming
Line 1: Line 1:
$(document).mousedown(function(e){
+
function start(){
/*if ( window.location !== window.parent.location ) { */
+
$(document).mousedown(function(e){
if(e.which === 2 ){
+
/*if ( window.location !== window.parent.location ) { */
return false; // Or e.preventDefault()
+
if(e.which === 2 ){
}
+
return false; // Or e.preventDefault()
/*}*/
+
}
});
+
/*}*/
 +
});
 +
}
 +
start();

Revision as of 19:30, 12 October 2019

function start(){
	$(document).mousedown(function(e){
		/*if ( window.location !== window.parent.location ) { */
			if(e.which === 2 ){
				return false; // Or e.preventDefault()
			}
		/*}*/
	});
}
start();