uBlock exists also for Safari, however you need to download it through the App Store these days. https://www.ublock.org/safari/
https://itunes.apple.com/app/adguard-for-safari/id1440147259
https://itunes.apple.com/app/apple-store/id1047223162
These two.
The one linked by fragebogen is the non-origin version which you probably do not want to use.