Assemble Me
2004-08-10
  Amazon: noRightClick(e)
INFO SCIENCE: Amazon adds this little bit of code to disable your right click context menu when you're using their "look inside the book" feature. Click here to see for yourself.


function noRightClick(e) {
if (document.layers || document.getElementById && !document.all) {
if (e.which == 2 || e.which == 3) {
document.captureEvents(Event.MOUSEDOWN);
return false;
}
} else if (document.all && !document.getElementById) {
if (event.button == 2)
return false;
}
}
function noContextMenu () {
return false;
}
document.onmousedown = noRightClick;
document.oncontextmenu = noContextMenu;


What annoying bastards. In Firefox, just go to Options -> Web Features -> Disable JavaScript to get your right click back for saving images and the like.
 
Comments:
Someone should make a firefox extension that overrides any right click javascript.
 
Post a Comment

Subscribe to Post Comments [Atom]





<< Home
A Blog About Constructing Information; Some Assembly Required

Archives
2004-05 / 2004-06 / 2004-07 / 2004-08 / 2004-09 / 2004-10 / 2004-11 / 2004-12 / 2005-01 / 2005-02 / 2005-03 / 2005-04 / 2005-05 / 2005-06 / 2005-07 / 2005-08 / 2006-04 / 2007-02 / 2007-03 / 2007-11 / 2008-04 /


Powered by Blogger

Subscribe to
Posts [Atom]