betterbrowser / arcfox

Make firefox flow like arc
https://arcfox.vercel.app
MIT License
932 stars 31 forks source link

Add support for middle click to close tabs #9

Closed 0xCUB3 closed 1 year ago

0xCUB3 commented 1 year ago

On mice, if you click the scroll wheel, on basically every browser, it will close the tab that you are hovering over. Would be a cool addition!

Vincent-vst commented 1 year ago

if the dev is interested in adding this. I believe it can be done like so :

window.onmousedown = (e) => {
    if (e.button === 1) {
        handleBrowserControl("close")
    }
}
LuanderFarias commented 1 year ago

Nice feature!! gonna add it soon. Also ty @Vincent-vst for the code! you always help a lot, if you want to do a pr with that update i'm gonna thankfully approve it! than you name can be marked on this repo :)

Vincent-vst commented 1 year ago

:+1: ok, I'm working on it !

Henry-Hiles commented 1 year ago

Should this be closed now that the PR is merged?

LuanderFarias commented 1 year ago

oh yeah, sorry.

LuanderFarias commented 1 year ago

gonna reopen this cause this is a problem that get back in this new version :(

LuanderFarias commented 1 year ago

Fixed again!! coming on the next update :)