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

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.


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.


If autohotkey is is the way you want to go, there's a much simpler way of doing it:

#IfWinActive ahk_exe chrome.exe
    !LButton::
        Send, ^{LButton}
        Send, ^{F4}
    return
#IfWinActive

This just ctrl-clicks wherever the mouse is and then closes the current tab when you alt-click anywhere on a chrome tab. And since it isnt sophisticated enough to activate ONLY when clicking on a link, you could also use it as a shortcut to close the current tab by alt-clicking anywhere on the tab.