Middle-Click New Tab Chrome/Edge/Brave
Middle-click the empty area of the tab bar to open a new tab (Chrome/Edge/Brave)
Author: erenalpars
Middle-click the empty area of the tab bar (between the "+" button and the
minimize/maximize/close buttons) to open a new tab, just like clicking "+".

Currently supported browsers: Google Chrome, Microsoft Edge, Brave. Other
Chromium-based browsers may work too: add their executable in the mod's
Advanced settings (custom process inclusion list).
The empty tab bar area is detected using the window's hit-testing: Chrome
reports it as a caption (draggable) area, while tabs and buttons are reported
as client area. By default, only caption areas that have a tab or a button
between them and the side away from the window buttons are used, so the thin
drag strip above the tabs and the area before the first tab are ignored. This
also works with right-to-left UI languages, where the tab bar is mirrored.
With vertical tabs, the empty area below the tabs works too. Chrome and Brave
report it as a caption area as well, but Edge reports it as client area, so in
Edge it's detected with UI Automation instead: on a middle-click in Edge's
client area, the mod looks for the tab strip at the clicked point, without
querying the web page itself. This happens with any tab layout, e.g. also when
middle-clicking a bookmark, except in the rows of a horizontal tab strip.
Middle-clicks on web pages, such as on links, aren't checked, as Edge doesn't
pass them on as regular mouse messages. As a side effect, after the first
checked click, Edge enables its native accessibility API support (shown in
edge://accessibility) until it's restarted, but not web content
accessibility. To avoid this, turn off the "Edge vertical tabs" setting.
Installed web apps (PWAs) are ignored, since they have a title bar instead of a
tab bar.
The new tab is opened with the browser's "new" app command (the same command as
Ctrl+T), so no keyboard input is simulated.