Difference between revisions of "MediaWiki:Middleclick.js"
From Tycoon Gaming
Line 1: | Line 1: | ||
function start(){ | function start(){ | ||
− | + | if ( window.location !== window.parent.location ) { | |
− | + | $(document).mousedown(function(e){ | |
if(e.which === 2 ){ | if(e.which === 2 ){ | ||
alert('Middleclick is currently Disabled due to Bugs'); | alert('Middleclick is currently Disabled due to Bugs'); | ||
return false; // Or e.preventDefault() | return false; // Or e.preventDefault() | ||
} | } | ||
− | } | + | }); |
− | } | + | } |
} | } | ||
start(); | start(); |
Revision as of 20:00, 12 October 2019
function start(){ if ( window.location !== window.parent.location ) { $(document).mousedown(function(e){ if(e.which === 2 ){ alert('Middleclick is currently Disabled due to Bugs'); return false; // Or e.preventDefault() } }); } } start();