How to: Enable right clicks if disabled on web pages

Today I was on WordPress’s support forum looking at some thread when I came a cross a thread where OP is asking for a support and site reviewing.

First thing I noticed was that there’s not any title for the home page, Hmm… That’s when I made a right-click to see the page source and this error message poped up to me.

This Site Is Protected By A A$$-Kicking Security System That Will Kick Your A$$

Srsly? WTF?! Yes, Copying websites is not cool; but disabling right click isn’t either. I know lots of you guys hate that kind of stuff.

How do I enable right clicks then?

You can easily overcome that kind of “Security” by entering the following javascript code in the address bar in your browser
javascript:void(document.oncontextmenu=null)

Like in this image

address-bar-javascript

Hit Enter and you’re done; Right clicks are now back on.

Bonus tricks:
1. In Firefox browser, Go to: Tools -> Options -> Content -> Advanced Javascript settings -> Then choose to enable or disable context menu.

2. Hold down the right mouse button
The error message will appear, Hit Enter. (Without releasing the mouse button, You’re still holding it down)
Once you hit enter, the message will disappear.
Now you can release the right-click and the it’ll work 😉

[ad#bottom]

{ 7 comments… read them below or add one }

Cubaic June 2, 2010 at 2:55 PM

Nice post, The javascript one is good specially that it works in all browsers.

You can use Shift+F10 too

Reply

Ted June 2, 2010 at 2:58 PM

Thanks Cubaic.

Well, Shift+F10 does the trick sometimes, But it’s not always guaranteed. Try it on this page for example…
http://www.users.totalise.co.uk/~bigoleg/javascript/javascript_disable_right_click.html

Reply

Dave July 4, 2010 at 2:35 PM

To extend this tip so it’s even more useful, you can create a bookmark with the JavaScript as the target URL. In firefox, simply right-click the bookmarks bar and “Add Bookmark…”. Give it a name, and paste the JavaScript into “Location:”. Or in Chrome, right-click the bookmarks bar and “Add Page…”.

Reply

hairymary October 9, 2010 at 11:57 PM

I have just tried Ted’s link, i managed to get around it in safari,goto develop then disable javascript and you can then right click.

Reply

MJ February 22, 2011 at 8:35 AM

Why it’s not functioning, even the shift+f10…
can you give the whole (detail) steps for me…

I wont use this for bad thing… Swear! So please help me

Reply

sanyam jain October 17, 2012 at 6:45 PM

wow… that was great tip… i was annoyed by a site but now i can hijack them…lolzz

Reply

sagar November 5, 2012 at 9:37 AM

Thanks for the tip !

Reply

Leave a Comment

Previous post:

Next post: