Skip to content

Instantly share code, notes, and snippets.

@rukshn
Created October 24, 2014 17:44
Show Gist options
  • Save rukshn/edd64d4f6a5d1d7edd5c to your computer and use it in GitHub Desktop.
Save rukshn/edd64d4f6a5d1d7edd5c to your computer and use it in GitHub Desktop.
Enable right click at topjobs.lk
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");
@rukshn
Copy link
Author

rukshn commented Oct 24, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment