@cliqz/autoconsent
Version:
This is a library of rules for navigating through common consent popups on the web. These rules can be run in a Firefox webextension, or in a puppeteer orchestrated headless browser. Using these rules, opt-in and opt-out options can be selected automatica
26 lines • 815 B
JSON
{
"name": "conversant",
"detectCmp": [
{
"eval": "window.cmpConfig && window.cmpConfig.methods && typeof window.cmpConfig.methods.summon === 'function'"
}
],
"detectPopup": [{ "exists": "#gdpr-modal-landing-body" }],
"optOut": [
{ "click": "#gdpr-modal-learn-more" },
{ "click": "#gdpr-modal-all-purpose-opt-out" },
{ "click": "#gdpr-modal-collapse-vendor .gdpr-modal-shrink" },
{ "click": ".gdpr-modal-button-continue" }
],
"optIn": [{ "click": ".gdpr-modal-button-continue" }],
"openCmp": [{ "eval": "cmpConfig.methods.summon()" }],
"test": [
{
"eval": "__cmp('getVendorConsents', undefined, r => window.__rcsResult = r) || true"
},
{ "wait": 500 },
{
"eval": "Object.values(window.__rcsResult.vendorConsents).every(c => !c)"
}
]
}