Macos – How to force Chrome to open all links in the current tab

google-chromemacos

How can I force Chrome to open all links in the current tab?

Does anyone know if there is an extension for that? It's very annoying that every time I click on links they are be opened in new tabs.

I want it acting like Safari does – just opening the links in the current tab unless I press Cmd when clicking the links.

Best Answer

There is an extension called OpenHere that will do this. It will add the option in the right click context menu Open in This Window. Just right clcik on the link you want to open in the same tab.

Edit in response to comment:

You can do it with AutoHotkey. You have need to download it and install it on your PC. After that just copy the code below and save it with a .ahk extension.

SetTitleMatchMode, RegEx
#IfWinActive, - Google Chrome$
!RButton::  
    !LButton::  
        KeyWait, Alt  
        Click, Right  
        SendInput, e  
        ControlFocus, Chrome_OmniboxView1  
        SendInput, ^a{Backspace}  
        SendInput, ^v{Enter}   
        return
#IfWinActive

Now when you press Alt + LClick, it will copy the link to the clipboard and past it in the address bar of Chrome. Just press the button and click and release with the click and the link will open in the same tab.

Related Question