… It’s as simple as opening a terminal window and pasting in the following line:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
Shut down Safari and restart it and off you go! From now on clicks that would normally open a whole new browser window will instead be targeted in a new tab in your current Safari window.