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

14 lines (13 loc) 437 B
{ "name": "cookie-law-info", "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()" } ], "test": [{ "eval": "document.cookie.indexOf('cookielawinfo-checkbox-non-necessary=yes') === -1" }] }