@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": "fastweb-cookie-center",
3
+ "vendorUrl": "https://www.fastweb.it/",
4
+ "prehideSelectors": ["iframe.ck_if"],
5
+ "detectCmp": [{ "exists": "iframe.ck_if[title='Cookie center']" }],
6
+ "detectPopup": [{ "visible": "html.ck_panel iframe.ck_if[style*='visibility: visible']" }],
7
+ "optIn": [{ "waitForThenClick": ["iframe.ck_if", ".info .btn_accetta"] }],
8
+ "optOut": [
9
+ { "waitForThenClick": ["iframe.ck_if", "#Main > .close img"] },
10
+ { "waitForVisible": "iframe.ck_if", "check": "none", "timeout": 5000 }
11
+ ],
12
+ "test": [{ "visible": "html.ck_panel iframe.ck_if", "check": "none" }]
13
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "futurabolzano.it",
3
+ "vendorUrl": "https://futurabolzano.it/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?futurabolzano\\.it/"
7
+ },
8
+ "prehideSelectors": ["#privacy_modal"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#privacy_modal"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#privacy_modal"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "click": "body"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "#privacy_modal"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": "#privacy_modal",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "gobasic",
3
+ "vendorUrl": "https://www.gopublic.dk/",
4
+ "prehideSelectors": [".cookie-banner[data-available-cookies]"],
5
+ "detectCmp": [{ "exists": ".cookie-banner[data-available-cookies] .reject-cookies" }],
6
+ "detectPopup": [{ "visible": ".cookie-banner[data-available-cookies] .reject-cookies" }],
7
+ "optIn": [{ "waitForThenClick": ".cookie-banner[data-available-cookies] .accept-cookies" }],
8
+ "optOut": [{ "waitForThenClick": ".cookie-banner[data-available-cookies] .reject-cookies" }],
9
+ "test": [{ "cookieContains": "CookieConsent=[]" }]
10
+ }
@@ -1,39 +1,46 @@
1
1
  {
2
2
  "name": "gravito",
3
3
  "vendorUrl": "https://www.gravito.net/cmp/",
4
- "prehideSelectors": [".gravitoCMP-background-overlay"],
4
+ "prehideSelectors": ["#gravitoCMPRoot"],
5
5
  "detectCmp": [
6
6
  {
7
- "exists": ".gravitoCMP-background-overlay"
7
+ "exists": "#gravitoCMPRoot [id^=gravito][id$=-layer1-accept-all]"
8
8
  }
9
9
  ],
10
10
  "detectPopup": [
11
11
  {
12
- "visible": ".gravitoCMP-background-overlay"
12
+ "visible": "#gravitoCMPRoot [id^=gravito][id$=-layer1-accept-all]"
13
13
  }
14
14
  ],
15
15
  "optIn": [
16
16
  {
17
- "waitForThenClick": "#modalConfirmBtn.gravitoCMP-button"
17
+ "waitForThenClick": "#gravitoCMPRoot [id^=gravito][id$=-layer1-accept-all]"
18
18
  }
19
19
  ],
20
20
  "optOut": [
21
21
  {
22
- "waitForThenClick": "#modalSettingBtn.gravitoCMP-button"
22
+ "if": {
23
+ "visible": "#gravitoCMPRoot [id^=gravito][id$=-layer1-reject-all]"
24
+ },
25
+ "then": [
26
+ {
27
+ "click": "#gravitoCMPRoot [id^=gravito][id$=-layer1-reject-all]"
28
+ }
29
+ ],
30
+ "else": [
31
+ {
32
+ "waitForThenClick": "#gravitoCMPRoot [id^=gravito][id$=-layer1-settings]"
33
+ },
34
+ {
35
+ "waitForThenClick": "#gravitoCMPRoot [id^=gravito][id$=-layer2-reject-all]"
36
+ }
37
+ ]
23
38
  },
24
39
  {
25
- "waitFor": "#allRejectBtn"
26
- },
27
- {
28
- "waitFor": ".gravitoCMP-content-section"
29
- },
30
- {
31
- "click": ".gravitoCMP-content input[type=checkbox]:checked",
32
- "all": true,
40
+ "waitForVisible": "#gravitoCMPRoot [id^=gravito][id$=-layer1-accept-all]",
41
+ "check": "none",
42
+ "timeout": 2000,
33
43
  "optional": true
34
- },
35
- {
36
- "waitForThenClick": "#allRejectBtn"
37
44
  }
38
45
  ],
39
46
  "test": [
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "hacon-next-gen",
3
+ "vendorUrl": "https://www.hacon.de/",
4
+ "prehideSelectors": [],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ["next-gen-map-based-route", "next-gen-cookie-dialog"]
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ["next-gen-map-based-route", "next-gen-cookie-dialog next-gen-page.cookie-dialog"]
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ["next-gen-map-based-route", "next-gen-cookie-dialog next-gen-page-footer button[variant=primary]"]
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "if": {
23
+ "exists": ["next-gen-map-based-route", "next-gen-cookie-dialog input[type=checkbox]:checked"]
24
+ },
25
+ "then": [
26
+ {
27
+ "click": ["next-gen-map-based-route", "next-gen-cookie-dialog input[type=checkbox]:checked"],
28
+ "all": true
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "waitForThenClick": ["next-gen-map-based-route", "next-gen-cookie-dialog next-gen-page-footer button[variant=secondary]"]
34
+ }
35
+ ],
36
+ "test": [
37
+ {
38
+ "cookieContains": "allow_marketing=deny"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "ing-de",
3
+ "vendorUrl": "https://www.ing.de/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false,
8
+ "urlPattern": "^https://(\\w+\\.)?ing\\.de/"
9
+ },
10
+ "prehideSelectors": [],
11
+ "detectCmp": [
12
+ {
13
+ "exists": "ing-cc-manager"
14
+ }
15
+ ],
16
+ "detectPopup": [
17
+ {
18
+ "exists": ["ing-cc-manager[is-open]", "ing-cc-dialog-level0", ".cc-l0__button__more"]
19
+ }
20
+ ],
21
+ "optIn": [
22
+ {
23
+ "waitForThenClick": ["ing-cc-manager", "ing-cc-dialog-level0", ".cc-l0__button__accept"]
24
+ }
25
+ ],
26
+ "optOut": [
27
+ {
28
+ "waitForThenClick": ["ing-cc-manager", "ing-cc-dialog-level0", ".cc-l0__button__more"]
29
+ }
30
+ ]
31
+ }
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "interia",
3
- "runContext": {
4
- "urlPattern": "^https://(www\\.)?interia\\.pl/"
5
- },
6
3
  "prehideSelectors": ["form.rodo-popup"],
7
- "detectCmp": [{ "exists": "form.rodo-popup" }],
4
+ "detectCmp": [{ "exists": "form.rodo-popup button.rodo-popup-main-settings" }],
8
5
  "detectPopup": [{ "visible": "form.rodo-popup" }],
9
6
  "optIn": [{ "waitForThenClick": "form.rodo-popup button.rodo-popup-main-agree" }],
10
7
  "optOut": [
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "intesasanpaolo",
3
+ "vendorUrl": "https://www.intesasanpaolo.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?intesasanpaolo\\.com/"
6
+ },
7
+ "prehideSelectors": [".js-cookie-message"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".js-cookie-message #cookie-chiudi"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".js-cookie-message #cookie-chiudi"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".js-cookie-message button.cookie-button"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".js-cookie-message #cookie-chiudi"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "ISP_Cookie=1.1"
31
+ },
32
+ {
33
+ "cookieContains": "IntesaSanpaoloTracciatura=1",
34
+ "negated": true
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "jobindex",
3
+ "prehideSelectors": ["#jix-cookie-consent-modal"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "#jix-cookie-consent-modal"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": "#jix-cookie-consent-modal"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": "#jix-cookie-consent-accept-all"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "if": {
22
+ "exists": "#jix-cookie-consent-modal input.jix-cookie-consent-selection:checked:not(:disabled)"
23
+ },
24
+ "then": [
25
+ {
26
+ "click": "#jix-cookie-consent-modal input.jix-cookie-consent-selection:checked:not(:disabled)",
27
+ "all": true
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ "waitForThenClick": "#jix-cookie-consent-accept-selected"
33
+ }
34
+ ],
35
+ "test": [
36
+ {
37
+ "cookieContains": "%22marketing%22%3Afalse"
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "kaspersky-cookies-notification",
3
+ "prehideSelectors": [".gdprPopup:has(> .gdprPopupContainer > .gdprButton)"],
4
+ "cosmetic": true,
5
+ "detectCmp": [{ "exists": "script#kasp-cookie-alert-js" }, { "exists": ".gdprPopup > .gdprPopupContainer > .gdprButton" }],
6
+ "detectPopup": [{ "visible": ".gdprPopup > .gdprPopupContainer > .gdprButton" }],
7
+ "optIn": [{ "waitForThenClick": ".gdprPopup .gdprButton" }],
8
+ "optOut": [{ "hide": ".gdprPopup" }]
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "lantmateriet",
3
+ "vendorUrl": "https://www.lantmateriet.se/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?lantmateriet\\.se/"
6
+ },
7
+ "prehideSelectors": ["#js-cookie-section"],
8
+ "detectCmp": [{ "exists": "#js-cookie-section #js-cookie-consent-deny" }],
9
+ "detectPopup": [{ "visible": "#js-cookie-section.show" }],
10
+ "optIn": [{ "waitForThenClick": "#js-cookie-section #js-cookie-consent-agree" }],
11
+ "optOut": [{ "waitForThenClick": "#js-cookie-section #js-cookie-consent-deny" }],
12
+ "test": [{ "cookieContains": "cookieConsent=false" }]
13
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "livsmedelsverket",
3
+ "vendorUrl": "https://www.livsmedelsverket.se/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?livsmedelsverket\\.se/"
6
+ },
7
+ "prehideSelectors": ["#cookie-banner"],
8
+ "detectCmp": [{ "exists": "#cookie-banner #cookie-consent-settings" }],
9
+ "detectPopup": [{ "visible": "#cookie-banner #cookie-consent-view" }],
10
+ "optIn": [{ "waitForThenClick": "#cookie-banner #cookie-consent-accept" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "#cookie-banner #cookie-consent-settings" },
13
+ { "waitForVisible": "#cookie-banner #cookie-settings-view" },
14
+ { "click": "#cookie-form input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
15
+ { "click": "#cookie-banner #cookie-settings-save" }
16
+ ],
17
+ "test": [{ "cookieContains": "analytic%3A0" }]
18
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "mainichi",
3
+ "vendorUrl": "https://mainichi.jp/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?mainichi\\.jp/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".popuppanel4 a[href*=\"/info/cookie/\"]"
11
+ },
12
+ {
13
+ "exists": ".fc-consent-root",
14
+ "negated": true
15
+ }
16
+ ],
17
+ "detectPopup": [
18
+ {
19
+ "visible": ".popuppanel4 a[href*=\"/info/cookie/\"]"
20
+ }
21
+ ],
22
+ "optIn": [
23
+ {
24
+ "waitForThenClick": ".popuppanel4 .js-popupclose"
25
+ }
26
+ ],
27
+ "optOut": [
28
+ {
29
+ "waitForThenClick": ".popuppanel4 .js-popupclose"
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "waitForVisible": ".popuppanel4",
35
+ "check": "none",
36
+ "timeout": 2000
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "mango",
3
+ "vendorUrl": "https://shop.mango.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https://(shop\\.mango|www\\.mangooutlet)\\.com/"
6
+ },
7
+ "prehideSelectors": ["#cookies-banner"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cookies-banner [class*=\"CookiesFooter-module\"]"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookies-banner [class*=\"CookiesFooter-module\"]"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cookies-banner [id=\"cookies.button.acceptAll\"]",
21
+ "retry": 5,
22
+ "retryInterval": 500
23
+ }
24
+ ],
25
+ "optOut": [
26
+ {
27
+ "if": {
28
+ "exists": "#cookies-banner [class*=\"CookiesFooter-module\"] > button:nth-child(2):not([id])"
29
+ },
30
+ "then": [
31
+ {
32
+ "waitForThenClick": "#cookies-banner [class*=\"CookiesFooter-module\"] > button:nth-child(2):not([id])",
33
+ "retry": 5,
34
+ "retryInterval": 500
35
+ }
36
+ ],
37
+ "else": [
38
+ {
39
+ "waitForThenClick": "#cookies-banner [class*=\"CookiesFooter-module\"] > button:first-child:not([id])",
40
+ "retry": 5,
41
+ "retryInterval": 500
42
+ },
43
+ {
44
+ "waitForThenClick": "#cookies-banner [class*=\"CookiesSettings-module\"][class*=\"buttonsWrapper\"] > button:nth-child(2)",
45
+ "retry": 5,
46
+ "retryInterval": 500
47
+ }
48
+ ]
49
+ }
50
+ ],
51
+ "test": [
52
+ {
53
+ "cookieContains": "\"targeting\":\"DENIED\""
54
+ }
55
+ ]
56
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "nederlandseloterij",
3
+ "vendorUrl": "https://www.nederlandseloterij.nl/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://([a-z0-9-]+\\.)?nederlandseloterij\\.nl/"
6
+ },
7
+ "prehideSelectors": ["dialog[data-test=\"common-consent\"]", "#nlportal-cookie-consent .modal"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "dialog[data-test=\"common-consent\"] [data-test=\"consent-reject-all\"], #nlportal-cookie-consent .cookie-consent-modal-static-buttons > button"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "dialog[data-test=\"common-consent\"] [data-test=\"consent-reject-all\"], #nlportal-cookie-consent .cookie-consent-modal-static-buttons > button"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "dialog[data-test=\"common-consent\"] [data-test=\"consent-accept-all\"], #nlportal-cookie-consent .cookie-consent-modal-static-buttons > button.button-primary"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "dialog[data-test=\"common-consent\"] [data-test=\"consent-reject-all\"], #nlportal-cookie-consent .cookie-consent-modal-static-buttons > button:nth-child(2)"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "waitForVisible": "dialog[data-test=\"common-consent\"], #nlportal-cookie-consent .cookie-consent-modal-static-buttons",
31
+ "timeout": 2000,
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "newsbreak",
3
+ "vendorUrl": "https://www.newsbreak.com/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false,
8
+ "urlPattern": "^https?://(www\\.)?newsbreak\\.com/"
9
+ },
10
+ "prehideSelectors": [],
11
+ "detectCmp": [{ "exists": "button[aria-label='Close cookie banner']" }],
12
+ "detectPopup": [{ "visible": "button[aria-label='Close cookie banner']" }],
13
+ "optIn": [{ "waitForThenClick": "button[aria-label='Close cookie banner']" }],
14
+ "optOut": [{ "waitForThenClick": "button[aria-label='Close cookie banner']", "comment": "notice only offers a close (X) button" }],
15
+ "test": [{ "waitForVisible": "button[aria-label='Close cookie banner']", "check": "none", "timeout": 2000 }]
16
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "nhsapp",
3
+ "runContext": { "urlPattern": "^https?://(\\w+\\.)?nhsapp\\.service\\.nhs\\.uk/" },
4
+ "prehideSelectors": ["#cookie-banner.nhsuk-cookie-banner"],
5
+ "detectCmp": [{ "exists": "#cookie-banner [data-qa=\"cookie-banner-close\"]" }],
6
+ "detectPopup": [{ "visible": "#cookie-banner [data-qa=\"cookie-banner\"]" }],
7
+ "optIn": [{ "waitForThenClick": "#cookie-banner [data-qa=\"cookie-banner-close\"]" }],
8
+ "optOut": [{ "waitForThenClick": "#cookie-banner [data-qa=\"cookie-banner-close\"]" }],
9
+ "test": [{ "waitForVisible": "#cookie-banner [data-qa=\"cookie-banner\"]", "timeout": 1000, "check": "none" }]
10
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "nordea",
3
+ "vendorUrl": "https://www.nordea.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://([a-z0-9-]+\\.)?nordea\\.(se|fi|no|dk)/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [{ "exists": "#CookieReportsPanel #CookieReportsBanner .wscrOk2" }],
9
+ "detectPopup": [{ "visible": "#CookieReportsBanner" }],
10
+ "optIn": [{ "waitForThenClick": "#CookieReportsBanner .wscrOk" }],
11
+ "optOut": [
12
+ {
13
+ "comment": "the settings drawer opens by default and .wscrOk2 saves the current toggle state",
14
+ "click": "#CookieReportsBanner .wscrSwitch input[type=checkbox]:checked:not([disabled]) + label",
15
+ "all": true,
16
+ "optional": true
17
+ },
18
+ { "waitForThenClick": "#CookieReportsBanner .wscrOk2" }
19
+ ],
20
+ "test": [{ "cookieContains": "wscrCookieConsentShared=1=true&2=false&3=false&4=false&5=false" }]
21
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "nordnet",
3
+ "vendorUrl": "https://www.nordnet.dk/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?nordnet\\.(dk|se|no|fi)/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "[role=dialog] #cookie-accept-all-secondary"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "[role=dialog] #cookie-accept-all-secondary"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "[role=dialog] #cookie-accept-all-secondary"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "[role=dialog] #cookie-accept-all-secondary + button"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "consent_cookie=necessary"
31
+ }
32
+ ]
33
+ }
@@ -3,7 +3,7 @@
3
3
  "vendorUrl": "https://ok.ru/",
4
4
  "cosmetic": false,
5
5
  "runContext": {
6
- "urlPattern": "^https://ok\\.ru/"
6
+ "urlPattern": "^https://(\\w+\\.)?ok\\.ru/"
7
7
  },
8
8
  "prehideSelectors": [".cookies-agreement-notification,.modal-new:has([data-module=SetupCookies])"],
9
9
  "detectCmp": [
@@ -23,13 +23,9 @@
23
23
  ],
24
24
  "optOut": [
25
25
  {
26
- "waitFor": ".cookies-agreement-notification .cb_setup"
27
- },
28
- {
29
- "wait": 1000
30
- },
31
- {
32
- "click": ".cookies-agreement-notification .cb_setup"
26
+ "waitForThenClick": ".cookies-agreement-notification .cb_setup",
27
+ "retry": 6,
28
+ "retryInterval": 1000
33
29
  },
34
30
  {
35
31
  "waitForVisible": "[data-module=SetupCookies]"
@@ -44,10 +40,6 @@
44
40
  },
45
41
  {
46
42
  "waitForThenClick": "[name=button_save_choice]"
47
- },
48
- {
49
- "waitForVisible": "[data-module=SetupCookies]",
50
- "check": "none"
51
43
  }
52
44
  ]
53
45
  }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "onlineradiobox",
3
+ "vendorUrl": "https://onlineradiobox.com/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?onlineradiobox\\.com/"
7
+ },
8
+ "prehideSelectors": ["#alert_cookies"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#alert_cookies #alert_cookies_close"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#alert_cookies"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#alert_cookies_close"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "#alert_cookies"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": "#alert_cookies",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "pe-cookies",
3
+ "vendorUrl": "https://www.francetravail.fr/",
4
+ "prehideSelectors": ["pe-cookies"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ["pe-cookies", "#pecookies-continue-btn"]
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ["pe-cookies", ".pecookies__modal"]
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ["pe-cookies", "#pecookies-accept-all"]
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ["pe-cookies", "#pecookies-continue-btn"]
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "TC_PRIVACY=1%40"
28
+ }
29
+ ]
30
+ }