@duckduckgo/autoconsent 18.2.0 → 18.4.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 (203) hide show
  1. package/CHANGELOG.md +122 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/content.bundle.js +92 -36
  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 +92 -36
  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 +92 -36
  13. package/dist/autoconsent.esm.js +92 -36
  14. package/dist/autoconsent.playwright.js +92 -36
  15. package/dist/autoconsent.standalone.js +93 -37
  16. package/dist/heuristics.cjs.js +92 -38
  17. package/dist/heuristics.mjs +92 -37
  18. package/dist/types/heuristic-patterns.d.ts +0 -1
  19. package/lib/heuristic-literals.ts +39 -12
  20. package/lib/heuristic-negatives.ts +0 -9
  21. package/lib/heuristic-patterns.ts +54 -16
  22. package/package.json +1 -1
  23. package/rules/autoconsent/adaptivemedia.json +30 -0
  24. package/rules/autoconsent/adeac-jp.json +29 -0
  25. package/rules/autoconsent/agenziaentrate-geoportale.json +35 -0
  26. package/rules/autoconsent/alertnotification-alert-bar.json +27 -0
  27. package/rules/autoconsent/amasty-gdpr-hyva.json +6 -6
  28. package/rules/autoconsent/amasty-gdpr-sidebar.json +61 -0
  29. package/rules/autoconsent/arena-pl.json +16 -0
  30. package/rules/autoconsent/bannercookie-dashboard.json +10 -0
  31. package/rules/autoconsent/betheme.json +10 -0
  32. package/rules/autoconsent/biblia-online.pl.json +40 -0
  33. package/rules/autoconsent/bitauto.json +57 -0
  34. package/rules/autoconsent/blastingnews.json +36 -0
  35. package/rules/autoconsent/bn-org-pl.json +37 -0
  36. package/rules/autoconsent/bt-com-au.json +13 -0
  37. package/rules/autoconsent/calclife.net.json +43 -0
  38. package/rules/autoconsent/casino-guru.json +28 -0
  39. package/rules/autoconsent/ccconsent-holder.json +56 -0
  40. package/rules/autoconsent/cloudcms-cookie-alert-notice.json +12 -0
  41. package/rules/autoconsent/cloudcms-cookie-alert.json +13 -0
  42. package/rules/autoconsent/code3-cookies-consent.json +48 -0
  43. package/rules/autoconsent/complianz-opt-out.json +7 -2
  44. package/rules/autoconsent/cookie-button-basic.json +47 -0
  45. package/rules/autoconsent/cookie-use-notice.json +12 -0
  46. package/rules/autoconsent/cookieinfo-zamknij.json +30 -0
  47. package/rules/autoconsent/cookiesbanner-preference.json +14 -0
  48. package/rules/autoconsent/cookiesck.json +31 -0
  49. package/rules/autoconsent/cookiesmodal-pl.json +18 -0
  50. package/rules/autoconsent/creditunionsa.json +12 -0
  51. package/rules/autoconsent/cstudios.json +35 -0
  52. package/rules/autoconsent/dandomain.json +41 -0
  53. package/rules/autoconsent/datezone.json +22 -0
  54. package/rules/autoconsent/didomi.json +5 -0
  55. package/rules/autoconsent/dlibra.json +32 -0
  56. package/rules/autoconsent/dnb.json +30 -0
  57. package/rules/autoconsent/doc24-ch.json +33 -0
  58. package/rules/autoconsent/e-file.json +44 -0
  59. package/rules/autoconsent/erli-pl.json +36 -0
  60. package/rules/autoconsent/ernesto.json +30 -0
  61. package/rules/autoconsent/eu-cookie-compliance-legacy.json +15 -0
  62. package/rules/autoconsent/fellow-pl.json +16 -0
  63. package/rules/autoconsent/fn-se.json +17 -0
  64. package/rules/autoconsent/fora-se.json +13 -0
  65. package/rules/autoconsent/fusedeck.json +38 -0
  66. package/rules/autoconsent/gjerrigknark.json +38 -0
  67. package/rules/autoconsent/hemsol.se.json +22 -0
  68. package/rules/autoconsent/historiskatlas.dk.json +35 -0
  69. package/rules/autoconsent/hmi-basen-dk.json +27 -0
  70. package/rules/autoconsent/icom-co-jp.json +34 -0
  71. package/rules/autoconsent/intermedia-cms-fsi.json +30 -0
  72. package/rules/autoconsent/jobbland.json +17 -0
  73. package/rules/autoconsent/kadokawa-ascii.json +34 -0
  74. package/rules/autoconsent/kglakademi.json +37 -0
  75. package/rules/autoconsent/kredittbanken.json +14 -0
  76. package/rules/autoconsent/lieder.net.json +13 -0
  77. package/rules/autoconsent/matspar-se.json +34 -0
  78. package/rules/autoconsent/menti-com.json +37 -0
  79. package/rules/autoconsent/mitrejsevejr.dk.json +13 -0
  80. package/rules/autoconsent/morgenlevering.no.json +46 -0
  81. package/rules/autoconsent/mos-cudzoziemcy-gov-pl.json +29 -0
  82. package/rules/autoconsent/multicalcolo.json +37 -0
  83. package/rules/autoconsent/nutri.se.json +40 -0
  84. package/rules/autoconsent/octoparse.json +33 -0
  85. package/rules/autoconsent/onecall-no.json +44 -0
  86. package/rules/autoconsent/oresundstag.json +40 -0
  87. package/rules/autoconsent/peppes.json +38 -0
  88. package/rules/autoconsent/planteportalen-no.json +32 -0
  89. package/rules/autoconsent/renaud-bray.json +44 -0
  90. package/rules/autoconsent/saos-org-pl.json +35 -0
  91. package/rules/autoconsent/shopgold.json +83 -0
  92. package/rules/autoconsent/shueisha-hpplus.json +27 -0
  93. package/rules/autoconsent/sian-it.json +35 -0
  94. package/rules/autoconsent/skisport.json +22 -0
  95. package/rules/autoconsent/skogforsk.json +9 -0
  96. package/rules/autoconsent/skovborghogh-cookies.json +17 -0
  97. package/rules/autoconsent/sportstiming.json +37 -0
  98. package/rules/autoconsent/squarespace-cookie-banner.json +3 -3
  99. package/rules/autoconsent/synergy-net-au.json +33 -0
  100. package/rules/autoconsent/teeshoppen.json +42 -0
  101. package/rules/autoconsent/tullys-jp.json +11 -0
  102. package/rules/autoconsent/vardgivarguiden.json +45 -0
  103. package/rules/autoconsent/wbd-consent-modal.json +54 -0
  104. package/rules/autoconsent/welcome-city-yokohama.json +75 -0
  105. package/rules/autoconsent/wordpress-wordads.json +20 -0
  106. package/rules/autoconsent/worldbank.json +5 -5
  107. package/rules/autoconsent/wuerth.json +57 -0
  108. package/rules/autoconsent/ynjn.json +34 -0
  109. package/rules/compact-rules.json +1 -1
  110. package/rules/rule-index.json +1 -1
  111. package/rules/rules.json +1 -1
  112. package/tests/adaptivemedia.spec.ts +3 -0
  113. package/tests/adeac-jp.spec.ts +3 -0
  114. package/tests/agenziaentrate-geoportale.spec.ts +5 -0
  115. package/tests/alertnotification-alert-bar.spec.ts +11 -0
  116. package/tests/amasty-gdpr-hyva.spec.ts +1 -0
  117. package/tests/amasty-gdpr-sidebar.spec.ts +16 -0
  118. package/tests/arena-pl.spec.ts +3 -0
  119. package/tests/bannercookie-dashboard.spec.ts +3 -0
  120. package/tests/betheme.spec.ts +9 -0
  121. package/tests/biblia-online.pl.spec.ts +3 -0
  122. package/tests/bitauto.spec.ts +3 -0
  123. package/tests/blastingnews.spec.ts +3 -0
  124. package/tests/bn-org-pl.spec.ts +3 -0
  125. package/tests/bt-com-au.spec.ts +3 -0
  126. package/tests/calclife.net.spec.ts +3 -0
  127. package/tests/casino-guru.spec.ts +15 -0
  128. package/tests/ccconsent-holder.spec.ts +11 -0
  129. package/tests/cloudcms-cookie-alert-notice.spec.ts +10 -0
  130. package/tests/cloudcms-cookie-alert.spec.ts +6 -0
  131. package/tests/code3-cookies-consent.spec.ts +8 -0
  132. package/tests/complianz-opt-out.spec.ts +13 -3
  133. package/tests/cookie-button-basic.spec.ts +9 -0
  134. package/tests/cookie-use-notice.spec.ts +6 -0
  135. package/tests/cookieinfo-zamknij.spec.ts +3 -0
  136. package/tests/cookiesbanner-preference.spec.ts +8 -0
  137. package/tests/cookiesck.spec.ts +5 -0
  138. package/tests/cookiesmodal-pl.spec.ts +3 -0
  139. package/tests/creditunionsa.spec.ts +3 -0
  140. package/tests/cstudios.spec.ts +3 -0
  141. package/tests/dandomain.spec.ts +18 -0
  142. package/tests/datezone.spec.ts +3 -0
  143. package/tests/didomi.spec.ts +9 -0
  144. package/tests/dlibra.spec.ts +8 -0
  145. package/tests/dnb.spec.ts +5 -0
  146. package/tests/doc24-ch.spec.ts +3 -0
  147. package/tests/e-file.spec.ts +9 -0
  148. package/tests/erli-pl.spec.ts +4 -0
  149. package/tests/ernesto.spec.ts +8 -0
  150. package/tests/eu-cookie-compliance-legacy.spec.ts +8 -0
  151. package/tests/fellow-pl.spec.ts +5 -0
  152. package/tests/fn-se.spec.ts +3 -0
  153. package/tests/fora-se.spec.ts +3 -0
  154. package/tests/fusedeck.spec.ts +9 -0
  155. package/tests/gjerrigknark.spec.ts +6 -0
  156. package/tests/hemsol.se.spec.ts +3 -0
  157. package/tests/historiskatlas.dk.spec.ts +3 -0
  158. package/tests/hmi-basen-dk.spec.ts +5 -0
  159. package/tests/icom-co-jp.spec.ts +3 -0
  160. package/tests/intermedia-cms-fsi.spec.ts +8 -0
  161. package/tests/jobbland.spec.ts +5 -0
  162. package/tests/kadokawa-ascii.spec.ts +5 -0
  163. package/tests/kglakademi.spec.ts +3 -0
  164. package/tests/kredittbanken.spec.ts +3 -0
  165. package/tests/lieder.net.spec.ts +3 -0
  166. package/tests/matspar-se.spec.ts +3 -0
  167. package/tests/menti-com.spec.ts +3 -0
  168. package/tests/mitrejsevejr.dk.spec.ts +3 -0
  169. package/tests/morgenlevering.no.spec.ts +3 -0
  170. package/tests/mos-cudzoziemcy-gov-pl.spec.ts +3 -0
  171. package/tests/multicalcolo.spec.ts +3 -0
  172. package/tests/nutri.se.spec.ts +3 -0
  173. package/tests/octoparse.spec.ts +6 -0
  174. package/tests/onecall-no.spec.ts +3 -0
  175. package/tests/oresundstag.spec.ts +3 -0
  176. package/tests/peppes.spec.ts +5 -0
  177. package/tests/planteportalen-no.spec.ts +3 -0
  178. package/tests/renaud-bray.spec.ts +5 -0
  179. package/tests/saos-org-pl.spec.ts +3 -0
  180. package/tests/shopgold.spec.ts +3 -0
  181. package/tests/shueisha-hpplus.spec.ts +3 -0
  182. package/tests/sian-it.spec.ts +3 -0
  183. package/tests/skisport.spec.ts +9 -0
  184. package/tests/skogforsk.spec.ts +3 -0
  185. package/tests/skovborghogh-cookies.spec.ts +9 -0
  186. package/tests/sportstiming.spec.ts +8 -0
  187. package/tests/squarespace-cookie-banner.spec.ts +1 -0
  188. package/tests/synergy-net-au.spec.ts +8 -0
  189. package/tests/teeshoppen.spec.ts +7 -0
  190. package/tests/tullys-jp.spec.ts +3 -0
  191. package/tests/vardgivarguiden.spec.ts +3 -0
  192. package/tests/wbd-consent-modal.spec.ts +6 -0
  193. package/tests/welcome-city-yokohama.spec.ts +3 -0
  194. package/tests/wordpress-wordads.spec.ts +9 -0
  195. package/tests/worldbank.spec.ts +1 -0
  196. package/tests/wuerth.spec.ts +8 -0
  197. package/tests/ynjn.spec.ts +3 -0
  198. package/tests-wtr/heuristics/heuristics-utils.test.ts +82 -4
  199. package/tests-wtr/rules/cmp-test-urls.json +0 -1
  200. package/rules/autoconsent/delta-com.json +0 -12
  201. package/rules/generated/auto_CH_fhgr.ch_9nr.json +0 -40
  202. package/tests/delta.spec.ts +0 -3
  203. package/tests/generated/auto_CH_fhgr.ch_9nr.spec.ts +0 -2
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "calclife.net",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?calclife\\.net/"
5
+ },
6
+ "prehideSelectors": [".cookie-consent"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": ".cookie-consent .cookie-consent__customize"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ".cookie-consent .cookie-consent__customize"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ".cookie-consent .cookie-consent__accept-all"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": ".cookie-consent .cookie-consent__customize"
25
+ },
26
+ {
27
+ "waitForVisible": ".cookie-consent .cookie-consent__details"
28
+ },
29
+ {
30
+ "if": {
31
+ "exists": "#consent-analytics:checked"
32
+ },
33
+ "then": [
34
+ {
35
+ "click": "#consent-analytics"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "click": ".cookie-consent .cookie-consent__save"
41
+ }
42
+ ]
43
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "casino-guru",
3
+ "_metadata": {
4
+ "vendorUrl": "https://casino.guru/"
5
+ },
6
+ "cosmetic": true,
7
+ "prehideSelectors": [".js-cookies-policy-alert"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".js-cookies-policy-alert [class*=\"cookies-policy-alert-body\"] [onclick*=\"js-cookies-policy-alert\"]"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".js-cookies-policy-alert [class*=\"cookies-policy-alert-body\"]"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".js-cookies-policy-alert [onclick*=\"js-cookies-policy-alert\"]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "hide": ".js-cookies-policy-alert"
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "ccconsent-holder",
3
+ "prehideSelectors": [".ccConsentHolder"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": ".ccConsentHolder .ccConsent .cookieSettings"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": ".ccConsentHolder .ccConsent"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": ".ccConsent .cookieButton.all"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "if": {
22
+ "visible": ".ccConsent .cookieTextHolderExtended .cookieSettings"
23
+ },
24
+ "then": [
25
+ {
26
+ "click": ".ccConsent .cookieTextHolderExtended .cookieSettings"
27
+ }
28
+ ],
29
+ "else": [
30
+ {
31
+ "waitForThenClick": ".ccConsent .cookieTextHolder .cookieSettings"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "waitForVisible": ".ccConsent .cookie_settings_row .cookieButton:not(.all)"
37
+ },
38
+ {
39
+ "comment": "a checked switch means the category is disabled",
40
+ "click": ".ccConsent input.cookieswitch:not(:checked)",
41
+ "all": true,
42
+ "optional": true
43
+ },
44
+ {
45
+ "click": ".ccConsent .cookie_settings_row .cookieButton:not(.all)"
46
+ }
47
+ ],
48
+ "test": [
49
+ {
50
+ "wait": 1000
51
+ },
52
+ {
53
+ "cookieContains": "analytics_storage%22%3A%22disable"
54
+ }
55
+ ]
56
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "cloudcms-cookie-alert-notice",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["#cookieAlert.cookie-alert-overlay"],
5
+ "detectCmp": [
6
+ { "exists": "#cookieAlert.cookie-alert-overlay #cookieAccept" },
7
+ { "exists": "#cookieAlert #saveCookieSettings", "negated": true }
8
+ ],
9
+ "detectPopup": [{ "visible": "#cookieAlert.cookie-alert-overlay.show" }],
10
+ "optIn": [{ "waitForThenClick": "#cookieAlert #cookieAccept" }],
11
+ "optOut": [{ "hide": "#cookieAlert.cookie-alert-overlay" }]
12
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "cloudcms-cookie-alert",
3
+ "prehideSelectors": ["#cookieAlert.cookie-alert-overlay"],
4
+ "detectCmp": [{ "exists": "#cookieAlert.cookie-alert-overlay #saveCookieSettings" }],
5
+ "detectPopup": [{ "visible": "#cookieAlert.cookie-alert-overlay.show" }],
6
+ "optIn": [{ "waitForThenClick": "#cookieAlert #cookieAccept" }],
7
+ "optOut": [
8
+ { "waitForThenClick": "#cookieAlert #changeCookieSettings" },
9
+ { "click": "#cookieAlert .cookie-category-switcher:checked:not([data-category=\"necessary\"])", "all": true, "optional": true },
10
+ { "waitForThenClick": "#cookieAlert #saveCookieSettings" }
11
+ ],
12
+ "test": [{ "cookieContains": "%22marketing%22:false" }]
13
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "code3-cookies-consent",
3
+ "vendorUrl": "https://code3.ca/",
4
+ "prehideSelectors": ["#cookiesConsentBanner"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookiesConsentBanner"
8
+ },
9
+ {
10
+ "exists": "#cookiesParametersModal"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookiesConsentBanner"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cookiesConsentBanner .accept-all-cookies"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "if": {
26
+ "visible": "#cookiesConsentBanner .refuse-all-cookies"
27
+ },
28
+ "then": [
29
+ {
30
+ "click": "#cookiesConsentBanner .refuse-all-cookies"
31
+ }
32
+ ],
33
+ "else": [
34
+ {
35
+ "click": "#cookiesParametersModal .refuse-all-cookies"
36
+ }
37
+ ]
38
+ }
39
+ ],
40
+ "test": [
41
+ {
42
+ "cookieContains": "cookiesConsentDone=true"
43
+ },
44
+ {
45
+ "cookieContains": "%22performanceCookies%22:false"
46
+ }
47
+ ]
48
+ }
@@ -49,10 +49,15 @@
49
49
  "click": ".cmp-pref-link"
50
50
  },
51
51
  {
52
- "waitForThenClick": ".cmp-body [id*=rejectAll]"
52
+ "waitForVisible": ".cmp-body .cmp-save-btn"
53
53
  },
54
54
  {
55
- "waitForThenClick": ".cmp-body .cmp-save-btn"
55
+ "comment": "absent when the only category is the read-only essential one",
56
+ "click": ".cmp-body [id*=rejectAll]",
57
+ "optional": true
58
+ },
59
+ {
60
+ "click": ".cmp-body .cmp-save-btn"
56
61
  }
57
62
  ]
58
63
  }
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "cookie-button-basic",
3
+ "prehideSelectors": [".cookie-container:has(#cookie-button-basic)"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": ".cookie-container #cookie-button-basic"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": ".cookie-container.visible #cookie-button-basic"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "if": {
17
+ "exists": ".cookie-container #cookie-button"
18
+ },
19
+ "then": [
20
+ {
21
+ "waitForThenClick": ".cookie-container #cookie-button"
22
+ }
23
+ ],
24
+ "else": [
25
+ {
26
+ "click": ".cookie-container #statistical-cookies-switch:not(:checked)",
27
+ "optional": true
28
+ },
29
+ {
30
+ "waitForThenClick": ".cookie-container #cookie-button-selected"
31
+ }
32
+ ]
33
+ }
34
+ ],
35
+ "optOut": [
36
+ {
37
+ "waitForThenClick": ".cookie-container #cookie-button-basic"
38
+ }
39
+ ],
40
+ "test": [
41
+ {
42
+ "waitForVisible": ".cookie-container.visible #cookie-button-basic",
43
+ "check": "none",
44
+ "timeout": 2000
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "cookie-use-notice",
3
+ "prehideSelectors": [".cookie-use-notice"],
4
+ "detectCmp": [{ "exists": ".cookie-use-notice #decline-cookie" }],
5
+ "detectPopup": [{ "visible": ".cookie-use-notice #decline-cookie" }],
6
+ "optIn": [{ "waitForThenClick": ".cookie-use-notice #accept-cookie" }],
7
+ "optOut": [
8
+ { "waitForThenClick": ".cookie-use-notice #decline-cookie" },
9
+ { "waitForVisible": ".cookie-use-notice", "check": "none", "timeout": 2000 }
10
+ ],
11
+ "test": [{ "cookieContains": "-cookie=deny" }]
12
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "cookieinfo-zamknij",
3
+ "vendorUrl": "https://unknown",
4
+ "prehideSelectors": [".JSWrapper:has(#cookieInfoZamknij)"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookieInfoZamknij"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#cookieInfoZamknij"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#cookieInfoZamknij"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#cookieInfoZamknij"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "js_on=1"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "cookiesbanner-preference",
3
+ "prehideSelectors": ["#cookiesBanner:has(#cookiesBannerPreference)"],
4
+ "detectCmp": [{ "exists": "#cookiesBanner #cookiesBannerPreference" }],
5
+ "detectPopup": [{ "visible": "#cookiesBanner:not(.cookiesBannerHide) #cookiesBannerBox" }],
6
+ "optIn": [{ "waitForThenClick": "#cookiesBannerInfos button[onclick^=\"submitCookies('all')\"]" }],
7
+ "optOut": [
8
+ { "waitForThenClick": "#cookiesBannerInfos button[onclick^='cookieSettingsShow']" },
9
+ { "waitForVisible": "#cookiesBannerPreference" },
10
+ { "click": "#cookiesBannerChoices input:checked:not(:disabled)", "all": true, "optional": true },
11
+ { "waitForThenClick": "#cookiesBannerPreference button[onclick^='submitCookies()']" }
12
+ ],
13
+ "test": [{ "waitFor": "#cookiesBanner.cookiesBannerHide" }, { "cookieContains": "\"tracking\":false" }]
14
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "cookiesck",
3
+ "vendorUrl": "https://www.joomlack.fr/en/joomla-extensions/cookies-ck",
4
+ "prehideSelectors": ["#cookiesck", "#cookiesck_overlay"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookiesck #cookiesck_decline"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#cookiesck"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#cookiesck_accept"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#cookiesck_decline"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "visible": "#cookiesck",
28
+ "check": "none"
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "cookiesmodal-pl",
3
+ "prehideSelectors": [],
4
+ "detectCmp": [
5
+ { "exists": "#cookiesModal .modal-footer #cookiesModalAcceptSelected" },
6
+ { "exists": "#cookiesModal input[name=\"cookies_google\"]" }
7
+ ],
8
+ "detectPopup": [{ "visible": "#cookiesModal .modal-dialog" }],
9
+ "optIn": [{ "waitForThenClick": "#cookiesModal #cookiesModalAcceptAll" }],
10
+ "optOut": [
11
+ {
12
+ "if": { "exists": "#cookiesModal input[name=\"cookies_google\"]:checked" },
13
+ "then": [{ "click": "#cookiesModal input[name=\"cookies_google\"]" }]
14
+ },
15
+ { "waitForThenClick": "#cookiesModal #cookiesModalAcceptSelected", "retry": 3, "retryInterval": 600 }
16
+ ],
17
+ "test": [{ "cookieContains": "cookiePolicy=sessions" }, { "cookieContains": "cookiePolicy=sessions%2Cgoogle", "negated": true }]
18
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "creditunionsa",
3
+ "cosmetic": true,
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?creditunionsa\\.com\\.au/"
6
+ },
7
+ "prehideSelectors": [".cookie-banner-alerts > div:has(button[aria-label=\"Accept\"])"],
8
+ "detectCmp": [{ "exists": ".cookie-banner-alerts button[aria-label=\"Accept\"]" }],
9
+ "detectPopup": [{ "visible": ".cookie-banner-alerts > div:has(button[aria-label=\"Accept\"])" }],
10
+ "optIn": [{ "waitForThenClick": ".cookie-banner-alerts button[aria-label=\"Accept\"]" }],
11
+ "optOut": [{ "hide": ".cookie-banner-alerts > div:has(button[aria-label=\"Accept\"])" }]
12
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "cstudios",
3
+ "vendorUrl": "https://www.cstudios.pl/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?cstudios\\.pl/"
7
+ },
8
+ "prehideSelectors": ["#CookiesWindow"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#CookiesWindow .rodo-window"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#CookiesWindow .rodo-window"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#CookiesWindow .dnnSecondaryAction[onclick*=AcceptRODO]"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "#CookiesWindow"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": "#CookiesWindow",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "dandomain",
3
+ "vendorUrl": "https://dandomain.dk/",
4
+ "cosmetic": false,
5
+ "prehideSelectors": ["#CookiePolicy"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#CookiePolicy #cookie-policy-accept-button"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "#CookiePolicy"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "#CookiePolicy .cookie-policy-accept-all"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "comment": "some shops pre-check the toggles in a DOM-ready handler that may run after detection",
24
+ "wait": 500
25
+ },
26
+ {
27
+ "comment": "the save button keeps the current toggles, so uncheck them first",
28
+ "click": "#CookiePolicy .cookie-policy-consents-area input[type=checkbox]:checked:not(:disabled)",
29
+ "all": true,
30
+ "optional": true
31
+ },
32
+ {
33
+ "waitForThenClick": "#CookiePolicy #cookie-policy-accept-button"
34
+ }
35
+ ],
36
+ "test": [
37
+ {
38
+ "cookieContains": "DDCookiePolicy-consent-tracking=false"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "datezone",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?datezone\\.com/"
5
+ },
6
+ "prehideSelectors": ["[data-rum=\"cookie-consent\"]"],
7
+ "detectCmp": [{ "exists": "[data-rum=\"cookie-consent\"] [data-rum=\"cookie-consent-text\"]" }],
8
+ "detectPopup": [{ "visible": "[data-rum=\"cookie-consent\"]" }],
9
+ "optIn": [{ "waitForThenClick": "[data-rum=\"cookie-consent\"] [data-rum=\"cookie-consent-text\"] + div > button:last-of-type" }],
10
+ "optOut": [
11
+ { "waitForThenClick": "[data-rum=\"cookie-consent\"] [data-rum=\"cookie-consent-text\"] + div > button:first-of-type" },
12
+ { "waitFor": "[data-rum=\"cookie-consent\"] div.grid input[type=\"checkbox\"]" },
13
+ {
14
+ "click": "[data-rum=\"cookie-consent\"] div.grid:has(input[type=\"checkbox\"]:checked:not([disabled]))",
15
+ "all": true,
16
+ "optional": true
17
+ },
18
+ { "waitForThenClick": "[data-rum=\"cookie-consent\"] div.grid ~ div > button:last-of-type" },
19
+ { "waitForVisible": "[data-rum=\"cookie-consent\"]", "check": "none", "timeout": 3000 }
20
+ ],
21
+ "test": [{ "cookieContains": "cookie_consent=necessary" }]
22
+ }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "didomi",
3
+ "comment": "Bail on 'consent or pay' notices, where the disagree button costs money or leads to a subscription offer, and leave the choice to the user.",
3
4
  "prehideSelectors": [
4
5
  "#didomi-popup,.didomi-popup-container,.didomi-popup-notice,.didomi-consent-popup-preferences,#didomi-notice,.didomi-popup-backdrop,.didomi-screen-medium"
5
6
  ],
@@ -8,6 +9,10 @@
8
9
  {
9
10
  "visible": "#didomi-popup, #didomi-notice, .didomi-popup-notice, .didomi-notice-banner, #didomi-host:not([aria-hidden=\"true\"]):not(:empty)",
10
11
  "check": "any"
12
+ },
13
+ {
14
+ "exists": "xpath///button[@id='didomi-notice-disagree-button'][contains(., '€') or contains(., '£') or contains(., '$') or contains(., 'uscri') or contains(., 'ubscri') or contains(., 'bonn') or contains(., 'bbon')]",
15
+ "negated": true
11
16
  }
12
17
  ],
13
18
  "optIn": [{ "waitForThenClick": "#didomi-notice-agree-button" }],
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "dlibra",
3
+ "vendorUrl": "https://dlibra.psnc.pl/",
4
+ "detectCmp": [
5
+ {
6
+ "exists": "script[src*=\"/style/dlibra/\"]"
7
+ },
8
+ {
9
+ "exists": ".cookies > p > button.cookies__button"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ".cookies > p > button.cookies__button"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ".cookies > p > button.cookies__button"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": ".cookies > p > button.cookies__button"
25
+ }
26
+ ],
27
+ "test": [
28
+ {
29
+ "cookieContains": "AcceptCookie=true"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "dnb",
3
+ "vendorUrl": "https://www.dnb.no/",
4
+ "prehideSelectors": ["#eufemia-portal-root .cookie-popup"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".cookie-popup #cookie-popup-strictlyNecessary"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".cookie-popup #cookie-popup-strictlyNecessary"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".cookie-popup #cookie-popup-acceptAll"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".cookie-popup #cookie-popup-strictlyNecessary"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "consentData=sn"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "doc24-ch",
3
+ "vendorUrl": "https://www.doc24.ch/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?doc24\\.ch/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".c-notice + .cursor-pointer"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".c-notice + .cursor-pointer"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".c-notice + .cursor-pointer"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".c-notice + .cursor-pointer"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "EU_COOKIES_CONSENT=true"
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "e-file",
3
+ "vendorUrl": "https://www.e-file.pl/",
4
+ "prehideSelectors": ["#cookiemodal"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookiemodal #cookie-accepted-form"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#cookiemodal #cookie-change-desc"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#cookiemodal #cookie-accepted-all"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#cookiemodal #cookie-change-desc"
23
+ },
24
+ {
25
+ "waitForVisible": "#cookiemodal #cookie-accepted-form"
26
+ },
27
+ {
28
+ "click": "#cookiemodal .cookie-form input[type=checkbox]:checked:not(:disabled)",
29
+ "all": true,
30
+ "optional": true
31
+ },
32
+ {
33
+ "click": "#cookiemodal #cookie-accepted-form"
34
+ }
35
+ ],
36
+ "test": [
37
+ {
38
+ "cookieContains": "analytics_storage=false"
39
+ },
40
+ {
41
+ "cookieContains": "ad_storage=false"
42
+ }
43
+ ]
44
+ }