Most of the time when you click on a link while using Safari, it opens a new window instead of a tab.

So here’s a trick to make Safari behave like Firefox. Open Terminal, (/Applications/Utilities/) or use spotlight and type in terminal and copy paste the following command:

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

then Enter

You then have to restart Safari for it to work. All clicked links will now open in a new tab. If you want to revert to the default behavior of Safari just repeat the steps but replace “true” with “false.”