Ask HN: EU Cookie Law Element Standardization?

2 points by jasonkostempski ↗ HN
I'm sick of seeing these things. If we could all agree to give the elements a unique class name like "useless-eu-cookie-law-notice", a simple element blocking rule for uBlock Origin would solve the issue.

I think there are already some blocking lists out there, but that seems like a silly thing to waste time maintaining given neither web master or user wants them to exist in the first place.

2 comments

[ 3.0 ms ] story [ 14.9 ms ] thread
Perhaps a more structured class name would be better, such as "legal-eu-cookies"? Then similar names could be used for other legal notices, such as "legal-us-children" and "legal-eu-gdpr".

Then someone outside the EU could block everything that starts with "legal-eu-" to get rid of everything added to comply with EU law, and someone outside the US could block "legal-us-" to get rid of everything added to comply with US law.

(Do the major blockers allow blocking based on a prefix of a class name? If not, the same effect can be achieved by giving the element multiple class names such as "legal- legal-eu- legal-eu-cookies").

People might want to block by subject regardless of what jurisdiction's laws caused something, which suggests there should also be "legal-gdpr-eu", so if the US passes a similar privacy law someday that could by "legal-gdpr-us", and someone could block "legal-gdpr-" if they don't want to see any of these kinds of notices. But the US probably would not call its similar law "GDPR", so may it would be better if instead of "gdpr", we start with "legal-eu-privacy-gdpr" and "legal-privacy-eu-gdpr"? Then a similar US law would get "legal-us-privacy-x" and "legal-privacy-us-x" where "x" is whatever tortured acronym name Congress comes up with. (And probably cookies then belong under legal-eu-privacy-cookies).

This is getting complicated enough that it might be better to go to some kind of tag based system, with tags implemented by class names of the form "legal-NAME-VALUE" (for now, I'm assuming this is all for blocking regulator imposed legal notices, hence all tags started with "legal-").

Tags that might be used for the earlier examples include:

  legal-jurisdiction-eu
  legal-jurisdiction-us
  legal-category-privacy
  legal-category-children
  legal-law-gdpr
  legal-law-dumb_us_acronym
  legal-law-cookies
  legal-law-copra
So GDPR notices would be tagged "legal-jurisdiction-eu legal-category-privacy legal-law-gdpr". Notices about protecting children in the US would be tagged "legal-jurisdiction-us legal-category-children legal-law-copra".

For this to both be useful and not become an ungainly mess to deal with, it would need probably be carefully thought out beforehand, and have some group maintaining and managing a registry of supported tags, and making sure any additions to the list are well thought out and consistent. It could be a lot of work.

I actually came back here to add that same idea, but why does jurisdiction matter? I was thinking a single tag like "legally-required-readonly-notification-container", for any notice that doesn't require user action for the page to work. I think any of the child targeted notices usually require user action to proceed. Those aren't nearly as prevalent or annoying. The attempt at age ratings/restrictions on content is just as silly as the cookie thing, but it's nice to have those 18+ things come up after blindly following a link at work or in public.