@duckduckgo/autoconsent 16.59.0 → 16.60.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 (184) 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 +83 -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/amazon-music.json +13 -0
  43. package/rules/autoconsent/annunci69.json +19 -0
  44. package/rules/autoconsent/arbeidsplassen-nav-no.json +33 -0
  45. package/rules/autoconsent/att.json +36 -0
  46. package/rules/autoconsent/auctionet.json +39 -0
  47. package/rules/autoconsent/autodoc.json +18 -0
  48. package/rules/autoconsent/bbc.com-orb-cosmetic.json +34 -0
  49. package/rules/autoconsent/bbc.com.json +8 -5
  50. package/rules/autoconsent/bokadirekt.se.json +50 -0
  51. package/rules/autoconsent/bouvet-cookiepanel.json +29 -0
  52. package/rules/autoconsent/consent-studio.json +25 -13
  53. package/rules/autoconsent/cookielegit.json +21 -0
  54. package/rules/autoconsent/cookieprompter.json +21 -0
  55. package/rules/autoconsent/cookiereports.json +10 -0
  56. package/rules/autoconsent/cookietractor.json +37 -0
  57. package/rules/autoconsent/de-volksbank.json +14 -0
  58. package/rules/autoconsent/dpgmedia-nl.json +20 -8
  59. package/rules/autoconsent/eon.pl.json +18 -0
  60. package/rules/autoconsent/eroticiracconti-it.json +13 -0
  61. package/rules/autoconsent/ersatzteile-24.json +49 -0
  62. package/rules/autoconsent/gravito.json +23 -16
  63. package/rules/autoconsent/hacon-next-gen.json +41 -0
  64. package/rules/autoconsent/ing-de.json +31 -0
  65. package/rules/autoconsent/interia.json +1 -4
  66. package/rules/autoconsent/intesasanpaolo.json +37 -0
  67. package/rules/autoconsent/jobindex.json +40 -0
  68. package/rules/autoconsent/kaspersky-cookies-notification.json +9 -0
  69. package/rules/autoconsent/lantmateriet.json +13 -0
  70. package/rules/autoconsent/mainichi.json +39 -0
  71. package/rules/autoconsent/mango.json +56 -0
  72. package/rules/autoconsent/nederlandseloterij.json +35 -0
  73. package/rules/autoconsent/nordea.json +21 -0
  74. package/rules/autoconsent/nordnet.json +33 -0
  75. package/rules/autoconsent/ok.json +4 -12
  76. package/rules/autoconsent/onlineradiobox.json +35 -0
  77. package/rules/autoconsent/pe-cookies.json +30 -0
  78. package/rules/autoconsent/pensionsmyndigheten.json +13 -0
  79. package/rules/autoconsent/pro-euclp-cookies-box.json +31 -0
  80. package/rules/autoconsent/pubfactory.json +45 -0
  81. package/rules/autoconsent/puesc-gov-pl.json +37 -0
  82. package/rules/autoconsent/rambler.json +30 -0
  83. package/rules/autoconsent/rejestr-io.json +36 -0
  84. package/rules/autoconsent/schumacher.com.json +53 -0
  85. package/rules/autoconsent/sitevision.json +18 -1
  86. package/rules/autoconsent/skatteverket-se.json +33 -0
  87. package/rules/autoconsent/smile-insurances.json +13 -0
  88. package/rules/autoconsent/svt.se.json +7 -7
  89. package/rules/autoconsent/temu.json +12 -16
  90. package/rules/autoconsent/thecode.json +21 -0
  91. package/rules/autoconsent/uk-parliament.json +19 -0
  92. package/rules/autoconsent/wirtualna-polska.json +13 -10
  93. package/rules/autoconsent/xenforo-cookie-consent.json +62 -0
  94. package/rules/autoconsent/zorginstituut-cookiewarning.json +33 -0
  95. package/rules/compact-rules.json +1 -1
  96. package/rules/rule-index.json +1 -1
  97. package/rules/rules.json +1 -1
  98. package/tests/aeolservice.spec.ts +5 -0
  99. package/tests/amazon-music.spec.ts +9 -0
  100. package/tests/annunci69.spec.ts +5 -0
  101. package/tests/arbeidsplassen-nav-no.spec.ts +3 -0
  102. package/tests/att.spec.ts +3 -0
  103. package/tests/auctionet.spec.ts +3 -0
  104. package/tests/autodoc.spec.ts +8 -0
  105. package/tests/bbc.com-orb-cosmetic.spec.ts +8 -0
  106. package/tests/bbc.com.spec.ts +11 -9
  107. package/tests/bokadirekt.se.spec.ts +3 -0
  108. package/tests/bouvet-cookiepanel.spec.ts +9 -0
  109. package/tests/consent-studio.spec.ts +5 -0
  110. package/tests/cookiebot.spec.ts +1 -0
  111. package/tests/cookielegit.spec.ts +3 -0
  112. package/tests/cookieprompter.spec.ts +9 -0
  113. package/tests/cookiereports.spec.ts +13 -0
  114. package/tests/cookietractor.spec.ts +12 -0
  115. package/tests/de-volksbank.spec.ts +5 -0
  116. package/tests/dpgmedia-nl.spec.ts +15 -1
  117. package/tests/eon.pl.spec.ts +3 -0
  118. package/tests/eroticiracconti-it.spec.ts +3 -0
  119. package/tests/ersatzteile-24.spec.ts +6 -0
  120. package/tests/gravito.spec.ts +7 -1
  121. package/tests/hacon-next-gen.spec.ts +6 -0
  122. package/tests/ing-de.spec.ts +3 -0
  123. package/tests/interia.spec.ts +1 -1
  124. package/tests/intesasanpaolo.spec.ts +3 -0
  125. package/tests/jobindex.spec.ts +3 -0
  126. package/tests/kaspersky-cookies-notification.spec.ts +8 -0
  127. package/tests/lantmateriet.spec.ts +3 -0
  128. package/tests/mainichi.spec.ts +10 -0
  129. package/tests/mango.spec.ts +3 -0
  130. package/tests/nederlandseloterij.spec.ts +9 -0
  131. package/tests/nordea.spec.ts +6 -0
  132. package/tests/nordnet.spec.ts +8 -0
  133. package/tests/onlineradiobox.spec.ts +5 -0
  134. package/tests/pe-cookies.spec.ts +6 -0
  135. package/tests/pensionsmyndigheten.spec.ts +3 -0
  136. package/tests/pro-euclp-cookies-box.spec.ts +8 -0
  137. package/tests/pubfactory.spec.ts +10 -0
  138. package/tests/puesc-gov-pl.spec.ts +3 -0
  139. package/tests/rambler.spec.ts +3 -0
  140. package/tests/rejestr-io.spec.ts +3 -0
  141. package/tests/schumacher.com.spec.ts +6 -0
  142. package/tests/sitevision-cookie-consent.spec.ts +1 -0
  143. package/tests/sitevision.spec.ts +7 -0
  144. package/tests/skatteverket-se.spec.ts +3 -0
  145. package/tests/smile-insurances.spec.ts +6 -0
  146. package/tests/svt.se.spec.ts +1 -3
  147. package/tests/temu.spec.ts +3 -1
  148. package/tests/thecode.spec.ts +3 -0
  149. package/tests/uk-parliament.spec.ts +8 -0
  150. package/tests/wirtualna-polska.spec.ts +6 -1
  151. package/tests/xenforo-cookie-consent.spec.ts +6 -0
  152. package/tests/zorginstituut-cookiewarning.spec.ts +10 -0
  153. package/tests-wtr/heuristics/get-potential-popups.test.ts +330 -9
  154. package/tests-wtr/heuristics/heuristics-utils.test.ts +98 -0
  155. package/rules/autoconsent/twitter.json +0 -34
  156. package/rules/generated/auto_CH_autodoc.de_krd.json +0 -40
  157. package/rules/generated/auto_CH_svtplay.se_d39.json +0 -40
  158. package/rules/generated/auto_GB_parliamentlive.tv_r3v.json +0 -28
  159. package/rules/generated/auto_NL_asnbank.nl_e28.json +0 -40
  160. package/rules/generated/auto_NL_eurojackpot.nederlandseloterij.nl_7hr.json +0 -40
  161. package/rules/generated/auto_NL_lotto.nederlandseloterij.nl_7c8.json +0 -40
  162. package/rules/generated/auto_NL_nederlandseloterij.nl_b60.json +0 -40
  163. package/rules/generated/auto_NL_staatsloterij.nederlandseloterij.nl_197.json +0 -40
  164. package/rules/generated/auto_NO_arronet.se_vo5.json +0 -40
  165. package/rules/generated/auto_NO_liseberg.se_qy4.json +0 -40
  166. package/rules/generated/auto_NO_nordnet.se_2en.json +0 -40
  167. package/rules/generated/auto_NO_regeringen.se_uhv.json +0 -40
  168. package/rules/generated/auto_NO_svtplay.se_ujn.json +0 -40
  169. package/rules/generated/auto_NO_uu.se_eea.json +0 -40
  170. package/tests/generated/auto_CH_autodoc.de_krd.spec.ts +0 -2
  171. package/tests/generated/auto_CH_svtplay.se_d39.spec.ts +0 -2
  172. package/tests/generated/auto_GB_parliamentlive.tv_r3v.spec.ts +0 -6
  173. package/tests/generated/auto_NL_asnbank.nl_e28.spec.ts +0 -6
  174. package/tests/generated/auto_NL_eurojackpot.nederlandseloterij.nl_7hr.spec.ts +0 -6
  175. package/tests/generated/auto_NL_lotto.nederlandseloterij.nl_7c8.spec.ts +0 -6
  176. package/tests/generated/auto_NL_nederlandseloterij.nl_b60.spec.ts +0 -6
  177. package/tests/generated/auto_NL_staatsloterij.nederlandseloterij.nl_197.spec.ts +0 -6
  178. package/tests/generated/auto_NO_arronet.se_vo5.spec.ts +0 -2
  179. package/tests/generated/auto_NO_liseberg.se_qy4.spec.ts +0 -2
  180. package/tests/generated/auto_NO_nordnet.se_2en.spec.ts +0 -2
  181. package/tests/generated/auto_NO_regeringen.se_uhv.spec.ts +0 -6
  182. package/tests/generated/auto_NO_svtplay.se_ujn.spec.ts +0 -2
  183. package/tests/generated/auto_NO_uu.se_eea.spec.ts +0 -2
  184. package/tests/twitter.spec.ts +0 -10
@@ -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
+ }
@@ -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
+ }
@@ -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,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
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "xenforo-cookie-consent",
3
+ "vendorUrl": "https://xenforo.com/",
4
+ "prehideSelectors": [".notice--cookieAdvanced"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".js-notice.notice--cookieAdvanced #cookieConsentConfig"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".js-notice.notice--cookieAdvanced"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".notice--cookieAdvanced a[href*=\"accept=1\"]"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "if": {
23
+ "exists": ".notice--cookieAdvanced a[href*=\"reject=1\"]"
24
+ },
25
+ "then": [
26
+ {
27
+ "click": ".notice--cookieAdvanced a[href*=\"reject=1\"]"
28
+ }
29
+ ],
30
+ "else": [
31
+ {
32
+ "waitForThenClick": ".notice--cookieAdvanced [data-xf-click=\"toggle\"][data-target=\"#cookieConsentConfig\"]:not(.is-active)",
33
+ "timeout": 2000,
34
+ "retry": 10,
35
+ "retryInterval": 500
36
+ },
37
+ {
38
+ "waitForVisible": "#cookieConsentConfig button[type=\"submit\"]",
39
+ "timeout": 2000
40
+ },
41
+ {
42
+ "click": "#cookieConsentConfig input[name^=\"consent[\"]:checked",
43
+ "all": true,
44
+ "optional": true
45
+ },
46
+ {
47
+ "click": "#cookieConsentConfig button[type=\"submit\"]"
48
+ }
49
+ ]
50
+ }
51
+ ],
52
+ "test": [
53
+ {
54
+ "waitForVisible": ".notice--cookieAdvanced",
55
+ "timeout": 2000,
56
+ "check": "none"
57
+ },
58
+ {
59
+ "cookieContains": "_consent=%5B%5D"
60
+ }
61
+ ]
62
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "zorginstituut-cookiewarning",
3
+ "vendorUrl": "https://www.zorginstituutnederland.nl/",
4
+ "cosmetic": false,
5
+ "prehideSelectors": [".cookiewarning:has(> button.cookiewarning_yes.close-button)"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": ".cookiewarning > button.cookiewarning_yes.close-button"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": ".cookiewarning > button.cookiewarning_yes.close-button"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": ".cookiewarning > button.cookiewarning_yes.close-button"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "waitForThenClick": ".cookiewarning > button.cookiewarning_yes.close-button"
24
+ }
25
+ ],
26
+ "test": [
27
+ {
28
+ "waitForVisible": ".cookiewarning",
29
+ "check": "none",
30
+ "timeout": 2000
31
+ }
32
+ ]
33
+ }