UNPKG

@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

18 lines (17 loc) 589 B
{ "name": "Tealium", "detectCmp": [{ "exists": "#__tealiumGDPRecModal" }, { "eval": "typeof utag.gdpr === 'object'" }], "detectPopup": [{ "visible": "#__tealiumGDPRecModal" }], "optOut": [ { "hide": ["#__tealiumGDPRecModal", "#__tealiumGDPRcpPrefs"] }, { "eval": "utag.gdpr.setPreferencesFromList([])" }, { "eval": "utag.gdpr.setConsentValue(0)" } ], "optIn": [ { "hide": ["#__tealiumGDPRecModal"] }, { "eval": "utag.gdpr.setConsentValue(true)" } ], "test": [ { "eval": "utag.gdpr.getConsentState() === -1" } ] }