Looking at the current tab, I'd like to close it per middle mouse click somewhere on the page (not just on the tab). Is this somehow possible in Chrome, maybe by using an extension?
3 Answers
Control+W closes the current browser tab.
So if you use a key remapping tool to remap your middle mouse button to perform that keyboard shortcut, then it will be able to close the current tab for you.
- Install X-Mouse Button Control
- Set
Middle Button
toSimulated Keys
- Enter the following custom key value:
{ctrl}w
- For
How to send the simulated key strokes
choose1 As mouse button is pressed
.
I just tested it and it works great!
-
-
You'll want to use a key mapping utility that works system wide, rather than something browser specific. I've linked to a free one and included instructions on how to figure it. 🖱️ Sep 22, 2019 at 22:05
Use AutoHotkey with the following script:
MButton::Send {RControl Down}W{RControl Up}
Install AutoHotkey, create a .ahk
file with the above contents and double-click
it for testing. When working, it shows as a green H
icon which you may
right-click and choose "Exit" to stop.
Once it's working, you may copy the file to the Startup folder.
Is it possible to close the current tab with a middle mouse click?
it is, just middle click on the cross button to close your tab
I'd like to close it per middle mouse click somewhere on the page (not just on the tab). Is this somehow possible in Chrome, maybe by using an extension?
not too sure atm, will get back to you later with an answer if i can