Tell me more ×
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

4 Answers

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

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

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 block JavaScript from a domain by going into Preferences -> Under the Hood -> Content Settings -> JavaScript: Do not allow any site to run JavaScript.

You can change this on a per-site basis by clicking into "Manage Exceptions", or as you browse by clicking the icon on the right side of the location bar (next to the bookmark button) and selecting "Always allow JavaScript on superuser.com".

share|improve this answer
4  
I don't think he wants to block all javascript from a particular site. He just wants to disable a site's ability to change the functionality of the right-click context menu. – Ryan Bolger May 4 '11 at 20:13
Ryan is correct. I only want to block javascript from stealing the right mouse click events. – Peter May 5 '11 at 19:20
the author specified against this on edit, although it should not have been demanded. It is beyond obvious, completely disabling JS is a solution non grata. Circa `99, it was more than possible to browse without JS. In the present WWW without JS, you are prevented from even basic web browsing. – TechZilla Mar 30 '12 at 23:35

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.