@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
15 lines (14 loc) • 496 B
JSON
{
"name": "cookie-law-info",
"prehideSelectors": ["#cookie-law-info-bar"],
"detectCmp": [{ "exists": "#cookie-law-info-bar" }],
"detectPopup": [{ "visible": "#cookie-law-info-bar" }],
"optIn": [{ "click": "[data-cli_action=\"accept\"]" }],
"optOut": [
{ "hide": ["#cookie-law-info-bar"] },
{
"eval": "CLI.disableAllCookies() || CLI.reject_close() || true"
}
],
"test": [{ "eval": "document.cookie.indexOf('cookielawinfo-checkbox-non-necessary=yes') === -1" }]
}