X
Tap here to go to the mobile version of the site.

Support Forum

Websites using script to hijack right-click mouse menu, how to stop hijack?

Posted

First off I use No-script.

But I am encountering some sites, that is putting hijacking of the right mouse click menu in the primary script element of the site itself.

So to stop the hijacking, I have to have noscript block say "google.com" script, when going to the google.com page. But this renders the site itself as unusable.

Usually what the hijacking does, when right-clicking anywhere on the page, is sends you to advertising links.

I often times right click on pages to access controls to add "Block elements" to "Ublock" For the annoying advertising like "flash based" that ABP has been letting through. Non intrusive advertising my bottom.

This is beyond unacceptable behavior by sites. Why do webmasters not get it? forcing advertising or disruptive advertising only galvanizes the visitor to block ALL advertising, On every site. One bad apple ruins it for the rest so to speak.

So I am asking how to I stop sites from hijacking my mouse controls? When the hijack is embedded within the primary script the site needs to function? Where disabling that particular script is not an option in order to use the site.

First off I use No-script. But I am encountering some sites, that is putting hijacking of the right mouse click menu in the primary script element of the site itself. So to stop the hijacking, I have to have noscript block say "google.com" script, when going to the google.com page. But this renders the site itself as unusable. Usually what the hijacking does, when right-clicking anywhere on the page, is sends you to advertising links. I often times right click on pages to access controls to add "Block elements" to "Ublock" For the annoying advertising like "flash based" that ABP has been letting through. Non intrusive advertising my bottom. This is beyond unacceptable behavior by sites. Why do webmasters not get it? forcing advertising or disruptive advertising only galvanizes the visitor to block ALL advertising, On every site. One bad apple ruins it for the rest so to speak. So I am asking how to I stop sites from hijacking my mouse controls? When the hijack is embedded within the primary script the site needs to function? Where disabling that particular script is not an option in order to use the site.

Chosen solution

There is a setting in Firefox you can change that should allow you to always have access Firefox's normal right-click context menu.

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste contex and pause while the list is filtered

(3) Double-click the dom.event.contextmenu.enabled preference to switch it from true to false

Notes:

(1) With this change, when you want to access a site's custom context menu, you can "peel off" Firefox's menu from in front of it by pressing and releasing the Alt key.

(2) If the site displays a prompt, you may need to interact with the prompt first before Firefox's menu displays (e.g., http://www.jeffersonscher.com/)

(3) Obviously sites are aware of this and may have found ways to hack around it. If there are particular problem pages, do you want to provide a link?

There's also this add-on I haven't tried: https://addons.mozilla.org/firefox/addon/righttoclick/

Read this answer in context 2

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 11.91.2 for Mozilla browsers
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Shockwave Flash 22.0 r0
  • 5.1.40728.0

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0

More Information

jscher2000
  • Top 10 Contributor
8839 solutions 72253 answers

Chosen Solution

There is a setting in Firefox you can change that should allow you to always have access Firefox's normal right-click context menu.

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste contex and pause while the list is filtered

(3) Double-click the dom.event.contextmenu.enabled preference to switch it from true to false

Notes:

(1) With this change, when you want to access a site's custom context menu, you can "peel off" Firefox's menu from in front of it by pressing and releasing the Alt key.

(2) If the site displays a prompt, you may need to interact with the prompt first before Firefox's menu displays (e.g., http://www.jeffersonscher.com/)

(3) Obviously sites are aware of this and may have found ways to hack around it. If there are particular problem pages, do you want to provide a link?

There's also this add-on I haven't tried: https://addons.mozilla.org/firefox/addon/righttoclick/

There is a setting in Firefox you can change that should allow you to always have access Firefox's normal right-click context menu. (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button promising to be careful. (2) In the search box above the list, type or paste '''contex''' and pause while the list is filtered (3) Double-click the '''dom.event.contextmenu.enabled''' preference to switch it from true to false Notes: (1) With this change, when you want to access a site's custom context menu, you can "peel off" Firefox's menu from in front of it by pressing and releasing the Alt key. (2) If the site displays a prompt, you may need to interact with the prompt first before Firefox's menu displays (e.g., [http://www.jeffersonscher.com/]) (3) Obviously sites are aware of this and may have found ways to hack around it. If there are particular problem pages, do you want to provide a link? There's also this add-on I haven't tried: https://addons.mozilla.org/firefox/addon/righttoclick/

Question owner

https://addons.mozilla.org/firefox/addon/righttoclick/ <<<<---- solves the problem for those who do not want to mess with "about:config".

Thankyou :)

https://addons.mozilla.org/firefox/addon/righttoclick/ <<<<---- solves the problem for those who do not want to mess with "about:config". Thankyou :)