autoconsent icon indicating copy to clipboard operation
autoconsent copied to clipboard

Autoconsent standard

Open royarisse opened this issue 1 year ago • 0 comments

I would like to suggest an autoconsent-standard that can be used by website developers / cookie-consent developers.

Assume a website has the following code for the cookie-consent's "OK" button: <a data-autoconsent="true">OK</a>

Then this could work as follows:

  1. This library looks for elements with a data-autoconsent attribute;
  2. If the library finds such an element, it fires a click-event;
  3. Website-owner implements a (javaScript) listener for the click event and closes the cookie-popup, assuming minimal (functional) cookies.

Perhaps a standard already exists, if so please let me know. I'm looking forward to your opinion :)

--

For reference, see: https://github.com/ghostery/autoconsent/issues/39

royarisse avatar May 25 '23 12:05 royarisse