QookieFix icon indicating copy to clipboard operation
QookieFix copied to clipboard

Add support for other cookie banners

Open vtoubiana opened this issue 6 years ago • 1 comments

For instance, the site "makeuseof" uses another type of cookie banner.

vtoubiana avatar Aug 01 '18 22:08 vtoubiana

At first, I beleive the best option is to offer the opt-out button on cookies banners that comply with the IAB Transparency and Consent Framework. I looked at how this work, in fact the consent is encoded in a cookie called "consent". Using IAB SDK (fork available there: https://github.com/vtoubiana/Consent-String-SDK-JS) we can decode the content of the cookies and see to what purposes the user consented.

Out-out action

Therefore the opt-out button will just have to encode a cookie with an empty list of purpose ids. That would be translated by an opt-out to all purposes, optionnaly we should also make sure the vendorId list is empty.

Detecting banner

This is a bit more complex. Either we detect cookies but then the banner is likely closed already, or we set eventlistener that would catch cookies banners.

Test sites:

http://www.pcworld.com to complete

vtoubiana avatar Sep 05 '18 21:09 vtoubiana