Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I despise web sites that hijack my right mouse button via javascript. Other browsers ( like firefox) allow me to block sites from doing this. Does chrome have such an option, or does it leave me at the mercy of annoying web site designers?

EDIT: I don't want to turn off javascript completely. I just want to block javascript from taking over my right mouse button. Firefox lets you stop javascript from doing specific things like this. I am trying to find out if Chrome does as well. I am going to assume it does not at this point.

share|improve this question

5 Answers 5

Try this Chrome extension, it specifically stops websites from blocking the right click button.

Allow Right Click

https://chrome.google.com/webstore/detail/hompjdfbfmmmgflfjdlnkohcplmboaeo

share|improve this answer
    
this looks promising! –  Peter May 10 '11 at 14:08
    
It's really disappointing chrome requires an extension for this, but it does address the problem. Voted up answer, but still looking for any better solution. –  TechZilla Mar 30 '12 at 23:44
    
This worked like a charm. I was getting ready to build my own extension. Yay for research. –  Till Sep 17 '12 at 11:45
    
@TechZilla I'm sorry but it has nothin gto do with Chrome. It's the JavaScript teeling the browser not to "do" anything when right clicking. You can override this though by going into Chrome settings and disabling Javascript scripts. And walla, you can right click. –  Karl Morrison Oct 21 '13 at 21:29
3  
@Karl Morrison: I think you may have misunderstood my criticism, I wasn't criticizing chrome for disabling the right-click menu. I was irritated that chrome doesn't provide a method to selectively disable Javascript functions. Also want to mention disabling JavaScript will render many sites nonfunctional. Firefox provides a "Disable or replace context menus" Javascript option. –  TechZilla Oct 22 '13 at 2:02

I found an acceptable solution, from About.com. It's a small bookmarklet, which by nature must be clicked to force disable this particular annoying JS. However I find it better than the Firefox style option, as many sites need right-click controlling JS. For example Google Docs etc...

At least I don't need to waste resources storing an additional extension in memory. You can watch how chrome stores extensions with its task-manager, of coarse you need an extension installed to watch.

share|improve this answer

How about this? Press F12 to bring Chrome DevTools out and navigate to Console tab and run below command

document.oncontextmenu=null;

It should bring most of the context menu back.

It should work for Firefox as well. It is not hard to remember to anyone with moderate javascript experience.

share|improve this answer

I use NotScripts

EDIT:

I have switched to ScriptNo, which has more granular control

share|improve this answer
    
Does that let you control what javascript can and can't do on a page, or does it just block javascript altogether? –  Peter May 5 '11 at 19:23
    
It blocks js by domain, each domain selectable by you, depends on what you mean by hijacks your right click, do you mean it changes your context menu? –  Moab May 5 '11 at 21:44
    
yes. i want the ability to stop javascript from using mouse click events that come from my right mouse button. –  Peter May 6 '11 at 18:51
    
Another solution non grata, but a big step above completely disabled JS. I've used FireFox noscript, which is still hardly usable, but Chrome notscripts is actually even worse. They both require a grip of manual intervention, and basically just enable/disable JS completely per domain. If you want to solve the problem, of fine-grained specific JS DOM disabling, both do not suffice. Although by skin of the teeth, it's just good enough to avoid my downvote. –  TechZilla Mar 30 '12 at 23:41
    
@TechZilla check my edit above –  Moab Mar 31 '12 at 0:20

You can easily enable/disable or allow/block javascript on any website in Google chrome. Just click on paper sign before the site url. Under permisions you will see javescript, click down arrow you will see a menu, select "Always block on this site" and reload web page so changes can take effect.

Hope this will help.

Here is link to image.

https://www.facebook.com/photo.php?fbid=10201389704683447&l=5294c0075e

share|improve this answer
    
I am not trying to block all javascript. I only want to block javascript from intercepting right mouse clicks. Some browsers give you that option. –  Peter Sep 4 '13 at 3:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.