Preventing right/middle click acting as a left click
-
- Posts: 20
- Joined: August 2nd, 2010, 9:06 am
- Contact:
Preventing right/middle click acting as a left click
Every now and then, I will run into a site where someone has wrapped links in bad javascript that causes right and/or middle clicks to immediately load the linked page in the current tab as if I had left-clicked, which interferes very badly with the normal operation of my middle and right-click buttons, not to mention being obnoxious behavior. Usually I can just disable javascript on that site, but sometimes it happens on sites where I need javascript to work. Does anyone know of an addon that will prevent this from happening? Or can I add something to my userchrome.css?
- LIMPET235
- Moderator
- Posts: 39961
- Joined: October 19th, 2007, 1:53 am
- Location: The South Coast of N.S.W. Oz.
Re: Preventing right/middle click acting as a left click
Moving this to Firefox Support...
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.
(Always choose the "Custom" Install.)
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.
(Always choose the "Custom" Install.)
- jscher2000
- Posts: 11771
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
Re: Preventing right/middle click acting as a left click
I don't think a style rule in userChrome.css can handle a script issue. You might need an extension or userscript to bypass the click handler on that link. Whether there is a general formula for that or it needs to be site specific, I don't know.