@duckduckgo/autoconsent 16.63.0 → 17.1.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 (180) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/dist/addon-firefox/background.bundle.js +1 -0
  3. package/dist/addon-firefox/compact-rules.json +1 -1
  4. package/dist/addon-firefox/content.bundle.js +177 -38
  5. package/dist/addon-firefox/manifest.json +1 -1
  6. package/dist/addon-firefox/popup.bundle.js +1 -0
  7. package/dist/addon-firefox/rule-index.json +1 -1
  8. package/dist/addon-firefox/rules.json +1 -1
  9. package/dist/addon-mv3/background.bundle.js +1 -0
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/content.bundle.js +177 -38
  12. package/dist/addon-mv3/manifest.json +1 -1
  13. package/dist/addon-mv3/popup.bundle.js +1 -0
  14. package/dist/addon-mv3/rule-index.json +1 -1
  15. package/dist/addon-mv3/rules.json +1 -1
  16. package/dist/autoconsent.cjs.js +177 -38
  17. package/dist/autoconsent.esm.js +177 -38
  18. package/dist/autoconsent.playwright.js +180 -38
  19. package/dist/autoconsent.standalone.js +178 -39
  20. package/dist/heuristics.cjs.js +15 -3
  21. package/dist/heuristics.mjs +15 -3
  22. package/dist/types/heuristics.d.ts +12 -3
  23. package/dist/types/types.d.ts +12 -1
  24. package/lib/cmps/base.ts +5 -1
  25. package/lib/heuristic-patterns.ts +18 -2
  26. package/lib/heuristics.ts +240 -45
  27. package/lib/types.ts +16 -1
  28. package/lib/utils.ts +1 -0
  29. package/package.json +1 -1
  30. package/readme.md +1 -1
  31. package/rules/autoconsent/1pmobile.json +44 -0
  32. package/rules/autoconsent/amasty-gdpr-hyva.json +131 -0
  33. package/rules/autoconsent/amazonforum.json +86 -0
  34. package/rules/autoconsent/asrock.json +44 -0
  35. package/rules/autoconsent/babylist.json +23 -0
  36. package/rules/autoconsent/babylonbee.json +36 -0
  37. package/rules/autoconsent/bathnes-cookie-banner.json +31 -0
  38. package/rules/autoconsent/chairish.json +17 -0
  39. package/rules/autoconsent/chemicalbook.json +13 -0
  40. package/rules/autoconsent/chimnie-co-uk.json +21 -0
  41. package/rules/autoconsent/complianz-optin.json +5 -3
  42. package/rules/autoconsent/consentmo.json +5 -2
  43. package/rules/autoconsent/cookie-pref-form.json +48 -0
  44. package/rules/autoconsent/cookie-script.json +34 -15
  45. package/rules/autoconsent/endeavorhealth.json +31 -0
  46. package/rules/autoconsent/ensighten.json +3 -3
  47. package/rules/autoconsent/epaas.json +18 -1
  48. package/rules/autoconsent/fepblue-org.json +13 -0
  49. package/rules/autoconsent/fnsp-cookieconsent.json +30 -0
  50. package/rules/autoconsent/fod-fujitv.json +13 -0
  51. package/rules/autoconsent/fpl-com.json +34 -0
  52. package/rules/autoconsent/fuqer.json +11 -0
  53. package/rules/autoconsent/greatschools.json +13 -0
  54. package/rules/autoconsent/hamradio-com.json +13 -0
  55. package/rules/autoconsent/hkdir.json +33 -0
  56. package/rules/autoconsent/hubspot.json +7 -1
  57. package/rules/autoconsent/ibkr.json +16 -0
  58. package/rules/autoconsent/jetpens.json +44 -0
  59. package/rules/autoconsent/jokul-cookie-consent.json +28 -0
  60. package/rules/autoconsent/kanopy.json +88 -0
  61. package/rules/autoconsent/lego.json +27 -5
  62. package/rules/autoconsent/mainlinemenswear.json +39 -0
  63. package/rules/autoconsent/mars-cookies-prompt.json +20 -0
  64. package/rules/autoconsent/money-co-uk.json +21 -0
  65. package/rules/autoconsent/myjobquote.json +19 -0
  66. package/rules/autoconsent/niedziela-pl.json +35 -0
  67. package/rules/autoconsent/nikkeibp.json +10 -0
  68. package/rules/autoconsent/northwell-edu.json +29 -0
  69. package/rules/autoconsent/nts-org-uk.json +20 -0
  70. package/rules/autoconsent/nyu-langone.json +30 -0
  71. package/rules/autoconsent/ofsted-reports-cosmetic.json +13 -0
  72. package/rules/autoconsent/onecom-cookie-banner.json +25 -0
  73. package/rules/autoconsent/optum-legal-banner.json +10 -0
  74. package/rules/autoconsent/optum.json +35 -0
  75. package/rules/autoconsent/oslosportslager.no.json +34 -0
  76. package/rules/autoconsent/planned-parenthood.json +17 -0
  77. package/rules/autoconsent/plex.tv.json +52 -0
  78. package/rules/autoconsent/pornhub-compact-cookie-banner.json +1 -1
  79. package/rules/autoconsent/pornhub.json +1 -1
  80. package/rules/autoconsent/radio-canada.json +28 -0
  81. package/rules/autoconsent/regjeringen.no.json +13 -0
  82. package/rules/autoconsent/reviewsolicitors.json +41 -0
  83. package/rules/autoconsent/ring.json +1 -1
  84. package/rules/autoconsent/roll20.json +50 -0
  85. package/rules/autoconsent/sankei-digital.json +37 -0
  86. package/rules/autoconsent/sirdata.json +8 -3
  87. package/rules/autoconsent/site-notifications-cookie-usage.json +25 -0
  88. package/rules/autoconsent/sparebank1-optin.json +10 -0
  89. package/rules/autoconsent/texas-gov.json +22 -0
  90. package/rules/autoconsent/tiresize.com.json +17 -0
  91. package/rules/autoconsent/tri-table.json +6 -2
  92. package/rules/autoconsent/trillian.json +10 -0
  93. package/rules/autoconsent/tyreseeker.json +44 -0
  94. package/rules/autoconsent/uhcprovider.json +13 -0
  95. package/rules/autoconsent/united-online.json +66 -0
  96. package/rules/autoconsent/unitedutilities.json +52 -0
  97. package/rules/autoconsent/uttings.co.uk.json +22 -0
  98. package/rules/autoconsent/vinnova-se.json +50 -0
  99. package/rules/autoconsent/vortex-consent.json +33 -0
  100. package/rules/autoconsent/watchfinder.json +16 -0
  101. package/rules/compact-rules.json +1 -1
  102. package/rules/rule-index.json +1 -1
  103. package/rules/rules.json +1 -1
  104. package/tests/1pmobile.spec.ts +5 -0
  105. package/tests/amasty-gdpr-hyva.spec.ts +17 -0
  106. package/tests/amazonforum.spec.ts +9 -0
  107. package/tests/asrock.spec.ts +3 -0
  108. package/tests/babylist.spec.ts +3 -0
  109. package/tests/babylonbee.spec.ts +6 -0
  110. package/tests/bathnes-cookie-banner.spec.ts +3 -0
  111. package/tests/chairish.spec.ts +3 -0
  112. package/tests/chemicalbook.spec.ts +5 -0
  113. package/tests/chimnie-co-uk.spec.ts +3 -0
  114. package/tests/complianz-optin.spec.ts +2 -0
  115. package/tests/consentmo.spec.ts +2 -0
  116. package/tests/cookie-pref-form.spec.ts +8 -0
  117. package/tests/cookie-script.spec.ts +5 -0
  118. package/tests/endeavorhealth.spec.ts +3 -0
  119. package/tests/ensighten.spec.ts +7 -1
  120. package/tests/epaas.spec.ts +3 -0
  121. package/tests/fepblue-org.spec.ts +3 -0
  122. package/tests/fnsp-cookieconsent.spec.ts +9 -0
  123. package/tests/fod-fujitv.spec.ts +3 -0
  124. package/tests/fpl-com.spec.ts +3 -0
  125. package/tests/fuqer.spec.ts +3 -0
  126. package/tests/greatschools.spec.ts +3 -0
  127. package/tests/hamradio-com.spec.ts +3 -0
  128. package/tests/hkdir.spec.ts +10 -0
  129. package/tests/hubspot.spec.ts +6 -1
  130. package/tests/ibkr.spec.ts +18 -0
  131. package/tests/jetpens.spec.ts +5 -0
  132. package/tests/jokul-cookie-consent.spec.ts +3 -0
  133. package/tests/kanopy.spec.ts +5 -0
  134. package/tests/mainlinemenswear.spec.ts +3 -0
  135. package/tests/mars-cookies-prompt.spec.ts +3 -0
  136. package/tests/money-co-uk.spec.ts +3 -0
  137. package/tests/myjobquote.spec.ts +5 -0
  138. package/tests/niedziela-pl.spec.ts +3 -0
  139. package/tests/nikkeibp.spec.ts +8 -0
  140. package/tests/northwell-edu.spec.ts +3 -0
  141. package/tests/nts-org-uk.spec.ts +3 -0
  142. package/tests/nyu-langone.spec.ts +3 -0
  143. package/tests/ofsted-reports-cosmetic.spec.ts +3 -0
  144. package/tests/onecom-cookie-banner.spec.ts +5 -0
  145. package/tests/optum-legal-banner.spec.ts +9 -0
  146. package/tests/optum.spec.ts +6 -0
  147. package/tests/oslosportslager.no.spec.ts +3 -0
  148. package/tests/planned-parenthood.spec.ts +3 -0
  149. package/tests/plex.tv.spec.ts +5 -0
  150. package/tests/pornhub.spec.ts +1 -1
  151. package/tests/radio-canada.spec.ts +15 -0
  152. package/tests/regjeringen.no.spec.ts +3 -0
  153. package/tests/reviewsolicitors.spec.ts +3 -0
  154. package/tests/roll20.spec.ts +3 -0
  155. package/tests/sankei-digital.spec.ts +9 -0
  156. package/tests/sirdata.spec.ts +13 -1
  157. package/tests/site-notifications-cookie-usage.spec.ts +3 -0
  158. package/tests/sparebank1-optin.spec.ts +8 -0
  159. package/tests/texas-gov.spec.ts +3 -0
  160. package/tests/tiresize.com.spec.ts +3 -0
  161. package/tests/tri-table.spec.ts +1 -1
  162. package/tests/trillian.spec.ts +15 -0
  163. package/tests/tyreseeker.spec.ts +3 -0
  164. package/tests/uhcprovider.spec.ts +3 -0
  165. package/tests/united-online.spec.ts +4 -0
  166. package/tests/unitedutilities.spec.ts +11 -0
  167. package/tests/uttings.co.uk.spec.ts +3 -0
  168. package/tests/vinnova-se.spec.ts +6 -0
  169. package/tests/vortex-consent.spec.ts +18 -0
  170. package/tests/watchfinder.spec.ts +3 -0
  171. package/tests-wtr/heuristics/get-actionable-popups.ts +41 -7
  172. package/tests-wtr/heuristics/get-potential-popups.test.ts +235 -4
  173. package/tests-wtr/heuristics/heuristic-cmp.ts +16 -1
  174. package/tests-wtr/heuristics/heuristics-utils.test.ts +34 -4
  175. package/rules/generated/auto_CA_plex.tv_ee4.json +0 -40
  176. package/rules/generated/auto_CA_support.plex.tv_gn3.json +0 -40
  177. package/rules/generated/auto_US_interactivebrokers.com_0.json +0 -28
  178. package/tests/generated/auto_CA_plex.tv_ee4.spec.ts +0 -2
  179. package/tests/generated/auto_CA_support.plex.tv_gn3.spec.ts +0 -6
  180. package/tests/generated/auto_US_interactivebrokers.com_0.spec.ts +0 -3
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "fepblue.org",
3
+ "vendorUrl": "https://www.fepblue.org/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?fepblue\\.org/"
6
+ },
7
+ "prehideSelectors": [".c-cookie-notice.js-cookie-bar"],
8
+ "detectCmp": [{ "exists": ".c-cookie-notice.js-cookie-bar .c-cookie-notice__button" }],
9
+ "detectPopup": [{ "visible": ".c-cookie-notice.js-cookie-bar.show .c-cookie-notice__button" }],
10
+ "optIn": [{ "waitForThenClick": ".c-cookie-notice.js-cookie-bar .c-cookie-notice__button" }],
11
+ "optOut": [{ "waitForThenClick": ".c-cookie-notice.js-cookie-bar .c-cookie-notice__button" }],
12
+ "test": [{ "waitForVisible": ".c-cookie-notice.js-cookie-bar .c-cookie-notice__button", "check": "none", "timeout": 2000 }]
13
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "fnsp-cookieconsent",
3
+ "vendorUrl": "https://www.helse-bergen.no/",
4
+ "prehideSelectors": ["[class*=\"_cookieconsent-banner--open_\"]"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "[class*=\"_cookieconsent-banner_\"] [class*=\"_cookieconsent__button-container_\"]"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "[class*=\"_cookieconsent-banner--open_\"] [class*=\"_cookieconsent--initial_\"]"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "[class*=\"_cookieconsent--initial_\"] [class*=\"_cookieconsent__button-container_\"] > button:nth-child(1)"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "[class*=\"_cookieconsent--initial_\"] [class*=\"_cookieconsent__button-container_\"] > button:nth-child(2)"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "%22analyticsConsent%22%3Afalse%2C%22thirdPartyConsent%22%3Afalse%2C%22surveyConsent%22%3Afalse"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "fod-fujitv",
3
+ "vendorUrl": "https://fod.fujitv.co.jp/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://fod\\.fujitv\\.co\\.jp/"
6
+ },
7
+ "prehideSelectors": [".cookieCheckContainer"],
8
+ "detectCmp": [{ "visible": ".cookieCheckContainer .closeBtn" }],
9
+ "detectPopup": [{ "visible": ".cookieCheckContainer" }],
10
+ "optIn": [{ "waitForThenClick": ".cookieCheckContainer .closeBtn" }],
11
+ "optOut": [{ "waitForThenClick": ".cookieCheckContainer .closeBtn" }],
12
+ "test": [{ "cookieContains": "ACP=1" }]
13
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "fpl-com",
3
+ "vendorUrl": "https://www.fpl.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?(fpl|fplhome)\\.com/"
6
+ },
7
+ "prehideSelectors": ["#nee_fpl_cookie_policy_banner"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#nee_fpl_cookie_policy_banner"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#nee_fpl_cookie_policy_banner"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#fpl_cookie_policy_banner_close"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#fpl_cookie_policy_banner_close"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "visible": "#nee_fpl_cookie_policy_banner",
31
+ "check": "none"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "fuqer",
3
+ "vendorUrl": "https://www.fuqer.com/",
4
+ "runContext": { "urlPattern": "^https?://(\\w+\\.)?fuqer\\.com/" },
5
+ "prehideSelectors": [".cookies-block"],
6
+ "detectCmp": [{ "exists": ".cookies-block button" }],
7
+ "detectPopup": [{ "visible": ".cookies-block button" }],
8
+ "optIn": [{ "waitForThenClick": ".cookies-block button", "retry": 10, "retryInterval": 500 }],
9
+ "optOut": [{ "waitForThenClick": ".cookies-block button", "retry": 10, "retryInterval": 500 }],
10
+ "test": [{ "cookieContains": "fuqer-allow-cookies=1" }]
11
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "greatschools",
3
+ "vendorUrl": "https://www.greatschools.org/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?greatschools\\.org/"
6
+ },
7
+ "prehideSelectors": ["#privacy-banner"],
8
+ "detectCmp": [{ "exists": "#privacy-banner #privacy-banner-close" }],
9
+ "detectPopup": [{ "visible": "#privacy-banner" }],
10
+ "optIn": [{ "waitForThenClick": "#privacy-banner #privacy-banner-close" }],
11
+ "optOut": [{ "waitForThenClick": "#privacy-banner #privacy-banner-close" }],
12
+ "test": [{ "cookieContains": "gs_privacy_accepted=true" }]
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "hamradio.com",
3
+ "vendorUrl": "https://www.hamradio.com/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?hamradio\\.com/"
7
+ },
8
+ "prehideSelectors": [".cookie-banner"],
9
+ "detectCmp": [{ "exists": ".cookie-banner .closeme" }],
10
+ "detectPopup": [{ "visible": ".cookie-banner" }],
11
+ "optIn": [{ "waitForThenClick": ".cookie-banner .closeme" }],
12
+ "optOut": [{ "hide": ".cookie-banner" }]
13
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "hkdir",
3
+ "vendorUrl": "https://hkdir.no/",
4
+ "prehideSelectors": [".hkd-cookie-banner"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".hkd-cookie-banner .hkd-cookie-banner-button-group"
8
+ },
9
+ {
10
+ "exists": "next-route-announcer"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".hkd-cookie-banner"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".hkd-cookie-banner-button-group > button:nth-of-type(1)"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".hkd-cookie-banner-button-group > button:nth-of-type(2)"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "cookie-consent=essential"
31
+ }
32
+ ]
33
+ }
@@ -3,5 +3,11 @@
3
3
  "detectCmp": [{ "exists": "#hs-eu-cookie-confirmation" }],
4
4
  "detectPopup": [{ "visible": "#hs-eu-cookie-confirmation" }],
5
5
  "optIn": [{ "click": "#hs-eu-confirmation-button" }],
6
- "optOut": [{ "click": "#hs-eu-decline-button" }]
6
+ "optOut": [
7
+ {
8
+ "if": { "exists": "#hs-eu-decline-button" },
9
+ "then": [{ "click": "#hs-eu-decline-button" }],
10
+ "else": [{ "visible": "#hs-eu-close-button" }, { "click": "#hs-eu-close-button" }]
11
+ }
12
+ ]
7
13
  }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "ibkr",
3
+ "vendorUrl": "https://www.interactivebrokers.com/",
4
+ "prehideSelectors": ["#cookie-modal"],
5
+ "detectCmp": [{ "exists": "#cookie-modal #gdpr-customize-settings" }],
6
+ "detectPopup": [{ "visible": "#cookie-modal" }],
7
+ "optIn": [{ "waitForThenClick": "#cookie-modal #btn_accept_cookies" }],
8
+ "optOut": [
9
+ {
10
+ "if": { "visible": "#cookie-modal #gdpr-reject-all" },
11
+ "then": [{ "click": "#cookie-modal #gdpr-reject-all" }],
12
+ "else": [{ "click": "#cookie-modal #gdpr-customize-settings" }, { "waitForThenClick": "#cookie-modal #gdpr-save-settings" }]
13
+ }
14
+ ],
15
+ "test": [{ "cookieContains": "IB_PRIV_PREFS=1%7C1%7C1" }]
16
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "jetpens",
3
+ "vendorUrl": "https://www.jetpens.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?jetpens\\.com/"
6
+ },
7
+ "prehideSelectors": ["#cp-wrapper"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cp-wrapper #cp-small"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cp-wrapper"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cp-small button[onclick*='setConsentAll']"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#cp-small button[onclick*='cp-large']"
26
+ },
27
+ {
28
+ "waitForVisible": "#cp-large"
29
+ },
30
+ {
31
+ "click": "#cp-large input[type=checkbox]:checked:not([disabled])",
32
+ "all": true,
33
+ "optional": true
34
+ },
35
+ {
36
+ "click": "#cp-large form > input[type=button]:not([onclick*='setConsentAll'])"
37
+ },
38
+ {
39
+ "waitForVisible": "#cp-wrapper",
40
+ "check": "none",
41
+ "timeout": 2000
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "jokul-cookie-consent",
3
+ "vendorUrl": "https://jokul.fremtind.no/",
4
+ "prehideSelectors": [],
5
+ "detectCmp": [{ "exists": "[data-testid=\"jkl-cookie-consent-godta\"]" }],
6
+ "detectPopup": [{ "visible": "[data-testid=\"jkl-cookie-consent-godta\"]" }],
7
+ "optIn": [
8
+ {
9
+ "if": { "exists": "[data-testid=\"jkl-cookie-consent-godta-alle\"]" },
10
+ "then": [{ "waitForThenClick": "[data-testid=\"jkl-cookie-consent-godta-alle\"]" }],
11
+ "else": [{ "waitForThenClick": "[data-testid=\"jkl-cookie-consent-godta\"]" }]
12
+ }
13
+ ],
14
+ "optOut": [
15
+ {
16
+ "if": { "exists": "[data-testid=\"jkl-cookie-consent-nekt\"]" },
17
+ "then": [{ "waitForThenClick": "[data-testid=\"jkl-cookie-consent-nekt\"]" }],
18
+ "else": [
19
+ {
20
+ "if": { "exists": "[id^=\"jkl-cookie-modal\"] input[type=\"checkbox\"]:checked" },
21
+ "then": [{ "click": "[id^=\"jkl-cookie-modal\"] input[type=\"checkbox\"]:checked", "all": true }]
22
+ },
23
+ { "waitForThenClick": "[data-testid=\"jkl-cookie-consent-godta\"]" }
24
+ ]
25
+ }
26
+ ],
27
+ "test": [{ "cookieContains": "\"statistics\":\"denied\"" }]
28
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "kanopy",
3
+ "vendorUrl": "https://www.kanopy.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?kanopy\\.com/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".content-container.gdpr-banner, .content-container.non-gdpr-banner"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".content-container.gdpr-banner, .content-container.non-gdpr-banner"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "if": {
21
+ "exists": ".gdpr-banner .allow-all-button"
22
+ },
23
+ "then": [
24
+ {
25
+ "waitForThenClick": ".gdpr-banner .allow-all-button"
26
+ }
27
+ ],
28
+ "else": [
29
+ {
30
+ "waitForThenClick": ".non-gdpr-banner .close-button"
31
+ }
32
+ ]
33
+ }
34
+ ],
35
+ "optOut": [
36
+ {
37
+ "if": {
38
+ "exists": ".gdpr-banner .customize-button"
39
+ },
40
+ "then": [
41
+ {
42
+ "waitForThenClick": ".gdpr-banner .customize-button"
43
+ }
44
+ ],
45
+ "else": [
46
+ {
47
+ "waitForThenClick": ".non-gdpr-banner .privacy-text-content button"
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ "waitForVisible": "[role=dialog] .confirm-choices"
53
+ },
54
+ {
55
+ "if": {
56
+ "exists": "[role=dialog] input.toggle-switch[aria-labelledby=performance]:checked"
57
+ },
58
+ "then": [
59
+ {
60
+ "click": "[role=dialog] input.toggle-switch[aria-labelledby=performance]:checked"
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "if": {
66
+ "exists": "[role=dialog] input.toggle-switch[aria-labelledby=research]:checked"
67
+ },
68
+ "then": [
69
+ {
70
+ "click": "[role=dialog] input.toggle-switch[aria-labelledby=research]:checked"
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "if": {
76
+ "exists": "[role=dialog] input.toggle-switch[aria-labelledby=remarketing]:checked"
77
+ },
78
+ "then": [
79
+ {
80
+ "click": "[role=dialog] input.toggle-switch[aria-labelledby=remarketing]:checked"
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "click": "[role=dialog] .confirm-choices"
86
+ }
87
+ ]
88
+ }
@@ -4,23 +4,45 @@
4
4
  "urlPattern": "^https?://(www\\.)?lego\\.com/"
5
5
  },
6
6
  "prehideSelectors": ["[class*=\"ConsentModal_consent-modal__modal-overlay\"]"],
7
- "detectCmp": [{ "exists": "[data-test=\"cookie-necessary-button\"]" }],
8
- "detectPopup": [{ "visible": "[data-test=\"cookie-necessary-button\"]" }],
7
+ "detectCmp": [
8
+ {
9
+ "any": [{ "exists": "[data-test=\"cookie-necessary-button\"]" }, { "exists": "[data-test=\"age-gate-overlay\"]" }]
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "comment": "the consent modal is only usable after the visitor leaves the site selector gate",
15
+ "any": [{ "visible": "[data-test=\"cookie-necessary-button\"]" }, { "visible": "[data-test=\"age-gate-overlay\"]" }]
16
+ }
17
+ ],
9
18
  "optOut": [
19
+ {
20
+ "comment": "without AGE_GATE the modal is briefly shown, then replaced by the site selector gate and re-rendered after it",
21
+ "any": [{ "cookieContains": "AGE_GATE=" }, { "waitForVisible": "[data-test=\"age-gate-overlay\"]", "timeout": 3000 }],
22
+ "optional": true
23
+ },
24
+ { "waitForVisible": "[data-test=\"age-gate-overlay\"]", "check": "none", "timeout": 120000 },
10
25
  { "waitForThenClick": "[data-test=\"cookie-necessary-button\"]" },
11
26
  {
12
- "any": [{ "cookieContains": "AGE_GATE=" }, { "waitForVisible": "[data-test=\"age-gate-overlay\"]", "timeout": 1000 }],
27
+ "any": [{ "cookieContains": "AGE_GATE=" }, { "waitForVisible": "[data-test=\"age-gate-overlay\"]", "timeout": 3000 }],
13
28
  "optional": true
14
29
  },
15
30
  {
16
31
  "if": { "visible": "[data-test=\"age-gate-overlay\"]" },
17
32
  "then": [
18
- { "waitForVisible": "[data-test=\"age-gate-overlay\"]", "check": "none", "timeout": 30000 },
33
+ { "waitForVisible": "[data-test=\"age-gate-overlay\"]", "check": "none", "timeout": 120000 },
19
34
  { "waitForThenClick": "[data-test=\"cookie-necessary-button\"]", "timeout": 5000 }
20
35
  ],
21
36
  "optional": true
22
37
  }
23
38
  ],
24
- "optIn": [{ "waitForThenClick": "[data-test=\"cookie-accept-all\"]" }],
39
+ "optIn": [
40
+ {
41
+ "any": [{ "cookieContains": "AGE_GATE=" }, { "waitForVisible": "[data-test=\"age-gate-overlay\"]", "timeout": 3000 }],
42
+ "optional": true
43
+ },
44
+ { "waitForVisible": "[data-test=\"age-gate-overlay\"]", "check": "none", "timeout": 120000 },
45
+ { "waitForThenClick": "[data-test=\"cookie-accept-all\"]" }
46
+ ],
25
47
  "test": [{ "cookieContains": "%22key%22%3A%22analytics%22%2C%22value%22%3Afalse" }]
26
48
  }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "mainlinemenswear",
3
+ "vendorUrl": "https://www.mainlinemenswear.co.uk/",
4
+ "runContext": {
5
+ "urlPattern": "^https://(www\\.)?mainlinemenswear\\.co\\.uk/"
6
+ },
7
+ "prehideSelectors": [".c-cookie-modal"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".c-cookie-modal #cookieModal"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".c-cookie-modal #cookieModal"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".c-cookie-modal__buttons--container button[aria-label=\"Accept All Cookies\"]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".c-cookie-modal__buttons--container button[aria-label=\"Settings\"]"
26
+ },
27
+ {
28
+ "waitForVisible": ".c-cookie-modal__options"
29
+ },
30
+ {
31
+ "click": ".c-cookie-modal__options input[role=\"switch\"]:checked:not([disabled])",
32
+ "all": true,
33
+ "optional": true
34
+ },
35
+ {
36
+ "waitForThenClick": ".c-cookie-modal__buttons--container button[aria-label=\"Save Cookie Settings\"]"
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "mars-cookies-prompt",
3
+ "prehideSelectors": [".cookies-prompt__banner"],
4
+ "detectCmp": [{ "exists": ".cookies-prompt__wrapper .cookies-prompt__banner" }],
5
+ "detectPopup": [{ "visible": ".cookies-prompt__wrapper .cookies-prompt__banner" }],
6
+ "optIn": [{ "waitForThenClick": ".cookies-prompt__banner .cookies-prompt__actions-btn_danger" }],
7
+ "optOut": [
8
+ {
9
+ "if": { "exists": ".cookies-prompt__banner_preview" },
10
+ "then": [{ "click": ".cookies-prompt__banner_preview .cookies-prompt__actions-btn.btn-secondary" }]
11
+ },
12
+ { "waitForVisible": ".cookies-prompt__actions-wrap_details" },
13
+ {
14
+ "if": { "exists": ".cookies-prompt__banner_details .switch input:checked:not([disabled])" },
15
+ "then": [{ "click": ".cookies-prompt__banner_details .switch input:checked:not([disabled])", "all": true }]
16
+ },
17
+ { "click": ".cookies-prompt__actions-wrap_details .cookies-prompt__actions-btn.btn-secondary" }
18
+ ],
19
+ "test": [{ "cookieContains": "cookies_consent=" }]
20
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "money.co.uk",
3
+ "runContext": {
4
+ "main": true,
5
+ "frame": false,
6
+ "urlPattern": "^https?://(www\\.)?money\\.co\\.uk/"
7
+ },
8
+ "prehideSelectors": ["#cookie-banner-wrapper"],
9
+ "detectCmp": [{ "exists": "#cookie-banner-wrapper #cookie_banner_save" }],
10
+ "detectPopup": [{ "visible": "#cookie-banner-wrapper #cookie_banner_save" }],
11
+ "optIn": [{ "waitForThenClick": "#cookie-banner-wrapper #cookie_banner_accept" }],
12
+ "optOut": [
13
+ {
14
+ "click": "#cookie-banner-wrapper input[type=checkbox]:checked:not(:disabled)",
15
+ "all": true,
16
+ "optional": true
17
+ },
18
+ { "waitForThenClick": "#cookie-banner-wrapper #cookie_banner_save" }
19
+ ],
20
+ "test": [{ "cookieContains": "\"marketing\":false" }]
21
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "myjobquote",
3
+ "_metadata": {
4
+ "vendorUrl": "https://www.myjobquote.co.uk/"
5
+ },
6
+ "runContext": {
7
+ "urlPattern": "^https?://(www\\.)?myjobquote\\.co\\.uk/"
8
+ },
9
+ "prehideSelectors": [".cookie-new-bg"],
10
+ "detectCmp": [{ "exists": "#cookie-popup-short" }],
11
+ "detectPopup": [{ "visible": "#cookie-popup-short" }],
12
+ "optIn": [{ "waitForThenClick": "#cookie-popup-short .accept-all" }],
13
+ "optOut": [
14
+ { "waitForThenClick": "#cookie-popup-short .manage-cookies" },
15
+ { "waitForVisible": "#cookie-popup-detailed .save-settings" },
16
+ { "click": "#cookie-popup-detailed input.cookie-toggle:checked", "all": true, "optional": true },
17
+ { "click": "#cookie-popup-detailed .save-settings" }
18
+ ]
19
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "niedziela-pl",
3
+ "vendorUrl": "https://niedziela.pl/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://([\\w-]+\\.)?niedziela\\.pl/"
7
+ },
8
+ "prehideSelectors": [".cookies:has(.closecookies)"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".cookies .closecookies"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".cookies .closecookies"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".cookies .closecookies"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": ".cookies:has(.closecookies)"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": ".cookies .closecookies",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "nikkeibp",
3
+ "vendorUrl": "https://www.nikkeibp.co.jp/",
4
+ "prehideSelectors": [".bpPrivacy"],
5
+ "detectCmp": [{ "exists": ".bpPrivacy .bpPrivacy_button-close" }],
6
+ "detectPopup": [{ "visible": ".bpPrivacy .bpPrivacy_button-close" }],
7
+ "optIn": [{ "waitForThenClick": ".bpPrivacy .bpPrivacy_button-close" }],
8
+ "optOut": [{ "waitForThenClick": ".bpPrivacy .bpPrivacy_button-close" }],
9
+ "test": [{ "waitForVisible": ".bpPrivacy", "timeout": 1000, "check": "none" }]
10
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "northwell.edu",
3
+ "vendorUrl": "https://www.northwell.edu/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?northwell\\.edu/"
7
+ },
8
+ "prehideSelectors": ["nwhlit-gdpr-banner"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ["nwhlit-gdpr-banner", ".nwhlit-gdpr-banner"]
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ["nwhlit-gdpr-banner", ".nwhlit-gdpr-banner"]
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "nwhlit-gdpr-banner .nwh_footer_banner--button button"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "nwhlit-gdpr-banner"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "nts-org-uk",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?nts\\.org\\.uk/"
5
+ },
6
+ "prehideSelectors": [".cookie-control"],
7
+ "detectCmp": [{ "exists": ".cookie-control [data-cc-capture] button[name=\"save\"]" }],
8
+ "detectPopup": [{ "visible": ".cookie-control .cc-capture__message" }],
9
+ "optIn": [{ "waitForThenClick": ".cookie-control [data-cc-set-recommended]" }],
10
+ "optOut": [
11
+ { "waitForThenClick": ".cookie-control [data-expandable-trigger]" },
12
+ { "waitForVisible": ".cookie-control [data-cc-capture] button[name=\"save\"]", "timeout": 2000 },
13
+ {
14
+ "if": { "exists": ".cookie-control input[name=\"cookie_control_optin_level[]\"]:checked" },
15
+ "then": [{ "click": ".cookie-control input[name=\"cookie_control_optin_level[]\"]:checked", "all": true }]
16
+ },
17
+ { "click": ".cookie-control [data-cc-capture] button[name=\"save\"]" }
18
+ ],
19
+ "test": [{ "cookieContains": "cookie_control_optin_level=0" }]
20
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "nyu-langone",
3
+ "vendorUrl": "https://nyulangone.org/",
4
+ "prehideSelectors": ["#privacy-banner.nyuuninav--privacy-banner"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".nyuuninav--privacy-banner .nyuuninav--privacy-banner__accept-button"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".nyuuninav--privacy-banner:not(.nyuuninav--privacy-banner--hide)"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".nyuuninav--privacy-banner__accept-button"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".nyuuninav--privacy-banner__accept-button"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "privacy_banner="
28
+ }
29
+ ]
30
+ }