Tuesday, December 8, 2009

Remove "right click disabled" from web page

Quick hack. Just for the fun of it.

1. Download the web page.
2. Open the html in any text editor. (Notepad/wordpad...)
3. Search for "onmousedown" in the code. This should be
part of some Java script like:

function right(e) {
var msg = "Sorry... Not allowed to copy";
if (navigator.appName == 'Netscape' && e.which == 3) {
return false;
if (navigator.appName == 'Microsoft Internet Explorer' &&
event.button==2) {
return false;
return true;
document.onmousedown = right;

4. Delete that entire block of code. Save the page.
5. Re-open page in a browser and et-voila... right click works :)