@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": "pensionsmyndigheten",
3
+ "vendorUrl": "https://www.pensionsmyndigheten.se/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?pensionsmyndigheten\\.se/"
6
+ },
7
+ "prehideSelectors": ["[data-ui-test=pm-cookie-banner]"],
8
+ "detectCmp": [{ "exists": "[data-ui-test=pm-cookie-banner]" }],
9
+ "detectPopup": [{ "visible": "[data-ui-test=pm-cookie-banner]" }],
10
+ "optIn": [{ "waitForThenClick": "[data-ui-test=pm-cookie-banner-consent-button]" }],
11
+ "optOut": [{ "waitForThenClick": "[data-ui-test=pm-cookie-banner-decline-button]" }],
12
+ "test": [{ "cookieContains": "pm_cookie_consent_level=1" }]
13
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "pro-euclp-cookies-box",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["#pro_euclp_cookies_box"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#pro_euclp_cookies_box .pro_euclp_accept"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#pro_euclp_cookies_box"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#pro_euclp_cookies_box .pro_euclp_accept"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "hide": "#pro_euclp_cookies_box"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "visible": "#pro_euclp_cookies_box",
28
+ "check": "none"
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "pubfactory",
3
+ "vendorUrl": "https://www.pubfactory.com/",
4
+ "cosmetic": false,
5
+ "prehideSelectors": ["#euCookiesZone .european-union-cookies-agreement"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#euCookiesZone .european-union-cookies-agreement"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "#euCookiesZone .european-union-cookies-agreement"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitFor": "body[data-page-initialized=true]",
19
+ "timeout": 20000,
20
+ "optional": true
21
+ },
22
+ {
23
+ "waitForThenClick": "#euCookiesZone [data-testid=cookieBannerDismiss]"
24
+ }
25
+ ],
26
+ "optOut": [
27
+ {
28
+ "waitFor": "body[data-page-initialized=true]",
29
+ "timeout": 20000,
30
+ "optional": true
31
+ },
32
+ {
33
+ "waitForThenClick": "#euCookiesZone [data-testid=cookieBannerDismiss]"
34
+ },
35
+ {
36
+ "waitForVisible": "#euCookiesZone .european-union-cookies-agreement",
37
+ "check": "none"
38
+ }
39
+ ],
40
+ "test": [
41
+ {
42
+ "cookieContains": "EUCookieOff=t"
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "puesc-gov-pl",
3
+ "vendorUrl": "https://puesc.gov.pl/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?puesc\\.gov\\.pl/"
6
+ },
7
+ "prehideSelectors": [".cookies .cookies__container"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".cookies .cookies__close button.cookies__button"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".cookies .cookies__close button.cookies__button"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".cookies .cookies__close button.cookies__button",
21
+ "retry": 3,
22
+ "retryInterval": 500
23
+ }
24
+ ],
25
+ "optOut": [
26
+ {
27
+ "waitForThenClick": ".cookies .cookies__close button.cookies__button",
28
+ "retry": 3,
29
+ "retryInterval": 500
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "cookieContains": "cookieAgreements=true"
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "rambler",
3
+ "vendorUrl": "https://www.rambler.ru/",
4
+ "prehideSelectors": ["#cookie-policy-notification.r-sdk__policy-notification"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookie-policy-notification.r-sdk__policy-notification"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#cookie-policy-notification.r-sdk__policy-notification"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#cookie-policy-notification .r-sdk__button"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#cookie-policy-notification .r-sdk__button"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "terms-notification=true"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "rejestr.io",
3
+ "vendorUrl": "https://rejestr.io/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?rejestr\\.io/"
7
+ },
8
+ "prehideSelectors": [],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#footer > .container > .d-flex > button.btn-outline-primary"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#footer > .container > .d-flex > button.btn-outline-primary"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#footer > .container > .d-flex > button.btn-outline-primary"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": "#footer > .container > .d-flex > button.btn-outline-primary"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "waitForVisible": "#footer > .container > .d-flex > button.btn-outline-primary",
32
+ "timeout": 1000,
33
+ "check": "none"
34
+ }
35
+ ]
36
+ }
@@ -1,30 +1,30 @@
1
1
  {
2
2
  "name": "sas",
3
3
  "vendorUrl": "https://www.flysas.com/",
4
- "prehideSelectors": ["s4s-privacy-module"],
4
+ "prehideSelectors": ["dialog[aria-labelledby='cookie-dialog-title']:has(#deny-consent-button)"],
5
5
  "detectCmp": [
6
6
  {
7
- "exists": "s4s-privacy-module"
7
+ "exists": "dialog[aria-labelledby='cookie-dialog-title'] #deny-consent-button"
8
8
  }
9
9
  ],
10
10
  "detectPopup": [
11
11
  {
12
- "visible": "s4s-privacy-module"
12
+ "visible": "dialog[aria-labelledby='cookie-dialog-title'][open]"
13
13
  }
14
14
  ],
15
15
  "optIn": [
16
16
  {
17
- "waitForThenClick": "s4s-privacy-module button.accept"
17
+ "waitForThenClick": "dialog[aria-labelledby='cookie-dialog-title'] #deny-consent-button ~ button:last-child"
18
18
  }
19
19
  ],
20
20
  "optOut": [
21
21
  {
22
- "waitForThenClick": "s4s-privacy-module button.decline"
22
+ "waitForThenClick": "dialog[aria-labelledby='cookie-dialog-title'] #deny-consent-button"
23
23
  }
24
24
  ],
25
25
  "test": [
26
26
  {
27
- "cookieContains": "_cookieanalytics"
27
+ "cookieContains": "%22marketing%22%3Afalse"
28
28
  }
29
29
  ]
30
30
  }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "scb.se",
3
+ "vendorUrl": "https://www.scb.se/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?scb\\.se/"
6
+ },
7
+ "prehideSelectors": ["#kakrutan"],
8
+ "detectCmp": [{ "exists": "#kakrutan scb-button[value='inget']" }],
9
+ "detectPopup": [{ "visible": "#kakrutan" }],
10
+ "optIn": [{ "waitForThenClick": ["#kakrutan scb-button[value='allt']", "button"] }],
11
+ "optOut": [{ "waitForThenClick": ["#kakrutan scb-button[value='inget']", "button"] }],
12
+ "test": [{ "visible": "#kakrutan", "check": "none" }]
13
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "schumacher.com",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?schumacher\\.com/"
5
+ },
6
+ "prehideSelectors": [],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "xpath///div[contains(@class, 'MuiBackdrop-root')][.//h1[contains(., 'Your Privacy Matters to Us')]]"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "xpath///div[contains(@class, 'MuiBackdrop-root')][.//h1[contains(., 'Your Privacy Matters to Us')]]"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "xpath///div[contains(@class, 'MuiBackdrop-root')][.//h1[contains(., 'Your Privacy Matters to Us')]]//button[normalize-space(.)='Accept All']"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "if": {
25
+ "exists": "xpath///div[contains(@class, 'MuiBackdrop-root')][.//h1[contains(., 'Your Privacy Matters to Us')]]//button[normalize-space(.)='Reject Optional']"
26
+ },
27
+ "then": [
28
+ {
29
+ "click": "xpath///div[contains(@class, 'MuiBackdrop-root')][.//h1[contains(., 'Your Privacy Matters to Us')]]//button[normalize-space(.)='Reject Optional']"
30
+ }
31
+ ],
32
+ "else": [
33
+ {
34
+ "waitForThenClick": "xpath///div[contains(@class, 'MuiBackdrop-root')][.//h1[contains(., 'Your Privacy Matters to Us')]]//button[contains(normalize-space(.), 'MANAGE PREFERENCES')]"
35
+ },
36
+ {
37
+ "waitForThenClick": "xpath///div[contains(@class, 'MuiBackdrop-root')][.//h1[contains(., 'Manage Preferences')]]//button[normalize-space(.)='Save Preferences']"
38
+ }
39
+ ]
40
+ }
41
+ ],
42
+ "test": [
43
+ {
44
+ "cookieContains": "\"functional\":false"
45
+ },
46
+ {
47
+ "cookieContains": "\"performance\":false"
48
+ },
49
+ {
50
+ "cookieContains": "\"personalization\":false"
51
+ }
52
+ ]
53
+ }
@@ -7,7 +7,24 @@
7
7
  "optIn": [{ "waitForThenClick": ".sv-cookie-consent-banner form:has(input[name=\"analytics\"]) button[type=\"submit\"]" }],
8
8
  "optOut": [
9
9
  {
10
- "waitForThenClick": ".sv-cookie-consent-banner form:has(input[name=\"necessary\"]):not(:has(input[name=\"analytics\"])) button[type=\"submit\"]"
10
+ "if": {
11
+ "exists": ".sv-cookie-consent-banner form:has(input[name=\"necessary\"]):not(:has(input[name=\"analytics\"])) button[type=\"submit\"]"
12
+ },
13
+ "then": [
14
+ {
15
+ "click": ".sv-cookie-consent-banner form:has(input[name=\"necessary\"]):not(:has(input[name=\"analytics\"])) button[type=\"submit\"]"
16
+ }
17
+ ],
18
+ "else": [
19
+ { "click": ".sv-cookie-consent-banner button[type=\"button\"]" },
20
+ { "waitForVisible": ".sv-cookie-consent-banner button[type=\"submit\"][form]" },
21
+ {
22
+ "click": ".sv-cookie-consent-banner form input[type=\"checkbox\"]:checked:not(:disabled)",
23
+ "all": true,
24
+ "optional": true
25
+ },
26
+ { "click": ".sv-cookie-consent-banner button[type=\"submit\"][form]" }
27
+ ]
11
28
  }
12
29
  ],
13
30
  "test": [{ "waitForVisible": ".sv-cookie-consent-banner", "check": "none", "timeout": 2000 }]
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "skatteverket-se",
3
+ "vendorUrl": "https://www.skatteverket.se/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?skatteverket\\.se/"
6
+ },
7
+ "prehideSelectors": ["skv-cookie-banner"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ["skv-cookie-banner", ".skv-cookie-banner-root"]
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ["skv-cookie-banner", ".skv-cookie-banner-root"]
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ["skv-cookie-banner", "#accept-all"]
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ["skv-cookie-banner", "#deny-all"]
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "SKVCookieAllow=strictlyNecessary"
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "smile-insurances",
3
+ "vendorUrl": "https://www.smile-insurances.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?smile-insurances\\.com/"
6
+ },
7
+ "prehideSelectors": [".sm-alert[data-cookie^='cookie.disclaimer']"],
8
+ "detectCmp": [{ "exists": ".sm-alert[data-cookie^='cookie.disclaimer']" }],
9
+ "detectPopup": [{ "visible": ".sm-alert.is-visible[data-cookie^='cookie.disclaimer'] .sm-alert__button" }],
10
+ "optIn": [{ "waitForThenClick": ".sm-alert.is-visible[data-cookie^='cookie.disclaimer'] .sm-alert__button" }],
11
+ "optOut": [{ "waitForThenClick": ".sm-alert.is-visible[data-cookie^='cookie.disclaimer'] .sm-alert__button" }],
12
+ "test": [{ "cookieContains": "disclaimer=closed" }]
13
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "studentapan",
3
+ "_metadata": { "vendorUrl": "https://www.studentapan.se/" },
4
+ "runContext": { "urlPattern": "^https?://(www\\.)?studentapan\\.se/" },
5
+ "prehideSelectors": ["dialog[class*=\"CookieModal-module\"]"],
6
+ "detectCmp": [{ "exists": "dialog[class*=\"CookieModal-module\"]" }],
7
+ "detectPopup": [{ "visible": "dialog[class*=\"CookieModal-module\"]" }],
8
+ "optIn": [{ "waitForThenClick": "dialog[class*=\"CookieModal-module\"] button[class*=\"__primaryButton\"]" }],
9
+ "optOut": [
10
+ { "waitForThenClick": "dialog[class*=\"CookieModal-module\"] button[class*=\"__secondaryButton\"]" },
11
+ { "waitForVisible": "[role=\"dialog\"] [class*=\"SettingsModal-module\"]" },
12
+ { "click": "[role=\"dialog\"] [class*=\"SettingsModal-module\"] input[type=\"checkbox\"]:checked", "all": true, "optional": true },
13
+ { "waitForThenClick": "[role=\"dialog\"]:has([class*=\"SettingsModal-module\"]) [class*=\"__footer\"] button" }
14
+ ],
15
+ "test": [{ "cookieContains": "targTK=false" }]
16
+ }
@@ -2,32 +2,32 @@
2
2
  "name": "svt.se",
3
3
  "vendorUrl": "https://www.svt.se/",
4
4
  "runContext": {
5
- "urlPattern": "^https://www\\.svt\\.se/"
5
+ "urlPattern": "^https://(\\w+\\.)?svt\\.se/"
6
6
  },
7
- "prehideSelectors": ["[class*=CookieConsent__root___]"],
7
+ "prehideSelectors": [".CookieConsent__root"],
8
8
  "detectCmp": [
9
9
  {
10
- "exists": "[class*=CookieConsent__root___]"
10
+ "exists": ".CookieConsent__root"
11
11
  }
12
12
  ],
13
13
  "detectPopup": [
14
14
  {
15
- "visible": "[class*=CookieConsent__modal___]"
15
+ "visible": ".CookieConsent__root .CookieConsent__modal"
16
16
  }
17
17
  ],
18
18
  "optIn": [
19
19
  {
20
- "waitForThenClick": "[class*=CookieConsent__modal___] > div > button[class*=primary]"
20
+ "waitForThenClick": ".CookieConsent__root button[data-consent-action=accept-all], #CookieConsent_accept_all"
21
21
  }
22
22
  ],
23
23
  "optOut": [
24
24
  {
25
- "waitForThenClick": "[class*=CookieConsent__modal___] > div > button[class*=secondary]:nth-child(2)"
25
+ "waitForThenClick": ".CookieConsent__root button[data-consent-action=reject-all], #CookieConsent_reject_all"
26
26
  }
27
27
  ],
28
28
  "test": [
29
29
  {
30
- "cookieContains": "cookie-consent-1={\"optedIn\":true,\"functionality\":false,\"statistics\":false}"
30
+ "cookieContains": "\"improved_experience\":false,\"partners\":false"
31
31
  }
32
32
  ]
33
33
  }
@@ -7,34 +7,30 @@
7
7
  "prehideSelectors": [],
8
8
  "detectCmp": [
9
9
  {
10
- "exists": "div > div > div > div > span[href*=\"/cookie-and-similar-technologies-policy.html\"]"
10
+ "exists": "div:has([href=\"cookiePrivacyLink\"]) + div:has(> [role=button][aria-label])"
11
11
  }
12
12
  ],
13
13
  "detectPopup": [
14
14
  {
15
- "visible": "div > div > div > div > span[href*=\"/cookie-and-similar-technologies-policy.html\"]"
15
+ "visible": "div:has([href=\"cookiePrivacyLink\"]) + div:has(> [role=button][aria-label])"
16
16
  }
17
17
  ],
18
18
  "optIn": [
19
19
  {
20
- "waitForThenClick": "div > div > div:has(> div > span[href*=\"/cookie-and-similar-technologies-policy.html\"]) > [role=button]:nth-child(3)"
20
+ "waitForThenClick": "div:has([href=\"cookiePrivacyLink\"]) + div:has(> [role=button][aria-label]) > [role=button][aria-label]:not(:nth-child(2))"
21
21
  }
22
22
  ],
23
23
  "optOut": [
24
24
  {
25
- "if": {
26
- "exists": "xpath///span[contains(., 'Alle afwijzen') or contains(., 'Reject all') or contains(., 'Tümünü reddet') or contains(., 'Odrzuć wszystko')]"
27
- },
28
- "then": [
29
- {
30
- "waitForThenClick": "xpath///span[contains(., 'Alle afwijzen') or contains(., 'Reject all') or contains(., 'Tümünü reddet') or contains(., 'Odrzuć wszystko')]"
31
- }
32
- ],
33
- "else": [
34
- {
35
- "waitForThenClick": "div > div > div:has(> div > span[href*=\"/cookie-and-similar-technologies-policy.html\"]) > [role=button]:nth-child(2)"
36
- }
37
- ]
25
+ "waitForThenClick": "div:has([href=\"cookiePrivacyLink\"]) + div:has(> [role=button][aria-label]) > [role=button][aria-label]:nth-child(2)"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "wait": 500
31
+ },
32
+ {
33
+ "cookieContains": "privacy_setting_detail=%7B%22adsChoice%22%3A%220"
38
34
  }
39
35
  ]
40
36
  }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "thecode",
3
+ "vendorUrl": "https://www.thecode.co.uk/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?(thecode\\.co\\.uk|lovethesales\\.com)/"
6
+ },
7
+ "prehideSelectors": [".cookie-popups__container"],
8
+ "detectCmp": [{ "exists": ".cookie-popups__container" }],
9
+ "detectPopup": [{ "visible": ".cookie-popups__first-consent-popup" }],
10
+ "optIn": [{ "waitForThenClick": "[data-test-id=\"cookie-popup-set-button\"]" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "[data-test-id=\"cookie-manage-settings-button\"]" },
13
+ { "waitForVisible": ".cookie-popups__preferences-popup" },
14
+ {
15
+ "if": { "exists": ".cookie-popups__advertising-toggle:checked" },
16
+ "then": [{ "click": "[data-test-id=\"cookie-advertising-slider\"]" }]
17
+ },
18
+ { "click": "[data-test-id=\"cookie-save-preferences-button\"]" }
19
+ ],
20
+ "test": [{ "wait": 1000 }, { "cookieContains": "lts-cookie-consent=1" }]
21
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "tv2reg-cookie-notice",
3
+ "prehideSelectors": ["[x-data^='cookieNotice('] > .fixed"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "[x-data^='cookieNotice('][x-data*='tv2reg_cookie_consent']"
7
+ },
8
+ {
9
+ "exists": "[x-data^='cookieNotice('] button[\\@click='acceptNecessary'], [x-data^='cookieNotice('] button[x-on\\:click='acceptNecessary']"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "[x-data^='cookieNotice('] button[\\@click='acceptNecessary'], [x-data^='cookieNotice('] button[x-on\\:click='acceptNecessary']",
15
+ "check": "any"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "[x-data^='cookieNotice('] button[x-on\\:click='acceptAll'], [x-data^='cookieNotice('] button[\\@click='acceptAll']"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "[x-data^='cookieNotice('] button[\\@click='acceptNecessary'], [x-data^='cookieNotice('] button[x-on\\:click='acceptNecessary']"
26
+ },
27
+ {
28
+ "waitForVisible": "[x-data^='cookieNotice('] button[\\@click='acceptNecessary'], [x-data^='cookieNotice('] button[x-on\\:click='acceptNecessary']",
29
+ "check": "none",
30
+ "timeout": 2000,
31
+ "optional": true
32
+ }
33
+ ],
34
+ "test": [
35
+ {
36
+ "cookieContains": "\"handle\":\"marketing\",\"value\":false"
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "uk-parliament",
3
+ "vendorUrl": "https://www.parliament.uk/",
4
+ "prehideSelectors": [".cookie-manager > #cookiebanner", "#p-cookie-banner"],
5
+ "detectCmp": [{ "exists": ".cookie-manager #cookiebanner #rejectall, #p-cookie-banner #p-cookie-banner__button--reject" }],
6
+ "detectPopup": [{ "visible": ".cookie-manager > #cookiebanner, #p-cookie-banner" }],
7
+ "optIn": [{ "waitForThenClick": ".cookie-manager #cookiebanner #allowall, #p-cookie-banner #p-cookie-banner__button--accept" }],
8
+ "optOut": [
9
+ {
10
+ "waitForThenClick": ".cookie-manager #cookiebanner #rejectall, #p-cookie-banner #p-cookie-banner__button--reject"
11
+ },
12
+ {
13
+ "comment": "some sites keep the banner visible via CSS after the choice is saved",
14
+ "hide": "#p-cookie-banner",
15
+ "optional": true
16
+ }
17
+ ],
18
+ "test": [{ "cookieContains": "uk-parliament.cookie-policy=eyJhbmFseXRpY3MiOmZhbHNl" }]
19
+ }
@@ -1,35 +1,38 @@
1
1
  {
2
2
  "name": "wirtualna-polska",
3
- "prehideSelectors": ["div[role=dialog][aria-label='Plansza informacyjna WP']"],
3
+ "prehideSelectors": ["div[role=dialog][aria-modal=true][aria-label*='WP']"],
4
4
  "detectCmp": [
5
5
  {
6
6
  "exists": [
7
- "div[role=dialog][aria-label='Plansza informacyjna WP']",
8
- "xpath/.//button[normalize-space(.)='Ustawienia zaawansowane']"
7
+ "div[role=dialog][aria-modal=true][aria-label*='WP']",
8
+ "xpath/.//button[normalize-space(.)='Ustawienia zaawansowane' or normalize-space(.)='Advanced settings' or normalize-space(.)='Erweiterte einstellungen' or normalize-space(.)='Pokročilá nastavení' or normalize-space(.)='Rozšírené nastavenia' or normalize-space(.)='Išplėstiniai nustatymai']"
9
9
  ]
10
10
  }
11
11
  ],
12
- "detectPopup": [{ "visible": "div[role=dialog][aria-label='Plansza informacyjna WP']" }],
12
+ "detectPopup": [{ "visible": "div[role=dialog][aria-modal=true][aria-label*='WP']" }],
13
13
  "optIn": [
14
14
  {
15
15
  "waitForThenClick": [
16
- "div[role=dialog][aria-label='Plansza informacyjna WP']",
17
- "xpath/.//button[starts-with(normalize-space(.), 'Akceptuję')]"
16
+ "div[role=dialog][aria-modal=true][aria-label*='WP']",
17
+ "xpath/.//button[starts-with(normalize-space(.), 'Akceptuję') or starts-with(normalize-space(.), 'I accept') or starts-with(normalize-space(.), 'Akzeptieren') or starts-with(normalize-space(.), 'Přijímám') or starts-with(normalize-space(.), 'Súhlasím') or starts-with(normalize-space(.), 'Sutinku')]"
18
18
  ]
19
19
  }
20
20
  ],
21
21
  "optOut": [
22
22
  {
23
23
  "waitForThenClick": [
24
- "div[role=dialog][aria-label='Plansza informacyjna WP']",
25
- "xpath/.//button[normalize-space(.)='Ustawienia zaawansowane']"
24
+ "div[role=dialog][aria-modal=true][aria-label*='WP']",
25
+ "xpath/.//button[normalize-space(.)='Ustawienia zaawansowane' or normalize-space(.)='Advanced settings' or normalize-space(.)='Erweiterte einstellungen' or normalize-space(.)='Pokročilá nastavení' or normalize-space(.)='Rozšírené nastavenia' or normalize-space(.)='Išplėstiniai nustatymai']"
26
26
  ]
27
27
  },
28
28
  {
29
- "waitForThenClick": ["div[role=dialog][aria-label='Plansza informacyjna WP']", "xpath/.//button[normalize-space(.)='Zapisz']"]
29
+ "waitForThenClick": [
30
+ "div[role=dialog][aria-modal=true][aria-label*='WP']",
31
+ "xpath/.//button[normalize-space(.)='Zapisz' or normalize-space(.)='Save' or normalize-space(.)='Speichern' or normalize-space(.)='Uložit' or normalize-space(.)='Uložiť' or normalize-space(.)='Išsaugoti']"
32
+ ]
30
33
  },
31
34
  {
32
- "waitForVisible": "div[role=dialog][aria-label='Plansza informacyjna WP']",
35
+ "waitForVisible": "div[role=dialog][aria-modal=true][aria-label*='WP']",
33
36
  "check": "none",
34
37
  "timeout": 5000,
35
38
  "optional": true