[mdlug] Cute javascript hack

Wojtak, Greg GregWojtak at quickenloans.com
Mon Oct 5 13:04:03 EDT 2009


I've also found that letting the page load and then disabling javascript also works.  Your technique would be easier as you can bookmark them and have one-click access.  Thanks for the tip!

-----Original Message-----
From: mdlug-bounces at mdlug.org [mailto:mdlug-bounces at mdlug.org] On Behalf Of Ingles, Raymond
Sent: Monday, October 05, 2009 1:02 PM
To: MDLUG's Main discussion list
Subject: [mdlug] Cute javascript hack


 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.

_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug



More information about the mdlug mailing list