[mdlug] Cute javascript hack

Ingles, Raymond Raymond.Ingles at compuware.com
Mon Oct 5 13:01:53 EDT 2009


 Some websites use javascript to disallow using the right mouse button
as a context menu. Snopes.com is the first one I've seen disallowing the
*left* mouse button so you can't cut and paste. Fortunately, it's
relatively easy to bypass this. I have a couple of bookmarks:

Name: Give me my left mouse button back!
Location: javascript:void(document.onmousedown=null)

Name: Give me my right mouse button back!
Location: javascript:void(document.oncontextmenu=null)

 Just select the bookmark and, voila, your mouse works the way it's
supposed to. I thought others might appreciate knowing this.

 Sincerely,

 Ray Ingles                                                  (313)
227-2317

 "We must not confuse dissent with disloyalty. We must remember always
that
 accusation is not proof, and that conviction depends upon evidence and
due
  process of law. We will not walk in fear, one of another. We will not
be
 driven by fear into an age of unreason, if we dig deep in our history
and
 our doctrine, and remember that we are not descended from fearful men,
not
 from men who feared to write, to speak, to associate, and to defend
causes
     that were for the moment unpopular." - Edward R. Murrow, 1954

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.




More information about the mdlug mailing list