@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": "ofsted-reports-cosmetic",
3
+ "cosmetic": true,
4
+ "runContext": {
5
+ "urlPattern": "^https?://reports\\.ofsted\\.gov\\.uk/"
6
+ },
7
+ "prehideSelectors": [".cookie-banner:has(.cookie-banner__close)"],
8
+ "detectCmp": [{ "exists": ".cookie-banner .cookie-banner__close" }],
9
+ "detectPopup": [{ "visible": ".cookie-banner .cookie-banner__close" }],
10
+ "optIn": [{ "waitForThenClick": ".cookie-banner .cookie-banner__close" }],
11
+ "optOut": [{ "hide": ".cookie-banner:has(.cookie-banner__close)" }],
12
+ "test": [{ "visible": ".cookie-banner .cookie-banner__close", "check": "none" }]
13
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "onecom-cookie-banner",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["#oc_cb_wrapper"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#oc_cb_wrapper #oc_cb_btn"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#oc_cb_wrapper"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#oc_cb_btn"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "hide": "#oc_cb_wrapper"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "optum-legal-banner",
3
+ "vendorUrl": "https://www.optum.com/",
4
+ "prehideSelectors": ["#o5-legal-banner-container"],
5
+ "detectCmp": [{ "exists": "#o5-legal-banner-container .o5-legal-banner-container__close" }],
6
+ "detectPopup": [{ "visible": "#o5-legal-banner-container" }],
7
+ "optIn": [{ "waitForThenClick": "#o5-legal-banner-container .o5-legal-banner-container__close" }],
8
+ "optOut": [{ "waitForThenClick": "#o5-legal-banner-container .o5-legal-banner-container__close" }],
9
+ "test": [{ "waitForVisible": "#o5-legal-banner-container", "check": "none", "timeout": 2000 }]
10
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "optum",
3
+ "vendorUrl": "https://www.optum.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?optum\\.com/"
6
+ },
7
+ "prehideSelectors": [".o5-dynamic-alerts__container:has(a[href*=\"privacy-policy\"])"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".o5-dynamic-alerts__container:has(a[href*=\"privacy-policy\"]) .o5-dynamic-alerts__close"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".o5-dynamic-alerts__container:has(a[href*=\"privacy-policy\"]) .o5-dynamic-alerts__close"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".o5-dynamic-alerts__container:has(a[href*=\"privacy-policy\"]) .o5-dynamic-alerts__close"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".o5-dynamic-alerts__container:has(a[href*=\"privacy-policy\"]) .o5-dynamic-alerts__close"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "waitForVisible": ".o5-dynamic-alerts__container:has(a[href*=\"privacy-policy\"])",
31
+ "check": "none",
32
+ "timeout": 2000
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "oslosportslager.no",
3
+ "vendorUrl": "https://oslosportslager.no/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?oslosportslager\\.no/"
7
+ },
8
+ "prehideSelectors": ["#footerCurtainCookie"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#footerCurtainCookie .footerCookieLink"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#footerCurtainCookie"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#footerCurtainCookie .footerButtonFix"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": "#footerCurtainCookie .footerCookieLink"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "cookieContains": "SL_cookie=NO"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "planned-parenthood",
3
+ "vendorUrl": "https://www.plannedparenthood.org/",
4
+ "prehideSelectors": ["#cookieBanner"],
5
+ "detectCmp": [
6
+ { "exists": "#cookieBanner #openCookieBannerSettings" },
7
+ { "exists": "#cookieBannerSettings #CookieBannerSettingsRejectAll" }
8
+ ],
9
+ "detectPopup": [{ "visible": "#cookieBanner" }],
10
+ "optIn": [{ "waitForThenClick": "#cookieBanner #CookieBannerAllowAll" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "#cookieBanner #openCookieBannerSettings" },
13
+ { "waitForVisible": "#cookieBannerSettings" },
14
+ { "waitForThenClick": "#cookieBannerSettings #CookieBannerSettingsRejectAll" }
15
+ ],
16
+ "test": [{ "cookieContains": "hpa=true" }]
17
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "plex.tv",
3
+ "vendorUrl": "https://www.plex.tv/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?plex\\.tv/"
6
+ },
7
+ "prehideSelectors": ["[data-testid=cookieBar]", ".notification-bar.cookie-consent"],
8
+ "detectCmp": [
9
+ {
10
+ "any": [
11
+ { "exists": "[data-testid=cookieBar]" },
12
+ { "exists": "[data-testid=adConsentModal]" },
13
+ { "exists": ".notification-bar.cookie-consent" }
14
+ ]
15
+ }
16
+ ],
17
+ "detectPopup": [
18
+ {
19
+ "any": [
20
+ { "visible": "[data-testid=cookieBar]" },
21
+ { "visible": "[data-testid=adConsentModal]" },
22
+ { "visible": ".notification-bar.cookie-consent" }
23
+ ]
24
+ }
25
+ ],
26
+ "optIn": [
27
+ {
28
+ "if": { "visible": "[data-testid=adConsentModal]" },
29
+ "then": [
30
+ { "waitForThenClick": "[data-testid=adConsentAgreeButton]" },
31
+ { "waitForThenClick": "[data-testid=cookieBarAcceptButton]", "timeout": 5000, "optional": true }
32
+ ],
33
+ "else": [{ "waitForThenClick": "[data-testid=cookieBarAcceptButton], .notification-bar.cookie-consent .cookie-consent-accept" }]
34
+ }
35
+ ],
36
+ "optOut": [
37
+ {
38
+ "if": { "visible": "[data-testid=adConsentModal]" },
39
+ "then": [
40
+ { "waitForThenClick": "[data-testid=adConsentDisagreeButton]" },
41
+ {
42
+ "waitForThenClick": "[data-testid=cookieBarRejectButton]",
43
+ "timeout": 5000,
44
+ "optional": true,
45
+ "comment": "the cookie bar is shown once the ad consent modal is dismissed"
46
+ }
47
+ ],
48
+ "else": [{ "waitForThenClick": "[data-testid=cookieBarRejectButton], .notification-bar.cookie-consent .cookie-consent-reject" }]
49
+ }
50
+ ],
51
+ "test": [{ "cookieContains": "plex_tv_cookie_consent=2" }]
52
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pornhub-compact-cookie-banner",
3
3
  "runContext": {
4
- "urlPattern": "^https://(www\\.)?pornhub\\.com/"
4
+ "urlPattern": "^https://(\\w+\\.)?pornhub\\.(com|org)/"
5
5
  },
6
6
  "cosmetic": false,
7
7
  "prehideSelectors": ["#cookieBanner.cbShort"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pornhub.com",
3
3
  "runContext": {
4
- "urlPattern": "^https://(\\w+\\.)?pornhub\\.com/"
4
+ "urlPattern": "^https://(\\w+\\.)?pornhub\\.(com|org)/"
5
5
  },
6
6
  "cosmetic": false,
7
7
  "prehideSelectors": ["#cookieBanner #cookieBannerContent"],
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "radio-canada",
3
+ "cosmetic": true,
4
+ "prehideSelectors": [
5
+ "#js-legal-disclaimer.g-alert-cookie, #js-legal-disclaimer.cookie-consent-banner, #info-shell-legal-disclaimer, #oh-shell-legal-disclaimer"
6
+ ],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#js-legal-disclaimer.g-alert-cookie, #js-legal-disclaimer.cookie-consent-banner, #info-shell-legal-disclaimer, #oh-shell-legal-disclaimer"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#js-legal-disclaimer.g-alert-cookie, #js-legal-disclaimer.cookie-consent-banner, #info-shell-legal-disclaimer, #oh-shell-legal-disclaimer",
15
+ "check": "any"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#js-legal-disclaimer button.e-button-close, #js-legal-disclaimer button[data-close-cookie-disclaimer], #info-shell-legal-disclaimer button, #oh-shell-legal-disclaimer button"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "hide": "#js-legal-disclaimer.g-alert-cookie, #js-legal-disclaimer.cookie-consent-banner, #info-shell-legal-disclaimer, #oh-shell-legal-disclaimer"
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "regjeringen.no",
3
+ "vendorUrl": "https://www.regjeringen.no/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?regjeringen\\.no/"
6
+ },
7
+ "prehideSelectors": ["#cb_wrapper-std #overlay-std"],
8
+ "detectCmp": [{ "exists": "#cb_wrapper-std #cookieApiData" }],
9
+ "detectPopup": [{ "visible": "#cb_wrapper-std #overlay-std #userSelect" }],
10
+ "optIn": [{ "waitForThenClick": "#cb_wrapper-std #userSelectAll" }],
11
+ "optOut": [{ "waitForThenClick": "#cb_wrapper-std #userSelect" }],
12
+ "test": [{ "waitForVisible": "#cb_wrapper-std #overlay-std", "check": "none", "timeout": 2000 }]
13
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "reviewsolicitors.co.uk",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?reviewsolicitors\\.co\\.uk/"
5
+ },
6
+ "prehideSelectors": ["#cookiePopUp", "#manageCookieSettingsPopUp"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#cookiePopUp[data-control=cookies]"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#cookiePopUp"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "#accept-all-cookies-button"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "#cookiePopUp [data-bs-target='#manageCookieSettingsPopUp']"
25
+ },
26
+ {
27
+ "waitForVisible": "#decline-cookies-button"
28
+ },
29
+ {
30
+ "wait": 500
31
+ },
32
+ {
33
+ "click": "#decline-cookies-button"
34
+ }
35
+ ],
36
+ "test": [
37
+ {
38
+ "cookieContains": "cookie_consents="
39
+ }
40
+ ]
41
+ }
@@ -4,7 +4,7 @@
4
4
  "prehideSelectors": [],
5
5
  "detectCmp": [
6
6
  {
7
- "exists": ".consent-banner .consent-banner-copy"
7
+ "exists": ".consent-banner .consent--manage"
8
8
  }
9
9
  ],
10
10
  "detectPopup": [
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "roll20",
3
+ "vendorUrl": "https://roll20.net/",
4
+ "runContext": {
5
+ "urlPattern": "^https://([a-z0-9-]+\\.)?roll20\\.net/"
6
+ },
7
+ "prehideSelectors": ["#gdpr-notification"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#gdpr-notification #banner-link-preferences"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#gdpr-notification"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#gdpr-notification-dismiss-button"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#banner-link-preferences"
26
+ },
27
+ {
28
+ "waitForVisible": "#cookie-modal .cookie-modal-content",
29
+ "timeout": 2000
30
+ },
31
+ {
32
+ "if": {
33
+ "exists": "#cookie-modal-input:checked"
34
+ },
35
+ "then": [
36
+ {
37
+ "click": "#cookie-modal-input"
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "click": "#cookie-modal-dismiss"
43
+ }
44
+ ],
45
+ "test": [
46
+ {
47
+ "cookieContains": "gdpr_accepts_cookies=false"
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "sankei-digital",
3
+ "_metadata": {
4
+ "vendorUrl": "https://www.sankei-digital.co.jp/"
5
+ },
6
+ "cosmetic": false,
7
+ "runContext": {
8
+ "main": true,
9
+ "frame": false
10
+ },
11
+ "prehideSelectors": ["#consent-wrapper"],
12
+ "detectCmp": [
13
+ {
14
+ "exists": "#consent-wrapper > .button-container > button.close"
15
+ }
16
+ ],
17
+ "detectPopup": [
18
+ {
19
+ "visible": "#consent-wrapper > .button-container > button.close"
20
+ }
21
+ ],
22
+ "optIn": [
23
+ {
24
+ "waitForThenClick": "#consent-wrapper > .button-container > button.close"
25
+ }
26
+ ],
27
+ "optOut": [
28
+ {
29
+ "waitForThenClick": "#consent-wrapper > .button-container > button.close"
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "cookieContains": "cookie_consent_status="
35
+ }
36
+ ]
37
+ }
@@ -9,12 +9,13 @@
9
9
  ],
10
10
  "detectPopup": [
11
11
  {
12
- "visible": "#sd-cmp"
12
+ "visible": "#sd-cmp [role='dialog']",
13
+ "check": "any"
13
14
  }
14
15
  ],
15
16
  "optIn": [
16
17
  {
17
- "waitForThenClick": "#sd-cmp .sd-cmp-3cRQ2"
18
+ "waitForThenClick": "#sd-cmp [data-sd-override='choiceButtons']"
18
19
  }
19
20
  ],
20
21
  "optOut": [
@@ -57,7 +58,11 @@
57
58
  ],
58
59
  "else": [
59
60
  {
60
- "waitForThenClick": "#sd-cmp [role='button'][title='Close']"
61
+ "waitForVisible": "#sd-cmp [role='button'][title='Close']",
62
+ "check": "any"
63
+ },
64
+ {
65
+ "click": "#sd-cmp [role='button'][title='Close']"
61
66
  }
62
67
  ]
63
68
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "site-notifications-cookie-usage",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["[data-t=\"site-notifications\"] [data-notice-key=\"cookie_usage\"]"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "[data-t=\"site-notifications\"] [data-notice-key=\"cookie_usage\"]"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "[data-t=\"site-notifications\"] [data-notice-key=\"cookie_usage\"]"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "[data-notice-key=\"cookie_usage\"] a[href*=\"/consent?n=cookie_usage\"]"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "hide": "[data-t=\"site-notifications\"] [data-notice-key=\"cookie_usage\"]"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "sparebank1-optin",
3
+ "vendorUrl": "https://www.sparebank1.no/",
4
+ "prehideSelectors": ["#opt-in .optin"],
5
+ "detectCmp": [{ "exists": "#opt-in .optin #optin--acceptAll" }],
6
+ "detectPopup": [{ "visible": "#opt-in .optin" }],
7
+ "optIn": [{ "waitForThenClick": "#opt-in #optin--acceptAll" }],
8
+ "optOut": [{ "waitForThenClick": "#opt-in #optin--rejectAll, #opt-in #optin--onlyNeeded" }],
9
+ "test": [{ "waitForVisible": "#opt-in .optin", "check": "none", "timeout": 2000 }]
10
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "texas.gov",
3
+ "runContext": { "urlPattern": "^https?://(www\\.)?texas\\.gov/" },
4
+ "prehideSelectors": ["[data-testid=\"cookies-banner\"]"],
5
+ "detectCmp": [{ "exists": "[data-testid=\"cookies-banner\"] .cookies-banner__close-icon-wrapper" }],
6
+ "detectPopup": [{ "visible": "[data-testid=\"cookies-banner\"] .cookies-banner__description", "check": "any" }],
7
+ "optOut": [
8
+ {
9
+ "if": { "visible": "[data-testid=\"desktop-close-button\"]" },
10
+ "then": [{ "click": "[data-testid=\"desktop-close-button\"]" }],
11
+ "else": [{ "click": "[data-testid=\"cookies-banner\"] .d-none-desktop .cookies-banner__close-icon-wrapper" }]
12
+ },
13
+ { "waitForVisible": "[data-testid=\"cookies-banner\"]", "check": "none" }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "if": { "visible": "[data-testid=\"desktop-close-button\"]" },
18
+ "then": [{ "click": "[data-testid=\"desktop-close-button\"]" }],
19
+ "else": [{ "click": "[data-testid=\"cookies-banner\"] .d-none-desktop .cookies-banner__close-icon-wrapper" }]
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "tiresize.com",
3
+ "vendorUrl": "https://tiresize.com/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?tiresize\\.com/"
7
+ },
8
+ "prehideSelectors": ["#CookieNotice"],
9
+ "detectCmp": [{ "exists": "#CookieNotice > div[onclick]" }],
10
+ "detectPopup": [{ "visible": "#CookieNotice" }],
11
+ "optIn": [{ "waitForThenClick": "#CookieNotice > div[onclick]" }],
12
+ "optOut": [
13
+ { "waitForThenClick": "#CookieNotice > div[onclick]" },
14
+ { "waitForVisible": "#CookieNotice", "check": "none", "timeout": 2000 }
15
+ ],
16
+ "test": [{ "cookieContains": "Notice=yes" }]
17
+ }
@@ -7,8 +7,12 @@
7
7
  "optIn": [{ "waitForThenClick": "[class^=\"app_gdpr--\"] div > button:last-of-type:nth-of-type(2)" }],
8
8
  "optOut": [
9
9
  { "waitForThenClick": "[class^=\"app_gdpr--\"] div > button:first-of-type:nth-last-of-type(2)", "retry": 2, "retryInterval": 500 },
10
- { "waitForThenClick": "[class^=\"app_gdpr--\"] div > button:nth-of-type(2):nth-last-of-type(2)" },
10
+ {
11
+ "if": { "exists": "[class^=\"app_gdpr--\"] div > button:nth-of-type(2):nth-last-of-type(2)" },
12
+ "then": [{ "click": "[class^=\"app_gdpr--\"] div > button:nth-of-type(2):nth-last-of-type(2)" }],
13
+ "else": [{ "click": "[class^=\"app_gdpr--\"] div > button:first-of-type:nth-last-of-type(2)", "optional": true }]
14
+ },
11
15
  { "waitForVisible": "[class^=\"app_gdpr--\"] button", "check": "none" }
12
16
  ],
13
- "test": [{ "cookieContains": "tt_cons_addtl=" }]
17
+ "test": [{ "any": [{ "cookieContains": "tt_cons_addtl=" }, { "cookieContains": "pubConsent=" }] }]
14
18
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "trillian",
3
+ "vendorUrl": "https://www.ouh.nhs.uk/",
4
+ "prehideSelectors": [".trillian-cookie-consent-banner"],
5
+ "detectCmp": [{ "exists": ".trillian-cookie-consent-banner .tpc2-reject-all" }],
6
+ "detectPopup": [{ "visible": ".trillian-cookie-consent-banner" }],
7
+ "optIn": [{ "waitForThenClick": ".trillian-cookie-consent-banner .tpc2-accept-all" }],
8
+ "optOut": [{ "waitForThenClick": ".trillian-cookie-consent-banner .tpc2-reject-all" }],
9
+ "test": [{ "cookieContains": "t_privacy_confirmed=true" }]
10
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "tyreseeker",
3
+ "vendorUrl": "https://www.tyreseeker.co.uk/",
4
+ "cosmetic": false,
5
+ "prehideSelectors": [],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#cookieBanner #manage[data-bs-target='#cookieModalSettings']"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "#cookieBanner .modal-content"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "#cookieBanner #confirm"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "waitForThenClick": "#cookieBanner #manage"
24
+ },
25
+ {
26
+ "waitForVisible": "#cookieModalSettings form button[type=submit]"
27
+ },
28
+ {
29
+ "wait": 500
30
+ },
31
+ {
32
+ "click": "#cookieModalSettings form input[type=checkbox]:checked",
33
+ "all": true,
34
+ "optional": true
35
+ },
36
+ {
37
+ "click": "#cookieModalSettings form button[type=submit]"
38
+ },
39
+ {
40
+ "waitForVisible": "#cookieModalSettings .modal-content",
41
+ "check": "none"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "uhcprovider",
3
+ "vendorUrl": "https://www.uhcprovider.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?uhc(provider|dental)\\.com/"
6
+ },
7
+ "prehideSelectors": [".toasterAlert .toaster"],
8
+ "detectCmp": [{ "exists": ".toasterAlert .toaster-content a[href*='/npp/OSPP-']" }],
9
+ "detectPopup": [{ "visible": ".toasterAlert .toaster" }],
10
+ "optIn": [{ "waitForThenClick": ".toasterAlert .toaster-close" }],
11
+ "optOut": [{ "waitForThenClick": ".toasterAlert .toaster-close" }],
12
+ "test": [{ "waitForVisible": ".toasterAlert .toaster", "check": "none", "timeout": 2000 }]
13
+ }