3

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?

enter image description here

1
  • Most Logitech brand mice have this ability if you install the Logitech software and configure it.
    – Moab
    Sep 22, 2019 at 16:37

3 Answers 3

3

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.

  1. Install X-Mouse Button Control
  2. Set Middle Button to Simulated Keys

enter image description here

  1. Enter the following custom key value: {ctrl}w
  2. For How to send the simulated key strokes choose 1 As mouse button is pressed.

enter image description here

I just tested it and it works great!

2
  • Nice idea! What do I need to remap? A Chrome extension?
    – orschiro
    Sep 22, 2019 at 19:53
  • 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
1

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.

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .