[mdlug] Cute javascript hack
Raymond McLaughlin
driveray at ameritech.net
Mon Oct 5 14:40:38 EDT 2009
Nice try Ray, but it doesn't seem to work on this page:
<http://www.metrolyrics.com/too-rolling-stoned-lyrics-robin-trower.html>
I could copy the text I wanted from the page source view, though. Any
other suggestions?
Raymond McLaughlin
Ingles, Raymond wrote:
> 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
More information about the mdlug
mailing list