Wow! Now that‘s a reason to switch browsers!
I can‘t believe it took until now for someone to make this. Also wonder why Apple hasn‘t already done this in Safari. Seems like an obvious idea for a privacy-focused company.
There are safari extensions for that.
Like this one.

Consent-O-Matic
Cookie pop-ups are designed to be confusing and make you 'agree' to be tracked. This add-on automatically answers consent pop-ups for you, so you can't be manipulated. Set your preferences once, and let the technology do the rest! This add-on is built and maintained by workers at Aarhus...
