The DuckDuckGo browser has this baked in as 'Cookie Pop-up Protection'. It doesn't quite get rid of them all, and doesn't let you set a default for what you want (it'll basically pick the most privacy-forward option) but I've found it works pretty well.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments