@Omrrc AdGuard for Safari can do this. It’s also one of the best content blockers I’ve tried.