It was bugging me that middle clicking a link in Chrome opened in a new tab behind the other tabs. I found out the standard combination to open in a new foreground tab is Control-Shift-Left Click on the link. I don't like holding down 2 keys as it's just awkward. I made this ahk to do the job on middle mouse click. Thought someone else may find it handy. You can even use it with Speed-dial. The dial you middle click will open in a new tab in foreground instead of replacing the Speed-dial page:
edit: since posting it's become evident this interferes with mouse middle click drag to scroll in the browser. I just changed the hotkey to ^LButton. At least I don't have to hold down 2 keys while clicking.
Code
SendMode Input
#IfWinActive, ahk_class Chrome_WidgetWin_0
^LButton::
Send, ^+{LButton}
Returnedit: since posting it's become evident this interferes with mouse middle click drag to scroll in the browser. I just changed the hotkey to ^LButton. At least I don't have to hold down 2 keys while clicking.



