@duckduckgo/autoconsent 16.56.0 → 16.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/manifest.json +1 -1
  4. package/dist/addon-firefox/rule-index.json +1 -1
  5. package/dist/addon-firefox/rules.json +1 -1
  6. package/dist/addon-mv3/compact-rules.json +1 -1
  7. package/dist/addon-mv3/manifest.json +1 -1
  8. package/dist/addon-mv3/rule-index.json +1 -1
  9. package/dist/addon-mv3/rules.json +1 -1
  10. package/dist/autoconsent.standalone.js +1 -1
  11. package/package.json +1 -1
  12. package/rules/autoconsent/abebooks.json +13 -0
  13. package/rules/autoconsent/arto.json +30 -0
  14. package/rules/autoconsent/bundesarchiv-cookiebanner.json +21 -0
  15. package/rules/autoconsent/cookieyes-legacy.json +24 -0
  16. package/rules/autoconsent/django-gdpr-cookie-consent.json +23 -0
  17. package/rules/autoconsent/elektro-material-ch.json +13 -0
  18. package/rules/autoconsent/fixpart.json +30 -0
  19. package/rules/autoconsent/ford-dse.json +12 -0
  20. package/rules/autoconsent/groupama.fr.json +34 -0
  21. package/rules/autoconsent/kolibri-cookie-widget.json +12 -0
  22. package/rules/autoconsent/liferay-cookies-banner.json +34 -0
  23. package/rules/autoconsent/profiler-dk.json +29 -0
  24. package/rules/autoconsent/rcs-cpmt.json +28 -0
  25. package/rules/autoconsent/stellantis-psa.json +50 -0
  26. package/rules/autoconsent/warning-cookie-notice.json +9 -0
  27. package/rules/autoconsent/yle-consent-sdk.json +30 -0
  28. package/rules/compact-rules.json +1 -1
  29. package/rules/rule-index.json +1 -1
  30. package/rules/rules.json +1 -1
  31. package/tests/abebooks.spec.ts +10 -0
  32. package/tests/arto.spec.ts +3 -0
  33. package/tests/bundesarchiv-cookiebanner.spec.ts +7 -0
  34. package/tests/cookieyes-legacy.spec.ts +11 -0
  35. package/tests/django-gdpr-cookie-consent.spec.ts +14 -0
  36. package/tests/elektro-material-ch.spec.ts +3 -0
  37. package/tests/fixpart.spec.ts +6 -0
  38. package/tests/ford-dse.spec.ts +3 -0
  39. package/tests/groupama.fr.spec.ts +3 -0
  40. package/tests/kolibri-cookie-widget.spec.ts +3 -0
  41. package/tests/liferay-cookies-banner.spec.ts +9 -0
  42. package/tests/profiler-dk.spec.ts +3 -0
  43. package/tests/rcs-cpmt.spec.ts +15 -0
  44. package/tests/stellantis-psa.spec.ts +9 -0
  45. package/tests/warning-cookie-notice.spec.ts +9 -0
  46. package/tests/yle-consent-sdk.spec.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "16.56.0",
3
+ "version": "16.57.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "abebooks",
3
+ "vendorUrl": "https://www.abebooks.com/",
4
+ "prehideSelectors": ["#abe-gdpr-banner #gdpr-banner-component"],
5
+ "detectCmp": [{ "exists": "#abe-gdpr-banner #gdpr-banner-component-decline-btn" }],
6
+ "detectPopup": [{ "visible": "#gdpr-banner-component" }],
7
+ "optIn": [{ "waitForThenClick": "#gdpr-banner-component-consent-btn" }],
8
+ "optOut": [
9
+ { "waitForThenClick": "#gdpr-banner-component-decline-btn" },
10
+ { "waitForVisible": "#gdpr-banner-component", "check": "none", "timeout": 2000, "optional": true }
11
+ ],
12
+ "test": [{ "cookieContains": "abeconsent=%221%3A1%2C2%3A0%2C3%3A0%2C4%3A0%22" }]
13
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "arto",
3
+ "cosmetic": false,
4
+ "prehideSelectors": [".Dialog:has(.ConsentManager)"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".ConsentManager[data-controller~='consent-manager']"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".ConsentManager button[data-action*='consent-manager#denyAll']"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".ConsentManager button[data-action*='consent-manager#allowAll']"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".ConsentManager button[data-action*='consent-manager#denyAll']"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "arto-consent=signature"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "bundesarchiv-cookiebanner",
3
+ "prehideSelectors": [".cookiebanner--tablist", "#cookiebanner[data-cookiebanner]"],
4
+ "detectCmp": [{ "exists": ".cookiebanner [data-consent=\"acceptSelection\"]" }],
5
+ "detectPopup": [{ "visible": ".cookiebanner [data-consent=\"acceptSelection\"]" }],
6
+ "optIn": [
7
+ {
8
+ "if": { "exists": ".cookiebanner [data-consent=\"acceptAll\"]" },
9
+ "then": [{ "waitForThenClick": ".cookiebanner [data-consent=\"acceptAll\"]" }],
10
+ "else": [{ "waitForThenClick": ".cookiebanner [data-consent=\"acceptSelection\"]" }]
11
+ }
12
+ ],
13
+ "optOut": [
14
+ {
15
+ "if": { "exists": ".cookiebanner input[type=\"checkbox\"]:checked:not(:disabled)" },
16
+ "then": [{ "click": ".cookiebanner input[type=\"checkbox\"]:checked:not(:disabled) + label", "all": true }]
17
+ },
18
+ { "waitForThenClick": ".cookiebanner [data-consent=\"acceptSelection\"]" }
19
+ ],
20
+ "test": [{ "waitForVisible": ".cookiebanner [data-consent=\"acceptSelection\"]", "timeout": 2000, "check": "none" }]
21
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "cookieyes-legacy",
3
+ "vendorUrl": "https://www.cookieyes.com/",
4
+ "prehideSelectors": ["#cky-consent.cky-consent-bar"],
5
+ "detectCmp": [{ "exists": "#cky-consent.cky-consent-bar" }],
6
+ "detectPopup": [{ "visible": "#cky-consent.cky-consent-bar" }],
7
+ "optIn": [{ "waitForThenClick": "#cky-consent #cky-btn-accept" }],
8
+ "optOut": [
9
+ {
10
+ "if": { "visible": "#cky-consent #cky-btn-reject" },
11
+ "then": [{ "waitForThenClick": "#cky-consent #cky-btn-reject" }],
12
+ "else": [
13
+ { "waitForThenClick": "#cky-consent #cky-btn-settings" },
14
+ { "waitForVisible": "#cky-btn-custom-accept" },
15
+ { "click": "input[id^=cky-checkbox-category]:checked:not(:disabled)", "all": true, "optional": true },
16
+ { "click": "#cky-btn-custom-accept" }
17
+ ]
18
+ }
19
+ ],
20
+ "test": [
21
+ { "cookieContains": "cky-action=yes" },
22
+ { "any": [{ "cookieContains": "cky-consent=no" }, { "cookieContains": "cookieyes-analytics=no" }] }
23
+ ]
24
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "django-gdpr-cookie-consent",
3
+ "prehideSelectors": ["#cc_modal_dialog", "#cc_modal_window"],
4
+ "detectCmp": [{ "exists": "#cc_section_quick_info #cc_accept_all_cookies" }],
5
+ "detectPopup": [{ "visible": "#cc_section_quick_info #cc_accept_all_cookies" }],
6
+ "optIn": [
7
+ { "waitForThenClick": "#cc_accept_all_cookies" },
8
+ { "waitForVisible": "#cc_section_quick_info", "check": "none", "timeout": 10000 }
9
+ ],
10
+ "optOut": [
11
+ {
12
+ "if": { "exists": "#cc_reject_all_cookies" },
13
+ "then": [{ "waitForThenClick": "#cc_reject_all_cookies" }],
14
+ "else": [
15
+ { "waitForThenClick": "#cc_manage_cookies" },
16
+ { "waitForThenClick": "#cc_reject_all" },
17
+ { "click": "#cc_save_preferences" }
18
+ ]
19
+ },
20
+ { "waitForVisible": "#cc_section_quick_info", "check": "none", "timeout": 10000 }
21
+ ],
22
+ "test": [{ "cookieContains": "cookie_consent=" }]
23
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "elektro-material-ch",
3
+ "cosmetic": true,
4
+ "vendorUrl": "https://elektro-material.ch/",
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?elektro-material\\.ch/"
7
+ },
8
+ "prehideSelectors": [".cookie-bar__wrapper:has(.cookie-bar__message--top)"],
9
+ "detectCmp": [{ "exists": ".cookie-bar__wrapper .cookie-bar__message--top" }],
10
+ "detectPopup": [{ "visible": ".cookie-bar__wrapper .cookie-bar__container" }],
11
+ "optIn": [{ "waitForThenClick": ".cookie-bar__wrapper button.cookie-bar__button" }],
12
+ "optOut": [{ "hide": ".cookie-bar__wrapper:has(.cookie-bar__message--top)" }]
13
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "fixpart",
3
+ "vendorUrl": "https://fixpart.nl/",
4
+ "prehideSelectors": [".fp-cookie-modal"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".fp-cookie-modal .cookie-essentials"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".fp-cookie-modal"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".fp-cookie-modal button.cookie-accept"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".fp-cookie-modal a.cookie-essentials"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "cookie_consent=essentials"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "ford-dse",
3
+ "prehideSelectors": [".dse-cookie-disclaimer"],
4
+ "detectCmp": [{ "exists": ".dse-cookie-disclaimer .cta-decline-cookies" }],
5
+ "detectPopup": [{ "visible": ".dse-cookie-disclaimer.cookie-visible:not(.cookie-hidden) .cta-decline-cookies" }],
6
+ "optIn": [{ "waitForThenClick": ".dse-cookie-disclaimer .cta-accept-cookies" }, { "waitFor": ".dse-cookie-disclaimer.cookie-hidden" }],
7
+ "optOut": [
8
+ { "waitForThenClick": ".dse-cookie-disclaimer .cta-decline-cookies" },
9
+ { "waitFor": ".dse-cookie-disclaimer.cookie-hidden" }
10
+ ],
11
+ "test": [{ "cookieContains": "%22targeting%22%3Afalse" }]
12
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "groupama.fr",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?groupama\\.fr/"
5
+ },
6
+ "prehideSelectors": ["#perfModal"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#perfModal #refuseCookies"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#perfModal"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "#perfModal #acceptCookies:not(.perfModal__btn__frozen)",
20
+ "timeout": 10000
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#perfModal #refuseCookies:not(.perfModal__btn__frozen)",
26
+ "timeout": 10000
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "cookieContains": "OptanonAlertBoxClosed="
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "kolibri-cookie-widget",
3
+ "prehideSelectors": ["body.kolibri [data-testid=\"cookie-widget\"]"],
4
+ "detectCmp": [{ "exists": "body.kolibri [data-testid=\"cookie-widget\"]" }],
5
+ "detectPopup": [{ "visible": "body.kolibri [data-testid=\"cookie-widget\"]" }],
6
+ "optIn": [{ "waitForThenClick": "body.kolibri [data-testid=\"cookie-widget\"] button.k-button--primary" }],
7
+ "optOut": [
8
+ { "waitForThenClick": "body.kolibri [data-testid=\"cookie-widget\"] button.k-button--primary + button.k-button--tertiary" },
9
+ { "waitForVisible": "body.kolibri [data-testid=\"cookie-widget\"]", "check": "none", "timeout": 5000 }
10
+ ],
11
+ "test": [{ "cookieContains": "%22advertising%22%3Afalse%2C%22hasConsented%22%3Atrue" }]
12
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "liferay-cookies-banner",
3
+ "vendorUrl": "https://learn.liferay.com/w/dxp/system-administration/configuring-liferay/cookies-banner",
4
+ "prehideSelectors": ["#p_p_id_com_liferay_cookies_banner_web_portlet_CookiesBannerPortlet_"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#p_p_id_com_liferay_cookies_banner_web_portlet_CookiesBannerPortlet_"
8
+ },
9
+ {
10
+ "exists": "script[src*=\"otSDKStub\"]",
11
+ "negated": true
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#p_p_id_com_liferay_cookies_banner_web_portlet_CookiesBannerPortlet_"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#_com_liferay_cookies_banner_web_portlet_CookiesBannerPortlet_acceptAllButton"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": "#_com_liferay_cookies_banner_web_portlet_CookiesBannerPortlet_declineAllButton"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "cookieContains": "CONSENT_TYPE_PERFORMANCE=false"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "profiler-dk",
3
+ "vendorUrl": "https://profiler.dk/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?(profiler|debtor)\\.dk/"
7
+ },
8
+ "prehideSelectors": ["div.cookie:has(a.cookie-okay-button)"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "div.cookie a.cookie-okay-button"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "div.cookie:has(a.cookie-okay-button)"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "div.cookie a.cookie-okay-button"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "div.cookie:has(a.cookie-okay-button)"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "rcs-cpmt",
3
+ "vendorUrl": "https://www.rcsmediagroup.it/",
4
+ "prehideSelectors": ["#_cpmt-iframe"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ["#_cpmt-iframe", "#_cpmt"]
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#_cpmt-iframe"
13
+ },
14
+ {
15
+ "visible": ["#_cpmt-iframe", "#_cpmt"]
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ["#_cpmt-iframe", "#_cpmt-accept"]
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ["#_cpmt-iframe", "#_cpmt-reject"]
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "stellantis-psa",
3
+ "vendorUrl": "https://www.stellantis.com/",
4
+ "prehideSelectors": ["#_psaihm_main_div", "#_psaihm_overlay"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#_psaihm_main_div #_psaihm_id_accept_all_btn"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#_psaihm_main_div #_psaihm_id_accept_all_btn"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#_psaihm_id_accept_all_btn"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "if": {
23
+ "exists": "#_psaihm_refuse_all"
24
+ },
25
+ "then": [
26
+ {
27
+ "waitForThenClick": "#_psaihm_refuse_all"
28
+ }
29
+ ],
30
+ "else": [
31
+ {
32
+ "waitForThenClick": "#_psaihm_continue_without_accepting"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "waitForVisible": "#_psaihm_main_div",
38
+ "check": "none",
39
+ "timeout": 3000
40
+ }
41
+ ],
42
+ "test": [
43
+ {
44
+ "cookieContains": "_psac_gdpr_consent_given=1"
45
+ },
46
+ {
47
+ "cookieContains": "_psac_gdpr_consent_purposes=;"
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "warning-cookie-notice",
3
+ "cosmetic": true,
4
+ "prehideSelectors": [".warning.warning--active:has(.warning__apply)"],
5
+ "detectCmp": [{ "exists": ".warning:has(.warning__text) .warning__apply" }],
6
+ "detectPopup": [{ "visible": ".warning.warning--active:has(.warning__apply)" }],
7
+ "optIn": [{ "waitForThenClick": ".warning.warning--active .warning__apply" }],
8
+ "optOut": [{ "hide": ".warning.warning--active:has(.warning__apply)" }]
9
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "yle-consent-sdk",
3
+ "vendorUrl": "https://yle.fi/",
4
+ "prehideSelectors": ["#yle-consent-sdk-container .ycd-banner"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#yle-consent-sdk-container button[name=accept-necessary-consents]"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#yle-consent-sdk-container .ycd-banner"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#yle-consent-sdk-container button[name=accept-all-consents]"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#yle-consent-sdk-container button[name=accept-necessary-consents]"
23
+ },
24
+ {
25
+ "waitForVisible": "#yle-consent-sdk-container .ycd-banner",
26
+ "timeout": 2000,
27
+ "check": "none"
28
+ }
29
+ ]
30
+ }