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

29 lines 737 B
{ "name": "Civic", "detectCmp": [{ "exists": "section#ccc" }], "detectPopup": [{ "visible": ".ccc-notify-buttons,#cookie-control-modal" }], "optIn": [ { "click": ".ccc-notify-buttons > button:nth-of-type(2),.js-toggle-cookie-control" }, { "waitFor": "#ccc-content" }, { "click": "input.checkbox-toggle-input:not(:checked)", "all": true, "optional": true }, { "click": "#ccc-close" } ], "optOut": [ { "click": ".ccc-notify-buttons > button:nth-of-type(2),.js-toggle-cookie-control" }, { "waitFor": "#ccc-content" }, { "click": "input.checkbox-toggle-input:checked", "all": true, "optional": true }, { "click": "#ccc-close" } ] }