@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
19 lines (18 loc) • 693 B
JSON
{
"name": "Tealium",
"prehideSelectors": ["#__tealiumGDPRecModal,#__tealiumGDPRcpPrefs,#consent-layer"],
"isHidingRule": false,
"detectCmp": [{ "exists": "#__tealiumGDPRecModal" }, { "eval": "window.utag && typeof utag.gdpr === 'object'" }],
"detectPopup": [{ "visible": "#__tealiumGDPRecModal" }],
"optOut": [
{ "hide": ["#__tealiumGDPRecModal", "#__tealiumGDPRcpPrefs", "#consent-layer"] },
{ "click": "#cm-acceptNone,.js-accept-essential-cookies"}
],
"optIn": [
{ "hide": ["#__tealiumGDPRecModal"] },
{ "eval": "utag.gdpr.setConsentValue(true)" }
],
"test": [
{ "eval": "utag.gdpr.getConsentState() !== 1" }
]
}