@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,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,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,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
+ }
@@ -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
+ }