@duckduckgo/autoconsent 16.62.0 → 16.63.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 (74) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/content.bundle.js +14 -1
  4. package/dist/addon-firefox/manifest.json +1 -1
  5. package/dist/addon-firefox/rule-index.json +1 -1
  6. package/dist/addon-firefox/rules.json +1 -1
  7. package/dist/addon-mv3/compact-rules.json +1 -1
  8. package/dist/addon-mv3/content.bundle.js +14 -1
  9. package/dist/addon-mv3/manifest.json +1 -1
  10. package/dist/addon-mv3/rule-index.json +1 -1
  11. package/dist/addon-mv3/rules.json +1 -1
  12. package/dist/autoconsent.cjs.js +14 -1
  13. package/dist/autoconsent.esm.js +14 -1
  14. package/dist/autoconsent.playwright.js +14 -1
  15. package/dist/autoconsent.standalone.js +15 -2
  16. package/dist/heuristics.cjs.js +14 -1
  17. package/dist/heuristics.mjs +14 -1
  18. package/lib/heuristic-patterns.ts +17 -1
  19. package/package.json +2 -2
  20. package/rules/autoconsent/appconsent-legacy.json +22 -1
  21. package/rules/autoconsent/beetle-tracking.json +22 -0
  22. package/rules/autoconsent/casier-judiciaire-justice-gouv-fr.json +40 -0
  23. package/rules/autoconsent/civilservicejobs-service-gov-uk.json +38 -0
  24. package/rules/autoconsent/ckies.json +1 -1
  25. package/rules/autoconsent/cookiesinfo-closecookies.json +9 -0
  26. package/rules/autoconsent/dack365.json +35 -0
  27. package/rules/autoconsent/eu-cookie-law-popup.json +33 -0
  28. package/rules/autoconsent/fascicolosanitario-lombardia.json +14 -0
  29. package/rules/autoconsent/fundingchoices.json +12 -2
  30. package/rules/autoconsent/hyrabostad.json +21 -0
  31. package/rules/autoconsent/insided.json +15 -0
  32. package/rules/autoconsent/kartverket.json +46 -0
  33. package/rules/autoconsent/luxmed.json +33 -0
  34. package/rules/autoconsent/meta-cookie-dialog.json +37 -0
  35. package/rules/autoconsent/mittanbud.json +33 -0
  36. package/rules/autoconsent/poki.json +37 -0
  37. package/rules/autoconsent/polisen-se.json +26 -0
  38. package/rules/autoconsent/romeo.json +47 -0
  39. package/rules/autoconsent/stockholm-stad.json +42 -0
  40. package/rules/autoconsent/stright.json +19 -1
  41. package/rules/autoconsent/stripchat.com.json +26 -5
  42. package/rules/autoconsent/tvp.json +27 -0
  43. package/rules/autoconsent/urvaerket.json +33 -0
  44. package/rules/autoconsent/volvocars-com.json +23 -2
  45. package/rules/autoconsent/vue-cookie-accept-decline.json +42 -0
  46. package/rules/compact-rules.json +1 -1
  47. package/rules/rule-index.json +1 -1
  48. package/rules/rules.json +1 -1
  49. package/tests/appconsent-legacy.spec.ts +1 -1
  50. package/tests/beetle-tracking.spec.ts +3 -0
  51. package/tests/casier-judiciaire-justice-gouv-fr.spec.ts +3 -0
  52. package/tests/civilservicejobs-service-gov-uk.spec.ts +3 -0
  53. package/tests/cookiesinfo-closecookies.spec.ts +8 -0
  54. package/tests/dack365.spec.ts +3 -0
  55. package/tests/eu-cookie-law-popup.spec.ts +8 -0
  56. package/tests/fascicolosanitario-lombardia.spec.ts +3 -0
  57. package/tests/fundingchoices.spec.ts +7 -1
  58. package/tests/hyrabostad.spec.ts +3 -0
  59. package/tests/insided.spec.ts +9 -0
  60. package/tests/kartverket.spec.ts +3 -0
  61. package/tests/luxmed.spec.ts +3 -0
  62. package/tests/meta-cookie-dialog.spec.ts +14 -0
  63. package/tests/mittanbud.spec.ts +3 -0
  64. package/tests/poki.spec.ts +6 -0
  65. package/tests/polisen-se.spec.ts +3 -0
  66. package/tests/romeo.spec.ts +3 -0
  67. package/tests/stockholm-stad.spec.ts +7 -0
  68. package/tests/stright.spec.ts +11 -0
  69. package/tests/stripchat.com.spec.ts +4 -1
  70. package/tests/tvp.spec.ts +3 -0
  71. package/tests/urvaerket.spec.ts +13 -0
  72. package/tests/volvocars-com.spec.ts +1 -1
  73. package/tests/vue-cookie-accept-decline.spec.ts +8 -0
  74. package/tests-wtr/heuristics/heuristics-utils.test.ts +49 -0
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "romeo",
3
+ "vendorUrl": "https://www.romeo.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?romeo\\.com/"
6
+ },
7
+ "detectCmp": [
8
+ {
9
+ "exists": "[role=dialog] form #cookie_consent_accept_all_button"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "[role=dialog] form #cookie_consent_accept_all_button"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "[role=dialog] form #cookie_consent_accept_all_button"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "[role=dialog] form:has(#cookie_consent_accept_all_button) button[type=button]"
25
+ },
26
+ {
27
+ "waitForVisible": "[role=dialog] form input#analytical"
28
+ },
29
+ {
30
+ "if": {
31
+ "exists": "[role=dialog] form input#analytical:checked"
32
+ },
33
+ "then": [
34
+ {
35
+ "click": "[role=dialog] form input#analytical"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "click": "[role=dialog] form:has(input#analytical) button[type=submit]:not(#cookie_consent_accept_all_button)"
41
+ },
42
+ {
43
+ "waitForVisible": "[role=dialog] form #cookie_consent_accept_all_button",
44
+ "check": "none"
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "stockholm-stad",
3
+ "vendorUrl": "https://start.stockholm/",
4
+ "prehideSelectors": [".js-cookie-banner.cookie-banner"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".js-cookie-banner.cookie-banner #cookie-banner__settings .js-cookie-settings__form"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".js-cookie-banner.cookie-banner"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".js-cookie-banner.cookie-banner .cookie-banner__actions .js-cookie-btn"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".js-cookie-banner.cookie-banner .cookie-banner__actions .js-cookie-banner-settings-btn"
23
+ },
24
+ {
25
+ "waitForVisible": "#cookie-banner__settings .js-cookie-settings__form",
26
+ "timeout": 2000
27
+ },
28
+ {
29
+ "click": "#cookie-banner__settings .js-cookie-settings__checkbox:checked:not(:disabled)",
30
+ "all": true,
31
+ "optional": true
32
+ },
33
+ {
34
+ "click": "#cookie-banner__settings .cookie-settings__submit-btn"
35
+ }
36
+ ],
37
+ "test": [
38
+ {
39
+ "cookieContains": "-consent-necessary=1"
40
+ }
41
+ ]
42
+ }
@@ -18,8 +18,26 @@
18
18
  {
19
19
  "waitForThenClick": "#controlled_submit-cookie_consent-consent_banner-privacy_setting_banner_link"
20
20
  },
21
+ { "waitForVisible": "#controlled_banner-cookie_consent-privacy_setting_banner" },
21
22
  {
22
- "waitForThenClick": "#controlled_banner-cookie_consent-privacy_setting_banner [data-search-key-button=reject_all_text]"
23
+ "if": {
24
+ "exists": "#controlled_banner-cookie_consent-privacy_setting_banner [data-search-key-button=reject_all_text]"
25
+ },
26
+ "then": [
27
+ {
28
+ "waitForThenClick": "#controlled_banner-cookie_consent-privacy_setting_banner [data-search-key-button=reject_all_text]"
29
+ }
30
+ ],
31
+ "else": [
32
+ {
33
+ "click": "#controlled_banner-cookie_consent-privacy_setting_banner [role=checkbox][aria-checked=true]",
34
+ "all": true,
35
+ "optional": true
36
+ },
37
+ {
38
+ "waitForThenClick": "#controlled_banner-cookie_consent-privacy_setting_banner [data-search-key-button=save_settings_text]"
39
+ }
40
+ ]
23
41
  }
24
42
  ]
25
43
  },
@@ -2,25 +2,46 @@
2
2
  "name": "stripchat.com",
3
3
  "vendorUrl": "https://unknown",
4
4
  "cosmetic": false,
5
- "prehideSelectors": [".cookies-reminder"],
5
+ "prehideSelectors": ["[data-testid=\"CookiesReminder\"]"],
6
6
  "detectCmp": [
7
7
  {
8
- "exists": ".cookies-reminder .cookies-reminder__content"
8
+ "visible": "[data-testid=\"CookiesReminder\"] [data-testid=\"CookiesManage\"]"
9
9
  }
10
10
  ],
11
11
  "detectPopup": [
12
12
  {
13
- "visible": ".cookies-reminder .cookies-reminder__content"
13
+ "visible": "[data-testid=\"CookiesReminder\"]"
14
14
  }
15
15
  ],
16
16
  "optIn": [
17
17
  {
18
- "waitForThenClick": ".cookies-reminder .cookies-reminder__accept-all-button"
18
+ "waitForThenClick": "[data-testid=\"CookiesReminder\"] [data-testid=\"CookiesAcceptAll\"]"
19
19
  }
20
20
  ],
21
21
  "optOut": [
22
22
  {
23
- "waitForThenClick": ".cookies-reminder .cookies-reminder__manage-button"
23
+ "waitFor": "body:not(.disable-transition)",
24
+ "timeout": 5000,
25
+ "optional": true
26
+ },
27
+ {
28
+ "waitForThenClick": "[data-testid=\"CookiesReminder\"] [data-testid=\"CookiesManage\"]"
29
+ },
30
+ {
31
+ "waitForVisible": "dialog[open] .cookies-select-modal",
32
+ "timeout": 1500,
33
+ "optional": true
34
+ },
35
+ {
36
+ "if": {
37
+ "visible": "dialog[open] .cookies-select-modal",
38
+ "check": "none"
39
+ },
40
+ "then": [
41
+ {
42
+ "click": "[data-testid=\"CookiesReminder\"] [data-testid=\"CookiesManage\"]"
43
+ }
44
+ ]
24
45
  },
25
46
  {
26
47
  "waitForThenClick": "dialog[open] .cookies-select-modal .cookies-select-modal__buttons .ds-btn-apply-2-ds"
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "tvp",
3
+ "_metadata": {
4
+ "vendorUrl": "https://polityka-prywatnosci.tvp.pl/"
5
+ },
6
+ "cosmetic": false,
7
+ "runContext": {
8
+ "main": true,
9
+ "frame": false,
10
+ "urlPattern": "^https?://(\\w+\\.)?tvp\\.pl/"
11
+ },
12
+ "prehideSelectors": [".tvp-cookie-overlay"],
13
+ "detectCmp": [{ "exists": ".tvp-cookie-overlay .tvp-covl" }],
14
+ "detectPopup": [{ "visible": ".tvp-cookie-overlay .tvp-covl" }],
15
+ "optIn": [{ "waitForThenClick": ".tvp-covl .tvp-covl__ab" }],
16
+ "optOut": [
17
+ { "waitForThenClick": ".tvp-covl .tvp-covl__sb" },
18
+ { "waitFor": ".tvp-covl .tvp-covl__save" },
19
+ {
20
+ "if": { "exists": ".tvp-covl input.iabd:not(:checked)" },
21
+ "then": [{ "click": ".tvp-covl input.iabd" }]
22
+ },
23
+ { "click": ".tvp-covl .tvp-covl__save" },
24
+ { "waitForVisible": ".tvp-cookie-overlay .tvp-covl", "check": "none", "timeout": 2000, "optional": true }
25
+ ],
26
+ "test": [{ "cookieContains": "TVPtcs22=" }]
27
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "urvaerket",
3
+ "vendorUrl": "https://www.urvaerket.dk/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?(urvaerket\\.dk|uret\\.se|urverket\\.no|laatukellot\\.fi|thewatchagency\\.com)/"
6
+ },
7
+ "prehideSelectors": ["app-cookie-consent > .cookie-banner"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "app-cookie-consent .cookie-banner"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "app-cookie-consent .cookie-banner"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "app-cookie-consent .cookie-banner > div > button:nth-of-type(1)"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "app-cookie-consent .cookie-banner > div > button:nth-of-type(2)"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "%22analytics%22%3Afalse%2C%22marketing%22%3Afalse"
31
+ }
32
+ ]
33
+ }
@@ -28,7 +28,22 @@
28
28
  "optOut": [
29
29
  { "wait": 500 },
30
30
  {
31
- "waitForThenClick": ["cookie-banner#cookie-banner-host", "#onetrust-reject-all-handler"]
31
+ "if": {
32
+ "exists": ["cookie-banner#cookie-banner-host", "#onetrust-reject-all-handler"]
33
+ },
34
+ "then": [
35
+ {
36
+ "waitForThenClick": ["cookie-banner#cookie-banner-host", "#onetrust-reject-all-handler"]
37
+ }
38
+ ],
39
+ "else": [
40
+ {
41
+ "waitForThenClick": ["cookie-banner#cookie-banner-host", "#onetrust-pc-btn-handler"]
42
+ },
43
+ {
44
+ "waitForThenClick": "#onetrust-pc-sdk .ot-pc-refuse-all-handler"
45
+ }
46
+ ]
32
47
  },
33
48
  {
34
49
  "waitForVisible": ["cookie-banner#cookie-banner-host", "#dialog_cookie_consent"],
@@ -38,7 +53,13 @@
38
53
  ],
39
54
  "test": [
40
55
  {
41
- "cookieContains": "groups=C1%3A1%2CC2%3A0%2CC3%3A0%2CC4%3A0"
56
+ "cookieContains": "OptanonAlertBoxClosed"
57
+ },
58
+ {
59
+ "cookieContains": "C3%3A0"
60
+ },
61
+ {
62
+ "cookieContains": "C4%3A0"
42
63
  }
43
64
  ]
44
65
  }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "vue-cookie-accept-decline",
3
+ "vendorUrl": "https://github.com/johndatserakis/vue-cookie-accept-decline",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false
8
+ },
9
+ "prehideSelectors": [".cookie.cookie__floating", ".cookie.cookie__bar"],
10
+ "detectCmp": [
11
+ {
12
+ "exists": ".cookie__floating__buttons__button--accept, .cookie__bar__buttons__button--accept"
13
+ }
14
+ ],
15
+ "detectPopup": [
16
+ {
17
+ "visible": ".cookie.cookie__floating, .cookie.cookie__bar"
18
+ }
19
+ ],
20
+ "optIn": [
21
+ {
22
+ "waitForThenClick": ".cookie__floating__buttons__button--accept, .cookie__bar__buttons__button--accept"
23
+ }
24
+ ],
25
+ "optOut": [
26
+ {
27
+ "if": {
28
+ "exists": ".cookie__floating__buttons__button--decline, .cookie__bar__buttons__button--decline"
29
+ },
30
+ "then": [
31
+ {
32
+ "waitForThenClick": ".cookie__floating__buttons__button--decline, .cookie__bar__buttons__button--decline"
33
+ }
34
+ ],
35
+ "else": [
36
+ {
37
+ "hide": ".cookie.cookie__floating, .cookie.cookie__bar"
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }