@duckduckgo/autoconsent 16.59.0 → 16.61.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 (216) hide show
  1. package/.agents/lib/regional-testing/harness.mjs +4 -172
  2. package/.agents/skills/oxylabs-testing/SKILL.md +4 -4
  3. package/.agents/skills/oxylabs-testing/scripts/oxylabs.mjs +17 -164
  4. package/.agents/skills/oxylabs-testing/scripts/oxylabs.test.mjs +6 -3
  5. package/.agents/skills/verify-pr/SKILL.md +1 -1
  6. package/AGENTS.md +1 -1
  7. package/CHANGELOG.md +107 -0
  8. package/Jenkinsfile +36 -1
  9. package/dist/addon-firefox/background.bundle.js +21 -0
  10. package/dist/addon-firefox/compact-rules.json +1 -1
  11. package/dist/addon-firefox/content.bundle.js +253 -93
  12. package/dist/addon-firefox/manifest.json +1 -1
  13. package/dist/addon-firefox/rule-index.json +1 -1
  14. package/dist/addon-firefox/rules.json +1 -1
  15. package/dist/addon-mv3/background.bundle.js +21 -0
  16. package/dist/addon-mv3/compact-rules.json +1 -1
  17. package/dist/addon-mv3/content.bundle.js +253 -93
  18. package/dist/addon-mv3/manifest.json +1 -1
  19. package/dist/addon-mv3/rule-index.json +1 -1
  20. package/dist/addon-mv3/rules.json +1 -1
  21. package/dist/autoconsent.cjs.js +253 -93
  22. package/dist/autoconsent.esm.js +253 -93
  23. package/dist/autoconsent.playwright.js +253 -93
  24. package/dist/autoconsent.standalone.js +254 -94
  25. package/dist/heuristics.cjs.js +29 -3
  26. package/dist/heuristics.mjs +28 -3
  27. package/dist/types/cmps/onetrust.d.ts +1 -0
  28. package/dist/types/eval-snippets.d.ts +3 -0
  29. package/dist/types/heuristic-classify.d.ts +1 -0
  30. package/dist/types/heuristics.d.ts +10 -1
  31. package/lib/cmps/onetrust.ts +15 -0
  32. package/lib/eval-snippets.ts +21 -0
  33. package/lib/heuristic-classify.ts +6 -0
  34. package/lib/heuristic-patterns.ts +26 -1
  35. package/lib/heuristics.ts +256 -104
  36. package/package.json +1 -1
  37. package/playwright/isolated-world.mjs +217 -0
  38. package/playwright/oxylabs.mjs +196 -0
  39. package/playwright/runner.ts +183 -39
  40. package/playwright.config.ts +4 -1
  41. package/rules/autoconsent/aeolservice.json +39 -0
  42. package/rules/autoconsent/airbnb.json +32 -0
  43. package/rules/autoconsent/amazon-music.json +13 -0
  44. package/rules/autoconsent/annunci69.json +19 -0
  45. package/rules/autoconsent/appconsent.json +6 -1
  46. package/rules/autoconsent/arbeidsplassen-nav-no.json +33 -0
  47. package/rules/autoconsent/att.json +36 -0
  48. package/rules/autoconsent/auctionet.json +39 -0
  49. package/rules/autoconsent/autodoc.json +18 -0
  50. package/rules/autoconsent/bbc.com-orb-cosmetic.json +34 -0
  51. package/rules/autoconsent/bbc.com.json +8 -5
  52. package/rules/autoconsent/bokadirekt.se.json +50 -0
  53. package/rules/autoconsent/bouvet-cookiepanel.json +29 -0
  54. package/rules/autoconsent/com-consent-layer.json +10 -0
  55. package/rules/autoconsent/consent-studio.json +25 -13
  56. package/rules/autoconsent/cookielegit.json +21 -0
  57. package/rules/autoconsent/cookieprompter.json +21 -0
  58. package/rules/autoconsent/cookiereports.json +10 -0
  59. package/rules/autoconsent/cookietractor.json +37 -0
  60. package/rules/autoconsent/de-volksbank.json +14 -0
  61. package/rules/autoconsent/dpgmedia-nl.json +20 -8
  62. package/rules/autoconsent/eon.pl.json +18 -0
  63. package/rules/autoconsent/eroticiracconti-it.json +13 -0
  64. package/rules/autoconsent/ersatzteile-24.json +49 -0
  65. package/rules/autoconsent/fastweb-cookie-center.json +13 -0
  66. package/rules/autoconsent/futurabolzano-it.json +35 -0
  67. package/rules/autoconsent/gobasic.json +10 -0
  68. package/rules/autoconsent/gravito.json +23 -16
  69. package/rules/autoconsent/hacon-next-gen.json +41 -0
  70. package/rules/autoconsent/ing-de.json +31 -0
  71. package/rules/autoconsent/interia.json +1 -4
  72. package/rules/autoconsent/intesasanpaolo.json +37 -0
  73. package/rules/autoconsent/jobindex.json +40 -0
  74. package/rules/autoconsent/kaspersky-cookies-notification.json +9 -0
  75. package/rules/autoconsent/lantmateriet.json +13 -0
  76. package/rules/autoconsent/livsmedelsverket.json +18 -0
  77. package/rules/autoconsent/mainichi.json +39 -0
  78. package/rules/autoconsent/mango.json +56 -0
  79. package/rules/autoconsent/nederlandseloterij.json +35 -0
  80. package/rules/autoconsent/newsbreak.json +16 -0
  81. package/rules/autoconsent/nhsapp.json +10 -0
  82. package/rules/autoconsent/nordea.json +21 -0
  83. package/rules/autoconsent/nordnet.json +33 -0
  84. package/rules/autoconsent/ok.json +4 -12
  85. package/rules/autoconsent/onlineradiobox.json +35 -0
  86. package/rules/autoconsent/pe-cookies.json +30 -0
  87. package/rules/autoconsent/pensionsmyndigheten.json +13 -0
  88. package/rules/autoconsent/pro-euclp-cookies-box.json +31 -0
  89. package/rules/autoconsent/pubfactory.json +45 -0
  90. package/rules/autoconsent/puesc-gov-pl.json +37 -0
  91. package/rules/autoconsent/rambler.json +30 -0
  92. package/rules/autoconsent/rejestr-io.json +36 -0
  93. package/rules/autoconsent/sas.json +6 -6
  94. package/rules/autoconsent/scb.se.json +13 -0
  95. package/rules/autoconsent/schumacher.com.json +53 -0
  96. package/rules/autoconsent/sitevision.json +18 -1
  97. package/rules/autoconsent/skatteverket-se.json +33 -0
  98. package/rules/autoconsent/smile-insurances.json +13 -0
  99. package/rules/autoconsent/studentapan.json +16 -0
  100. package/rules/autoconsent/svt.se.json +7 -7
  101. package/rules/autoconsent/temu.json +12 -16
  102. package/rules/autoconsent/thecode.json +21 -0
  103. package/rules/autoconsent/tv2reg-cookie-notice.json +39 -0
  104. package/rules/autoconsent/uk-parliament.json +19 -0
  105. package/rules/autoconsent/wirtualna-polska.json +13 -10
  106. package/rules/autoconsent/xenforo-cookie-consent.json +62 -0
  107. package/rules/autoconsent/zorginstituut-cookiewarning.json +33 -0
  108. package/rules/compact-rules.json +1 -1
  109. package/rules/rule-index.json +1 -1
  110. package/rules/rules.json +1 -1
  111. package/tests/aeolservice.spec.ts +5 -0
  112. package/tests/airbnb.spec.ts +3 -0
  113. package/tests/amazon-music.spec.ts +9 -0
  114. package/tests/annunci69.spec.ts +5 -0
  115. package/tests/appconsent.spec.ts +6 -0
  116. package/tests/arbeidsplassen-nav-no.spec.ts +3 -0
  117. package/tests/att.spec.ts +3 -0
  118. package/tests/auctionet.spec.ts +3 -0
  119. package/tests/autodoc.spec.ts +8 -0
  120. package/tests/bbc.com-orb-cosmetic.spec.ts +8 -0
  121. package/tests/bbc.com.spec.ts +11 -9
  122. package/tests/bokadirekt.se.spec.ts +3 -0
  123. package/tests/bouvet-cookiepanel.spec.ts +9 -0
  124. package/tests/com-consent-layer.spec.ts +6 -0
  125. package/tests/consent-studio.spec.ts +5 -0
  126. package/tests/cookiebot.spec.ts +1 -0
  127. package/tests/cookielegit.spec.ts +3 -0
  128. package/tests/cookieprompter.spec.ts +9 -0
  129. package/tests/cookiereports.spec.ts +13 -0
  130. package/tests/cookietractor.spec.ts +12 -0
  131. package/tests/de-volksbank.spec.ts +5 -0
  132. package/tests/dpgmedia-nl.spec.ts +15 -1
  133. package/tests/eon.pl.spec.ts +3 -0
  134. package/tests/eroticiracconti-it.spec.ts +3 -0
  135. package/tests/ersatzteile-24.spec.ts +6 -0
  136. package/tests/fastweb-cookie-center.spec.ts +3 -0
  137. package/tests/futurabolzano-it.spec.ts +3 -0
  138. package/tests/gobasic.spec.ts +3 -0
  139. package/tests/gravito.spec.ts +7 -1
  140. package/tests/hacon-next-gen.spec.ts +6 -0
  141. package/tests/ing-de.spec.ts +3 -0
  142. package/tests/interia.spec.ts +1 -1
  143. package/tests/intesasanpaolo.spec.ts +3 -0
  144. package/tests/jobindex.spec.ts +3 -0
  145. package/tests/kaspersky-cookies-notification.spec.ts +8 -0
  146. package/tests/lantmateriet.spec.ts +3 -0
  147. package/tests/livsmedelsverket.spec.ts +5 -0
  148. package/tests/mainichi.spec.ts +10 -0
  149. package/tests/mango.spec.ts +3 -0
  150. package/tests/nederlandseloterij.spec.ts +9 -0
  151. package/tests/newsbreak.spec.ts +3 -0
  152. package/tests/nhsapp.spec.ts +3 -0
  153. package/tests/nordea.spec.ts +6 -0
  154. package/tests/nordnet.spec.ts +8 -0
  155. package/tests/onlineradiobox.spec.ts +5 -0
  156. package/tests/pe-cookies.spec.ts +6 -0
  157. package/tests/pensionsmyndigheten.spec.ts +3 -0
  158. package/tests/pro-euclp-cookies-box.spec.ts +8 -0
  159. package/tests/pubfactory.spec.ts +10 -0
  160. package/tests/puesc-gov-pl.spec.ts +3 -0
  161. package/tests/rambler.spec.ts +3 -0
  162. package/tests/rejestr-io.spec.ts +3 -0
  163. package/tests/sas.spec.ts +1 -1
  164. package/tests/scb.se.spec.ts +4 -0
  165. package/tests/schumacher.com.spec.ts +6 -0
  166. package/tests/sitevision-cookie-consent.spec.ts +1 -0
  167. package/tests/sitevision.spec.ts +7 -0
  168. package/tests/skatteverket-se.spec.ts +3 -0
  169. package/tests/smile-insurances.spec.ts +6 -0
  170. package/tests/studentapan.spec.ts +3 -0
  171. package/tests/svt.se.spec.ts +1 -3
  172. package/tests/temu.spec.ts +3 -1
  173. package/tests/thecode.spec.ts +3 -0
  174. package/tests/tv2reg-cookie-notice.spec.ts +16 -0
  175. package/tests/uk-parliament.spec.ts +8 -0
  176. package/tests/wirtualna-polska.spec.ts +6 -1
  177. package/tests/xenforo-cookie-consent.spec.ts +6 -0
  178. package/tests/zorginstituut-cookiewarning.spec.ts +10 -0
  179. package/tests-wtr/heuristics/get-potential-popups.test.ts +330 -9
  180. package/tests-wtr/heuristics/heuristics-utils.test.ts +98 -0
  181. package/rules/autoconsent/twitter.json +0 -34
  182. package/rules/generated/auto_AU_flysas.com_r1s.json +0 -40
  183. package/rules/generated/auto_CH_airbnb.de_83z.json +0 -40
  184. package/rules/generated/auto_CH_autodoc.de_krd.json +0 -40
  185. package/rules/generated/auto_CH_svtplay.se_d39.json +0 -40
  186. package/rules/generated/auto_GB_parliamentlive.tv_r3v.json +0 -28
  187. package/rules/generated/auto_NL_asnbank.nl_e28.json +0 -40
  188. package/rules/generated/auto_NL_eurojackpot.nederlandseloterij.nl_7hr.json +0 -40
  189. package/rules/generated/auto_NL_lotto.nederlandseloterij.nl_7c8.json +0 -40
  190. package/rules/generated/auto_NL_nederlandseloterij.nl_b60.json +0 -40
  191. package/rules/generated/auto_NL_staatsloterij.nederlandseloterij.nl_197.json +0 -40
  192. package/rules/generated/auto_NO_arronet.se_vo5.json +0 -40
  193. package/rules/generated/auto_NO_liseberg.se_qy4.json +0 -40
  194. package/rules/generated/auto_NO_nordnet.se_2en.json +0 -40
  195. package/rules/generated/auto_NO_regeringen.se_uhv.json +0 -40
  196. package/rules/generated/auto_NO_svtplay.se_ujn.json +0 -40
  197. package/rules/generated/auto_NO_uu.se_eea.json +0 -40
  198. package/rules/generated/auto_US_newsbreak.com_0.json +0 -28
  199. package/tests/generated/auto_AU_flysas.com_r1s.spec.ts +0 -2
  200. package/tests/generated/auto_CH_airbnb.de_83z.spec.ts +0 -2
  201. package/tests/generated/auto_CH_autodoc.de_krd.spec.ts +0 -2
  202. package/tests/generated/auto_CH_svtplay.se_d39.spec.ts +0 -2
  203. package/tests/generated/auto_GB_parliamentlive.tv_r3v.spec.ts +0 -6
  204. package/tests/generated/auto_NL_asnbank.nl_e28.spec.ts +0 -6
  205. package/tests/generated/auto_NL_eurojackpot.nederlandseloterij.nl_7hr.spec.ts +0 -6
  206. package/tests/generated/auto_NL_lotto.nederlandseloterij.nl_7c8.spec.ts +0 -6
  207. package/tests/generated/auto_NL_nederlandseloterij.nl_b60.spec.ts +0 -6
  208. package/tests/generated/auto_NL_staatsloterij.nederlandseloterij.nl_197.spec.ts +0 -6
  209. package/tests/generated/auto_NO_arronet.se_vo5.spec.ts +0 -2
  210. package/tests/generated/auto_NO_liseberg.se_qy4.spec.ts +0 -2
  211. package/tests/generated/auto_NO_nordnet.se_2en.spec.ts +0 -2
  212. package/tests/generated/auto_NO_regeringen.se_uhv.spec.ts +0 -6
  213. package/tests/generated/auto_NO_svtplay.se_ujn.spec.ts +0 -2
  214. package/tests/generated/auto_NO_uu.se_eea.spec.ts +0 -2
  215. package/tests/generated/auto_US_newsbreak.com_0.spec.ts +0 -2
  216. package/tests/twitter.spec.ts +0 -10
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "amazon-music",
3
+ "vendorUrl": "https://music.amazon.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://music\\.amazon\\.[a-z.]+/"
6
+ },
7
+ "prehideSelectors": ["#banner"],
8
+ "detectCmp": [{ "exists": "#banner #bannerFooter music-button" }],
9
+ "detectPopup": [{ "visible": "#banner #bannerFooter" }],
10
+ "optIn": [{ "waitForThenClick": ["#bannerFooter music-button[variant=solid]", "button"] }],
11
+ "optOut": [{ "waitForThenClick": ["#bannerFooter music-button[variant=outline]", "button"] }],
12
+ "test": [{ "waitForVisible": "#banner #bannerFooter", "check": "none", "timeout": 2000 }]
13
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "annunci69.it",
3
+ "vendorUrl": "https://www.annunci69.it/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?annunci69\\.it/"
6
+ },
7
+ "prehideSelectors": ["#a69-cookie-banner"],
8
+ "detectCmp": [{ "exists": "#a69-cookie-banner #a69-cookie-manage" }],
9
+ "detectPopup": [{ "visible": "#a69-cookie-banner" }],
10
+ "optIn": [{ "waitForThenClick": "#a69-cookie-accept" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "#a69-cookie-manage" },
13
+ { "waitForVisible": "#a69-cookie-modal" },
14
+ { "click": "#a69-cookie-analytics:checked", "optional": true },
15
+ { "click": "#a69-cookie-save" },
16
+ { "waitForVisible": "#a69-cookie-banner", "check": "none" }
17
+ ],
18
+ "test": [{ "cookieContains": "a69_cookie_preferences=%7B%22analytics%22%3Afalse" }]
19
+ }
@@ -18,7 +18,12 @@
18
18
  ],
19
19
  "optOut": [
20
20
  {
21
- "waitForThenClick": ["iframe[title='Consent window']", ".button__refuseAll"]
21
+ "waitFor": ["iframe[title='Consent window']", ".button__refuseAll, .button__skip"]
22
+ },
23
+ {
24
+ "if": { "exists": ["iframe[title='Consent window']", ".button__refuseAll"] },
25
+ "then": [{ "click": ["iframe[title='Consent window']", ".button__refuseAll"] }],
26
+ "else": [{ "click": ["iframe[title='Consent window']", ".button__skip"] }]
22
27
  }
23
28
  ],
24
29
  "test": [
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "arbeidsplassen-nav-no",
3
+ "vendorUrl": "https://arbeidsplassen.nav.no/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://arbeidsplassen\\.nav\\.no/"
6
+ },
7
+ "prehideSelectors": ["#arb-cookie-banner-section"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#arb-cookie-banner-section button"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#arb-cookie-banner-section"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#arb-cookie-banner-section button:last-of-type"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#arb-cookie-banner-section button:first-of-type"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "%22analytics%22%3Afalse"
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "att",
3
+ "vendorUrl": "https://www.att.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https://([a-z0-9-]+\\.)*att\\.com/"
6
+ },
7
+ "prehideSelectors": ["#gpc-banner-container"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ["#gpc-banner-container", "#declineSave"]
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ["#gpc-banner-container", "#declineSave"]
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ["#gpc-banner-container", "#acceptAccept"]
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ["#gpc-banner-container", "#declineSave"]
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "wait": 1000
31
+ },
32
+ {
33
+ "cookieContains": "\"consent\":\"d\""
34
+ }
35
+ ]
36
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "auctionet",
3
+ "vendorUrl": "https://auctionet.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?auctionet\\.(com|se)/"
6
+ },
7
+ "prehideSelectors": ["form.test-cookie-consent"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "form.test-cookie-consent [data-cookie-consent-target=\"screen1\"]"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "form.test-cookie-consent [data-cookie-consent-target=\"screen1\"]"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "form.test-cookie-consent [data-cookie-consent-target=\"screen1\"] [data-action=\"cookie-consent#acceptAll\"]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "form.test-cookie-consent [data-action=\"cookie-consent#showSettings\"]"
26
+ },
27
+ {
28
+ "waitForThenClick": "form.test-cookie-consent [data-cookie-consent-target=\"screen2\"] [data-action=\"cookie-consent#rejectAll\"]"
29
+ }
30
+ ],
31
+ "test": [
32
+ {
33
+ "wait": 500
34
+ },
35
+ {
36
+ "cookieContains": "%22ad_storage%22%3Afalse"
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "autodoc",
3
+ "detectCmp": [{ "exists": "div[data-popup-cookies][data-terms-cookies-popup-common] button[data-cookies=\"disallow_all_cookies\"]" }],
4
+ "detectPopup": [
5
+ { "visible": "div[data-popup-cookies][data-terms-cookies-popup-common] button[data-cookies=\"disallow_all_cookies\"]" }
6
+ ],
7
+ "optIn": [
8
+ { "waitForThenClick": "div[data-popup-cookies][data-terms-cookies-popup-common] button[data-cookies=\"allow_all_cookies\"]" }
9
+ ],
10
+ "optOut": [
11
+ { "waitForThenClick": "div[data-popup-cookies][data-terms-cookies-popup-common] button[data-cookies=\"disallow_all_cookies\"]" }
12
+ ],
13
+ "prehideSelectors": ["div[data-popup-cookies][data-terms-cookies-popup-common]"],
14
+ "test": [
15
+ { "wait": 2000, "comment": "rejecting submits a form and reloads the page" },
16
+ { "cookieContains": "all_marketing_cookies=denied" }
17
+ ]
18
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "bbc.com-orb-cosmetic",
3
+ "cosmetic": true,
4
+ "runContext": {
5
+ "urlPattern": "^https://(www\\.)?bbc\\.(com|co\\.uk)/"
6
+ },
7
+ "prehideSelectors": ["#cookiePrompt:has(#bbccookies-continue-button)"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#bbccookies-continue-button"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#bbccookies-continue-button"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#bbccookies-continue-button"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "hide": "#cookiePrompt:has(#bbccookies-continue-button)"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "visible": "#bbccookies-prompt",
31
+ "check": "none"
32
+ }
33
+ ]
34
+ }
@@ -3,7 +3,7 @@
3
3
  "runContext": {
4
4
  "urlPattern": "^https://(www\\.)?bbc\\.(com|co\\.uk)/"
5
5
  },
6
- "prehideSelectors": ["*[aria-labelledby=\"consent-banner-title\"]", "#bbccookies-prompt"],
6
+ "prehideSelectors": ["*[aria-labelledby=\"consent-banner-title\"]", "#bbccookies-prompt:has(#bbccookies-reject-button)"],
7
7
  "detectCmp": [
8
8
  {
9
9
  "any": [
@@ -11,7 +11,7 @@
11
11
  "exists": "#consent-banner-title"
12
12
  },
13
13
  {
14
- "exists": "#bbccookies-prompt"
14
+ "exists": "#bbccookies-reject-button"
15
15
  }
16
16
  ]
17
17
  }
@@ -23,7 +23,7 @@
23
23
  "visible": "#consent-banner-title"
24
24
  },
25
25
  {
26
- "visible": "#bbccookies-prompt"
26
+ "visible": "#bbccookies-reject-button"
27
27
  }
28
28
  ]
29
29
  }
@@ -31,7 +31,7 @@
31
31
  "optIn": [
32
32
  {
33
33
  "if": {
34
- "exists": "#bbccookies-prompt"
34
+ "exists": "#bbccookies-accept-button"
35
35
  },
36
36
  "then": [
37
37
  {
@@ -48,7 +48,7 @@
48
48
  "optOut": [
49
49
  {
50
50
  "if": {
51
- "exists": "#bbccookies-prompt"
51
+ "exists": "#bbccookies-reject-button"
52
52
  },
53
53
  "then": [
54
54
  {
@@ -63,6 +63,9 @@
63
63
  }
64
64
  ],
65
65
  "test": [
66
+ {
67
+ "wait": 500
68
+ },
66
69
  {
67
70
  "cookieContains": "ckns_explicit=1"
68
71
  }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "bokadirekt.se",
3
+ "vendorUrl": "https://www.bokadirekt.se/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?bokadirekt\\.se/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "[role=dialog] [data-cy=allowCookiesButton]"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "[role=dialog] [data-cy=allowCookiesButton]"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "[role=dialog] [data-cy=allowCookiesButton]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "[role=dialog] [data-cy=allowCookiesButton] ~ a[href=\"/articles/cookies\"]"
26
+ },
27
+ {
28
+ "waitForVisible": ".container > h3 ~ button"
29
+ },
30
+ {
31
+ "if": {
32
+ "exists": ".container > h3 > input[type=checkbox]:checked:not([disabled])"
33
+ },
34
+ "then": [
35
+ {
36
+ "click": ".container > h3 > input[type=checkbox]:checked:not([disabled])",
37
+ "all": true
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "click": ".container > h3 ~ button"
43
+ }
44
+ ],
45
+ "test": [
46
+ {
47
+ "cookieContains": "BokadirektCookiePreferencesMP=Mandatory"
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "bouvet-cookiepanel",
3
+ "prehideSelectors": ["#cookie-panel-banner"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "#cookie-panel-banner"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": "#cookie-panel-banner"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": "#cookie-panel-banner-accept-button"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "waitForThenClick": "#cookie-panel-banner-reject-button"
22
+ }
23
+ ],
24
+ "test": [
25
+ {
26
+ "cookieContains": "no.bouvet.app.cookiepanel-cookie-control"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "com-consent-layer",
3
+ "vendorUrl": "https://www.comdirect.de/",
4
+ "prehideSelectors": ["com-consent-layer"],
5
+ "detectCmp": [{ "exists": ["com-consent-layer", "dialog"] }],
6
+ "detectPopup": [{ "visible": ["com-consent-layer", "dialog[open]"] }],
7
+ "optIn": [{ "waitForThenClick": ["com-consent-layer", "#cmpAcceptAll"] }],
8
+ "optOut": [{ "waitForThenClick": ["com-consent-layer", "#cmpDenyAll"] }],
9
+ "test": [{ "waitForVisible": ["com-consent-layer", "dialog[open]"], "timeout": 1000, "check": "none" }]
10
+ }
@@ -1,29 +1,41 @@
1
1
  {
2
2
  "name": "consent-studio",
3
3
  "vendorUrl": "https://consent.studio/",
4
- "prehideSelectors": [".consent-studio .cookie-banner"],
5
- "detectCmp": [{ "exists": ".consent-studio .cookie-banner" }],
6
- "detectPopup": [{ "visible": ".consent-studio .cookie-banner:not(.is--hidden)" }],
7
- "optIn": [{ "waitForThenClick": ".consent-studio .cookie-banner [data-cs-button=accept_all]" }],
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false
8
+ },
9
+ "prehideSelectors": [".consent-studio .cookie-banner", ".consent-studio .consent-banner"],
10
+ "detectCmp": [{ "exists": ".consent-studio [cs-role=consent-banner]" }],
11
+ "detectPopup": [{ "visible": ".consent-studio [cs-role=consent-banner]" }],
12
+ "optIn": [{ "waitForThenClick": ".consent-studio [cs-role=consent-banner] [data-cs-button=accept_all]" }],
8
13
  "optOut": [
9
14
  {
10
- "if": { "visible": ".consent-studio .cookie-banner [data-cs-button=reject_all]" },
11
- "then": [{ "click": ".consent-studio .cookie-banner [data-cs-button=reject_all]" }],
15
+ "if": { "visible": ".consent-studio [cs-role=consent-banner] [data-cs-button=reject_all]" },
16
+ "then": [{ "click": ".consent-studio [cs-role=consent-banner] [data-cs-button=reject_all]" }],
12
17
  "else": [
13
18
  {
14
- "if": { "visible": ".consent-studio .cookie-banner .is--close-button[cs-consent=reject]" },
15
- "then": [{ "click": ".consent-studio .cookie-banner .is--close-button[cs-consent=reject]" }],
19
+ "if": { "visible": ".consent-studio [cs-role=consent-banner] [cs-consent=reject]", "check": "any" },
20
+ "then": [{ "click": ".consent-studio [cs-role=consent-banner] [cs-consent=reject]" }],
16
21
  "else": [
17
22
  {
18
- "click": ".consent-studio .cookie-banner .cookie-banner__switch[aria-checked=true]:not([aria-disabled=true])",
19
- "all": true,
20
- "optional": true
23
+ "if": {
24
+ "exists": ".consent-studio [cs-role=consent-banner] .cookie-banner__switch[aria-checked=true]:not([aria-disabled=true])"
25
+ },
26
+ "then": [
27
+ {
28
+ "click": ".consent-studio [cs-role=consent-banner] .cookie-banner__switch[aria-checked=true]:not([aria-disabled=true])",
29
+ "all": true
30
+ }
31
+ ]
21
32
  },
22
- { "click": ".consent-studio .cookie-banner [data-cs-button=save]" }
33
+ { "waitForThenClick": ".consent-studio [cs-role=consent-banner] [data-cs-button=save]" }
23
34
  ]
24
35
  }
25
36
  ]
26
- }
37
+ },
38
+ { "waitForVisible": ".consent-studio [cs-role=consent-banner]", "check": "none" }
27
39
  ],
28
40
  "test": [{ "wait": 500 }, { "cookieContains": "consent-studio__storage=[%22functional%22]" }]
29
41
  }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "cookielegit",
3
+ "prehideSelectors": ["#cookie-legit-notice-container .cookie-legit-notice"],
4
+ "detectCmp": [{ "exists": "#cookie-legit-notice-container .cookie-legit-notice" }],
5
+ "detectPopup": [{ "visible": "#cookie-legit-notice-container.notice .cookie-legit-notice" }],
6
+ "optIn": [{ "waitForThenClick": "#cookie-legit-notice-container .cookie-legit-accept-btn" }],
7
+ "optOut": [
8
+ {
9
+ "if": { "exists": "#cookie-legit-notice-container .cookie-legit-deny-btn" },
10
+ "then": [{ "waitForThenClick": "#cookie-legit-notice-container .cookie-legit-deny-btn" }],
11
+ "else": [
12
+ { "waitForThenClick": "#cookie-legit-notice-container .cookie-legit-pref-btn" },
13
+ { "waitForVisible": "#cookie-legit-notice-container .cookie-legit-save-pref-btn" },
14
+ { "click": "#cookie-legit-notice-container input[name=cl_tracking]:checked", "optional": true },
15
+ { "click": "#cookie-legit-notice-container input[name=cl_marketing]:checked", "optional": true },
16
+ { "click": "#cookie-legit-notice-container .cookie-legit-save-pref-btn" }
17
+ ]
18
+ }
19
+ ],
20
+ "test": [{ "cookieContains": "cl_tracking=false" }, { "cookieContains": "cl_marketing=false" }]
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "cookieprompter",
3
+ "cosmetic": false,
4
+ "runContext": {
5
+ "main": true,
6
+ "frame": false
7
+ },
8
+ "prehideSelectors": ["#eksCookiePrompt"],
9
+ "detectCmp": [{ "exists": "#eksCookiePrompt" }],
10
+ "detectPopup": [{ "visible": "#eksCookiePrompt" }],
11
+ "optIn": [{ "waitForThenClick": "#eksCookiePrompt .cpAcceptBtn" }],
12
+ "optOut": [
13
+ {
14
+ "if": { "exists": "#eksCookiePrompt .cpDontAcceptBtn" },
15
+ "then": [{ "click": "#eksCookiePrompt .cpDontAcceptBtn" }],
16
+ "else": [{ "waitForThenClick": "#eksCookieNo" }]
17
+ },
18
+ { "waitForVisible": "#eksCookiePrompt", "check": "none" }
19
+ ],
20
+ "test": [{ "cookieContains": "cookieOptOut=n" }]
21
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "cookiereports",
3
+ "vendorUrl": "https://www.cookiereports.com/",
4
+ "prehideSelectors": ["#CookieReportsBanner", "#CookieReportsOverlay"],
5
+ "detectCmp": [{ "exists": "#CookieReportsPanel #CookieReportsBanner" }],
6
+ "detectPopup": [{ "visible": "#CookieReportsBanner" }],
7
+ "optIn": [{ "eval": "EVAL_COOKIEREPORTS_OPT_IN" }],
8
+ "optOut": [{ "eval": "EVAL_COOKIEREPORTS_OPT_OUT" }],
9
+ "test": [{ "eval": "EVAL_COOKIEREPORTS_TEST" }]
10
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "cookietractor",
3
+ "vendorUrl": "https://www.cookietractor.se/",
4
+ "prehideSelectors": ["#CookieConsent dialog.cookie-popup"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#CookieConsent dialog.cookie-popup #cc-b-custom"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#CookieConsent dialog.cookie-popup #cc-b-custom"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#CookieConsent #cc-b-acceptall"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "click": "#CookieConsent .actions input[type=checkbox]:checked",
23
+ "all": true,
24
+ "optional": true
25
+ },
26
+ {
27
+ "waitForThenClick": "#CookieConsent #cc-b-custom"
28
+ }
29
+ ],
30
+ "test": [
31
+ {
32
+ "waitForVisible": "#CookieConsent dialog.cookie-popup #cc-b-custom",
33
+ "timeout": 1000,
34
+ "check": "none"
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "de-volksbank",
3
+ "prehideSelectors": [],
4
+ "detectCmp": [{ "exists": "#cookieconsent.cookie-overlay .cookie-buttons #cookie-deny" }],
5
+ "detectPopup": [
6
+ {
7
+ "comment": "the closed banner stays in the DOM with visibility: hidden, which the visible check ignores",
8
+ "exists": "#cookieconsent.cookie-overlay[style*=\"visibility: visible\"] #cookie-deny"
9
+ }
10
+ ],
11
+ "optIn": [{ "waitForThenClick": "#cookieconsent.cookie-overlay #cookie-accept" }],
12
+ "optOut": [{ "waitForThenClick": "#cookieconsent.cookie-overlay #cookie-deny" }],
13
+ "test": [{ "cookieContains": "CLC_GDPR=AB%3A" }]
14
+ }
@@ -1,27 +1,39 @@
1
1
  {
2
2
  "name": "dpgmedia-nl",
3
- "prehideSelectors": ["#pg-root-shadow-host"],
3
+ "prehideSelectors": ["#pg-shadow-host-dom"],
4
4
  "detectCmp": [
5
5
  {
6
- "exists": "#pg-root-shadow-host"
6
+ "exists": "#pg-shadow-host-dom"
7
7
  }
8
8
  ],
9
9
  "detectPopup": [
10
10
  {
11
- "visible": ["#pg-root-shadow-host", "#pg-modal"]
11
+ "visible": ["#pg-shadow-host-dom", "#pg-modal"]
12
12
  }
13
13
  ],
14
14
  "optIn": [
15
15
  {
16
- "waitForThenClick": ["#pg-root-shadow-host", "#pg-accept-btn"]
16
+ "waitForThenClick": ["#pg-shadow-host-dom", "#pg-accept-btn"]
17
17
  }
18
18
  ],
19
19
  "optOut": [
20
20
  {
21
- "waitForThenClick": ["#pg-root-shadow-host", "#pg-configure-btn"]
22
- },
23
- {
24
- "waitForThenClick": ["#pg-root-shadow-host", "#pg-reject-btn"]
21
+ "if": {
22
+ "visible": ["#pg-shadow-host-dom", "#pg-reject-btn"]
23
+ },
24
+ "then": [
25
+ {
26
+ "click": ["#pg-shadow-host-dom", "#pg-reject-btn"]
27
+ }
28
+ ],
29
+ "else": [
30
+ {
31
+ "waitForThenClick": ["#pg-shadow-host-dom", "#pg-configure-btn"]
32
+ },
33
+ {
34
+ "waitForThenClick": ["#pg-shadow-host-dom", "#pg-reject-btn"]
35
+ }
36
+ ]
25
37
  }
26
38
  ]
27
39
  }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "eon.pl",
3
+ "vendorUrl": "https://eon.pl/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?eon\\.pl/"
6
+ },
7
+ "prehideSelectors": ["#clb.clb-container"],
8
+ "detectCmp": [{ "exists": "#clb.clb-container #moreSettings" }],
9
+ "detectPopup": [{ "visible": "#clb.clb-container" }],
10
+ "optIn": [{ "waitForThenClick": "#clb #acceptCookies" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "#clb #moreSettings" },
13
+ { "waitForVisible": "#clb #clb-panel-2" },
14
+ { "click": "#clb #switch2[data-active=true]", "optional": true },
15
+ { "click": "#clb #saveSettings" }
16
+ ],
17
+ "test": [{ "cookieContains": "dws01-level=1" }]
18
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "eroticiracconti-it",
3
+ "vendorUrl": "https://www.eroticiracconti.it/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?eroticiracconti\\.it/"
7
+ },
8
+ "prehideSelectors": [".cookies-line"],
9
+ "detectCmp": [{ "exists": ".cookies-line a[href=\"/cookies-policy\"]" }],
10
+ "detectPopup": [{ "visible": ".cookies-line.show" }],
11
+ "optIn": [{ "hide": ".cookies-line" }],
12
+ "optOut": [{ "hide": ".cookies-line" }]
13
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "ersatzteile-24",
3
+ "_metadata": {
4
+ "vendorUrl": "https://www.ersatzteile-24.com/"
5
+ },
6
+ "runContext": {
7
+ "urlPattern": "^https?://(www\\.)?ersatzteile-24\\.com/"
8
+ },
9
+ "prehideSelectors": ["[data-cookie-hint]"],
10
+ "detectCmp": [
11
+ {
12
+ "exists": "[data-cookie-hint] [data-cookie-hint-save-settings]"
13
+ }
14
+ ],
15
+ "detectPopup": [
16
+ {
17
+ "visible": "[data-cookie-hint] [data-cookie-first]"
18
+ }
19
+ ],
20
+ "optIn": [
21
+ {
22
+ "waitForThenClick": "[data-cookie-first] [data-cookie-hint-accept]"
23
+ }
24
+ ],
25
+ "optOut": [
26
+ {
27
+ "waitForThenClick": "[data-cookie-hint] [data-cookie-hint-settings]",
28
+ "retry": 5,
29
+ "retryInterval": 1000
30
+ },
31
+ {
32
+ "waitForVisible": "[data-cookie-settings] #cookie-setting-1"
33
+ },
34
+ {
35
+ "click": "[data-cookie-settings] #cookie-setting-1"
36
+ },
37
+ {
38
+ "click": "[data-cookie-hint] [data-cookie-hint-save-settings]"
39
+ }
40
+ ],
41
+ "test": [
42
+ {
43
+ "cookieContains": "cookieHint=1"
44
+ },
45
+ {
46
+ "cookieContains": "cookieAllowed=1"
47
+ }
48
+ ]
49
+ }