@duckduckgo/autoconsent 16.52.0 → 16.53.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 (102) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +63 -0
  3. package/dist/addon-firefox/compact-rules.json +1 -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/manifest.json +1 -1
  9. package/dist/addon-mv3/rule-index.json +1 -1
  10. package/dist/addon-mv3/rules.json +1 -1
  11. package/dist/autoconsent.standalone.js +1 -1
  12. package/package.json +2 -2
  13. package/rules/autoconsent/accurx.json +26 -0
  14. package/rules/autoconsent/aliexpress.json +37 -13
  15. package/rules/autoconsent/burpee-com.json +22 -10
  16. package/rules/autoconsent/ccm19.json +31 -0
  17. package/rules/autoconsent/channel4.json +5 -5
  18. package/rules/autoconsent/citizensadvice.json +43 -0
  19. package/rules/autoconsent/civic-cookie-control.json +9 -9
  20. package/rules/autoconsent/clasohlson.com.json +13 -0
  21. package/rules/autoconsent/cm-cookie-manager.json +20 -0
  22. package/rules/autoconsent/complianz-optin.json +11 -1
  23. package/rules/autoconsent/concept3d.json +19 -0
  24. package/rules/autoconsent/conextra.json +18 -0
  25. package/rules/autoconsent/cookie-script.json +23 -2
  26. package/rules/autoconsent/cookiecuttr.json +3 -2
  27. package/rules/autoconsent/craft-cookie-consent.json +65 -0
  28. package/rules/autoconsent/cz-eshop-cookies-consent.json +9 -0
  29. package/rules/autoconsent/depop.json +16 -14
  30. package/rules/autoconsent/dsgvo.json +8 -2
  31. package/rules/autoconsent/dwaalzin-nu.json +13 -0
  32. package/rules/autoconsent/elsevier.json +3 -3
  33. package/rules/autoconsent/eneba.json +66 -0
  34. package/rules/autoconsent/ensighten.json +2 -2
  35. package/rules/autoconsent/europa-eu.json +11 -7
  36. package/rules/autoconsent/finna.json +29 -0
  37. package/rules/autoconsent/head-fi.json +35 -0
  38. package/rules/autoconsent/istore-co-za.json +18 -0
  39. package/rules/autoconsent/kiwico.json +48 -0
  40. package/rules/autoconsent/meteored.json +40 -0
  41. package/rules/autoconsent/mobirise-cookies-alert-cosmetic.json +30 -0
  42. package/rules/autoconsent/mobirise-cookies-alert.json +34 -0
  43. package/rules/autoconsent/msg-cookie.json +9 -0
  44. package/rules/autoconsent/plentyshop.json +27 -0
  45. package/rules/autoconsent/posthog.json +35 -0
  46. package/rules/autoconsent/quantcast.json +11 -0
  47. package/rules/autoconsent/quick-cookie-consent.json +70 -0
  48. package/rules/autoconsent/schadefonds.json +15 -0
  49. package/rules/autoconsent/service2school.json +45 -0
  50. package/rules/autoconsent/sportmedizin-rheuma.json +17 -0
  51. package/rules/autoconsent/tracsis-delay-repay.json +13 -0
  52. package/rules/autoconsent/truendo.json +28 -0
  53. package/rules/autoconsent/truevault-polaris.json +8 -0
  54. package/rules/autoconsent/ubisoft-com.json +64 -0
  55. package/rules/autoconsent/volvocars-com.json +1 -1
  56. package/rules/autoconsent/wbd-legal-terms.json +28 -10
  57. package/rules/compact-rules.json +1 -1
  58. package/rules/rule-index.json +1 -1
  59. package/rules/rules.json +1 -1
  60. package/tests/accurx.spec.ts +3 -0
  61. package/tests/aliexpress.spec.ts +5 -1
  62. package/tests/burpee-com.spec.ts +3 -0
  63. package/tests/ccm19.spec.ts +11 -0
  64. package/tests/channel4.spec.ts +7 -3
  65. package/tests/citizensadvice.spec.ts +3 -0
  66. package/tests/civic-cookie-control.spec.ts +9 -1
  67. package/tests/clasohlson.com.spec.ts +3 -0
  68. package/tests/cm-cookie-manager.spec.ts +11 -0
  69. package/tests/complianz-optin.spec.ts +5 -1
  70. package/tests/concept3d.spec.ts +8 -0
  71. package/tests/conextra.spec.ts +8 -0
  72. package/tests/cookie-script.spec.ts +8 -3
  73. package/tests/cookiecuttr.spec.ts +8 -1
  74. package/tests/craft-cookie-consent.spec.ts +9 -0
  75. package/tests/cz-eshop-cookies-consent.spec.ts +10 -0
  76. package/tests/depop.spec.ts +3 -1
  77. package/tests/dsgvo.spec.ts +8 -10
  78. package/tests/dwaalzin-nu.spec.ts +6 -0
  79. package/tests/elsevier.spec.ts +5 -1
  80. package/tests/eneba.spec.ts +3 -0
  81. package/tests/europa-eu.spec.ts +6 -1
  82. package/tests/finna.spec.ts +3 -0
  83. package/tests/head-fi.spec.ts +3 -0
  84. package/tests/istore-co-za.spec.ts +3 -0
  85. package/tests/kiwico.spec.ts +5 -0
  86. package/tests/meteored.spec.ts +9 -0
  87. package/tests/mobirise-cookies-alert-cosmetic.spec.ts +8 -0
  88. package/tests/mobirise-cookies-alert.spec.ts +3 -0
  89. package/tests/msg-cookie.spec.ts +10 -0
  90. package/tests/plentyshop.spec.ts +7 -0
  91. package/tests/posthog.spec.ts +3 -0
  92. package/tests/quantcast.spec.ts +2 -2
  93. package/tests/quick-cookie-consent.spec.ts +8 -0
  94. package/tests/schadefonds.spec.ts +3 -0
  95. package/tests/service2school.spec.ts +3 -0
  96. package/tests/sportmedizin-rheuma.spec.ts +3 -0
  97. package/tests/tracsis-delay-repay.spec.ts +6 -0
  98. package/tests/truendo.spec.ts +9 -0
  99. package/tests/ubisoft-com.spec.ts +12 -0
  100. package/tests/wbd-legal-terms.spec.ts +2 -0
  101. package/rules/autoconsent/sandhills.json +0 -26
  102. package/tests/sandhills.spec.ts +0 -8
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "truendo",
3
+ "prehideSelectors": ["#truendo_container .tru_cookie-dialog_wrapper"],
4
+ "detectCmp": [{ "exists": "#truendo_container .tru_cookie-dialog_wrapper" }],
5
+ "detectPopup": [{ "visible": "#truendo_container .tru_cookie-dialog_wrapper" }],
6
+ "optIn": [
7
+ {
8
+ "waitForThenClick": ".tru_cookie-dialog_wrapper [data-cy=banner-ack-btn], .tru_cookie-dialog_wrapper #tru_accept_btn, .tru_cookie-dialog_wrapper button.tru_cookie-dialog_ok:not(#tru_deselect_btn)"
9
+ }
10
+ ],
11
+ "optOut": [
12
+ {
13
+ "if": { "exists": ".tru_cookie-dialog_accept-only" },
14
+ "then": [{ "click": ".tru_cookie-dialog_accept-only .tru_cookie-dialog_message a[href='']" }],
15
+ "else": [
16
+ {
17
+ "click": ".tru_cookie-dialog_wrapper [data-cy=banner-options-btn], .tru_cookie-dialog_wrapper [data-cy=optionsBtn], .tru_cookie-dialog_wrapper #tru_options_btn"
18
+ }
19
+ ]
20
+ },
21
+ { "waitForVisible": "#truendo_container [data-cy=action-button-necessary]", "timeout": 2000, "optional": true },
22
+ {
23
+ "if": { "visible": "#truendo_container [data-cy=action-button-necessary]" },
24
+ "then": [{ "click": "#truendo_container [data-cy=action-button-necessary]" }]
25
+ }
26
+ ],
27
+ "test": [{ "cookieContains": "%22marketing%22%3Afalse" }]
28
+ }
@@ -44,6 +44,14 @@
44
44
  "all": true,
45
45
  "optional": true
46
46
  },
47
+ {
48
+ "click": [
49
+ "#polaris-css-lockdown-container",
50
+ ".polaris-preferences-widget input[type=checkbox]:checked:not([disabled])"
51
+ ],
52
+ "all": true,
53
+ "optional": true
54
+ },
47
55
  {
48
56
  "click": ["#polaris-css-lockdown-container", ".polaris-preferences-widget__save_button"]
49
57
  }
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "ubisoft.com",
3
+ "vendorUrl": "https://www.ubisoft.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?ubisoft\\.com/"
6
+ },
7
+ "prehideSelectors": ["#privacy_modal", "#footer_tc_privacy"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#privacy__modal__close, #footer_tc_privacy #privacy__links__center"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#privacy__modal__close, #footer_tc_privacy",
16
+ "check": "any"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "if": {
22
+ "exists": "#privacy__modal__accept"
23
+ },
24
+ "then": [
25
+ {
26
+ "waitForThenClick": "#privacy__modal__accept"
27
+ }
28
+ ],
29
+ "else": [
30
+ {
31
+ "waitForThenClick": "#footer_tc_privacy_button"
32
+ }
33
+ ]
34
+ }
35
+ ],
36
+ "optOut": [
37
+ {
38
+ "if": {
39
+ "exists": "#privacy__modal__close"
40
+ },
41
+ "then": [
42
+ {
43
+ "waitForThenClick": "#privacy__modal__close"
44
+ }
45
+ ],
46
+ "else": [
47
+ {
48
+ "waitForThenClick": "#footer_tc_privacy #privacy__links__center"
49
+ },
50
+ {
51
+ "waitForThenClick": "#privacy_options #options_tc_privacy_button"
52
+ }
53
+ ]
54
+ }
55
+ ],
56
+ "test": [
57
+ {
58
+ "cookieContains": "UBI_PRIVACY_POLICY_VIEWED=true"
59
+ },
60
+ {
61
+ "cookieContains": "UBI_PRIVACY_ADS_OPTOUT=true"
62
+ }
63
+ ]
64
+ }
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "test": [
40
40
  {
41
- "cookieContains": "groups=C1%3A1%2CC3%3A0"
41
+ "cookieContains": "groups=C1%3A1%2CC2%3A0%2CC3%3A0%2CC4%3A0"
42
42
  }
43
43
  ]
44
44
  }
@@ -1,32 +1,50 @@
1
1
  {
2
2
  "name": "wbd-legal-terms",
3
3
  "vendorUrl": "https://www.wbd.com/",
4
- "comment": "Terms-and-cookies notice with only an Agree button. It is a modal <dialog>, so hiding it with CSS leaves the page inert; close it without submitting the form instead.",
4
+ "comment": "Terms-and-cookies notice with only an Agree button. The <dialog> variant is modal, so hiding it with CSS leaves the page inert; close it without submitting the form instead. The MUI modal variant cannot be dismissed, so it is hidden.",
5
5
  "cosmetic": true,
6
6
  "minimumRuleStepVersion": 2,
7
7
  "detectCmp": [
8
8
  {
9
- "exists": "dialog#ltp-dialog"
9
+ "exists": "dialog#ltp-dialog, [id=\"id/ltp\"]"
10
10
  }
11
11
  ],
12
12
  "detectPopup": [
13
13
  {
14
- "visible": "dialog#ltp-dialog[open]"
14
+ "visible": "dialog#ltp-dialog[open], [id=\"id/ltp/banner\"]",
15
+ "check": "any"
15
16
  }
16
17
  ],
17
18
  "optIn": [
18
19
  {
19
- "waitForThenClick": "#ltp-submit-btn"
20
+ "waitForThenClick": "#ltp-submit-btn, [id=\"id/ltp/banner/button\"]"
20
21
  }
21
22
  ],
22
23
  "optOut": [
23
24
  {
24
- "eval": "EVAL_WBD_LTP_CLOSE"
25
- },
26
- {
27
- "removeClass": "is-NoScroll",
28
- "selector": "body",
29
- "optional": true
25
+ "if": {
26
+ "exists": "dialog#ltp-dialog"
27
+ },
28
+ "then": [
29
+ {
30
+ "eval": "EVAL_WBD_LTP_CLOSE"
31
+ },
32
+ {
33
+ "removeClass": "is-NoScroll",
34
+ "selector": "body",
35
+ "optional": true
36
+ }
37
+ ],
38
+ "else": [
39
+ {
40
+ "hide": "[id=\"id/ltp\"]"
41
+ },
42
+ {
43
+ "addStyle": "overflow: auto !important",
44
+ "selector": "body",
45
+ "optional": true
46
+ }
47
+ ]
30
48
  }
31
49
  ]
32
50
  }