QookieFix
QookieFix copied to clipboard
Add support for other cookie banners
For instance, the site "makeuseof" uses another type of cookie banner.
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