Preventing right/middle click acting as a left click

User Help for Mozilla Firefox
Posts: 20
Joined: August 2nd, 2010, 9:06 am

Post Posted May 8th, 2019, 3:48 am

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?


User avatar
Posts: 39123
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Post Posted May 8th, 2019, 4:01 am

Moving this to Firefox Support...
Ancient Amateur Astronomer
Win-7-HP/IntelĀ® DualCore-2.0GHz/500G HDD/4 Gig Ram/550Watt PSU/350WattUPS/Firefox-20.0-62.0-70.0/T-bird-
(Always choose the "Custom" Install.)


User avatar
Posts: 10930
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted May 8th, 2019, 9:21 am

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.

Return to Firefox Support

Who is online

Users browsing this forum: Google [Bot] and 5 guests