This. It boggles the mind that browser vendors (and standards committee) havenāt come up with a preferences page for cookie consent. Expose that through JS and/or send it to the server via a HTTP header.
The companies who actually use these cookies don't want that, because everyone would just turn everything off forever. It would probably just kill off tons of analytics companies overnight.
(I wouldn't lament the loss of invasive analytics, but the job losses would be saddening)
It's not the browser vendors (well, save for morons from google) because there is DoNotTrack header but it's not used/enforced. EU could amend the law to include that and it would be AWESOME.