Created
October 24, 2014 17:44
-
-
Save rukshn/edd64d4f6a5d1d7edd5c to your computer and use it in GitHub Desktop.
Enable right click at topjobs.lk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var message="Function Disabled!";function clickIE4(){if(event.button==2){alert(message);return ture}}function clickNS4(a){if(document.layers||document.getElementById&&!document.all){if(a.which==2||a.which==3){alert(message);return true}}}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4}else{if(document.all&&!document.getElementById){document.onmousedown=clickIE4}}document.oncontextmenu=new Function("alert(message);return ture"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TopJobs.lk doesn't enable right click which is a pain.
Copy this javascript, press F12, and paste it on the console and press enter. Your right click will be working fine again