lunu-bounir / allow-right-click

A browser extension to release right-click context menu blockage
https://webextension.org/listing/allow-right-click.html
Mozilla Public License 2.0
322 stars 31 forks source link

Feature Request: Allow middle click #30

Open lucianor opened 2 years ago

lucianor commented 2 years ago

Some sites also block Middle click to open a link a in a new tab. It would be great if this extension could also take care of that (as a config) or create a new extension just with that intention.

From the code perspective, I think all the event listeners and triggers can be changed so it responds to the appropriate button, or doing a fork and just listening to the middle click event. I'll give it a try on a fork myself, but just wondering if OP would be interested on adding that feature himself/herself.

Thank you!

lunu-bounir commented 2 years ago

You need to modify https://github.com/lunu-bounir/allow-right-click/blob/master/v3/data/inject/mouse.js

Please also include a sample site with the issue