About

AssembleMe is an information science blog written by Julius Schorzman that frequently sways off-topic.

Julius is the CEO of the Google Ventures backed company DailyCred. DailyCred makes working with OAuth super duper simple.

To view some of my old projects, visit Shopobot or CodeCodex.

You can follow me on Twitter if you really want to @schorzman.

Search
Contact Me
This form does not yet contain any fields.
    « "Good morning. You have 457 voice-mail messages." | Main | Overpriced College Text Books, Meet Bit Torrent »
    Wednesday
    Aug112004

    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.

    Reader Comments (1)

    Someone should make a firefox extension that overrides any right click javascript.

    August 11, 2004 | Unregistered CommenterAnonymous

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>