@duckduckgo/autoconsent 16.50.0 → 16.52.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 (206) hide show
  1. package/.agents/skills/optimize-button-patterns/SKILL.md +4 -4
  2. package/.github/workflows/ddg-release.yml +2 -2
  3. package/AGENTS.md +2 -1
  4. package/CHANGELOG.md +120 -0
  5. package/build.sh +2 -0
  6. package/data/labelled-button-texts.csv +36 -36
  7. package/dist/addon-firefox/compact-rules.json +1 -1
  8. package/dist/addon-firefox/content.bundle.js +52 -42
  9. package/dist/addon-firefox/manifest.json +1 -1
  10. package/dist/addon-firefox/rule-index.json +1 -1
  11. package/dist/addon-firefox/rules.json +1 -1
  12. package/dist/addon-mv3/compact-rules.json +1 -1
  13. package/dist/addon-mv3/content.bundle.js +52 -42
  14. package/dist/addon-mv3/manifest.json +1 -1
  15. package/dist/addon-mv3/rule-index.json +1 -1
  16. package/dist/addon-mv3/rules.json +1 -1
  17. package/dist/autoconsent.cjs.js +52 -42
  18. package/dist/autoconsent.esm.js +52 -42
  19. package/dist/autoconsent.playwright.js +53 -42
  20. package/dist/autoconsent.standalone.js +53 -43
  21. package/dist/heuristics.cjs.js +886 -0
  22. package/dist/heuristics.mjs +847 -0
  23. package/dist/types/heuristic-classify.d.ts +16 -0
  24. package/dist/types/heuristics.d.ts +2 -9
  25. package/dist/types/types.d.ts +3 -5
  26. package/docs/rule-syntax.md +1 -1
  27. package/lib/dom-actions.ts +5 -1
  28. package/lib/heuristic-classify.ts +136 -0
  29. package/lib/heuristic-patterns.ts +18 -14
  30. package/lib/heuristics.ts +3 -124
  31. package/lib/types.ts +3 -5
  32. package/lib/web.ts +1 -1
  33. package/package.json +7 -2
  34. package/playwright/content.ts +5 -0
  35. package/readme.md +12 -0
  36. package/rules/autoconsent/abcacupuncture1.json +34 -0
  37. package/rules/autoconsent/aceodds.json +13 -0
  38. package/rules/autoconsent/allabout-japan.json +42 -0
  39. package/rules/autoconsent/avvio.json +22 -0
  40. package/rules/autoconsent/axeptio.json +5 -2
  41. package/rules/autoconsent/bdirect-booking-engine.json +33 -0
  42. package/rules/autoconsent/berelax.com.json +33 -0
  43. package/rules/autoconsent/bigid.json +59 -0
  44. package/rules/autoconsent/bluepark.json +31 -0
  45. package/rules/autoconsent/burpee-com.json +5 -1
  46. package/rules/autoconsent/bynder.json +33 -0
  47. package/rules/autoconsent/cinemaplus.json +9 -0
  48. package/rules/autoconsent/columbia-privacy-notice.json +32 -0
  49. package/rules/autoconsent/community.screwfix.com.json +23 -0
  50. package/rules/autoconsent/complianz-notice.json +1 -1
  51. package/rules/autoconsent/cookieconsent2-legacy.json +44 -0
  52. package/rules/autoconsent/cookiesjsr.json +27 -0
  53. package/rules/autoconsent/copaamerica.json +29 -0
  54. package/rules/autoconsent/cornerstone-brands.json +51 -0
  55. package/rules/autoconsent/darkounity.com.json +35 -0
  56. package/rules/autoconsent/duda-cookie-notification.json +41 -0
  57. package/rules/autoconsent/endocrine.org.json +35 -0
  58. package/rules/autoconsent/ezoic.json +2 -2
  59. package/rules/autoconsent/fis-data-exchange.json +13 -0
  60. package/rules/autoconsent/getproven.json +33 -0
  61. package/rules/autoconsent/givedirectly.json +36 -0
  62. package/rules/autoconsent/godaddy-website-builder-cosmetic.json +13 -0
  63. package/rules/autoconsent/godaddy-website-builder.json +9 -0
  64. package/rules/autoconsent/guesty.json +31 -0
  65. package/rules/autoconsent/gundam-base-entry.json +40 -0
  66. package/rules/autoconsent/hearst-us.json +1 -1
  67. package/rules/autoconsent/indy-systems.json +26 -0
  68. package/rules/autoconsent/ing-nl.json +54 -0
  69. package/rules/autoconsent/iubenda.json +25 -3
  70. package/rules/autoconsent/la-becanerie.json +13 -0
  71. package/rules/autoconsent/lta.json +22 -0
  72. package/rules/autoconsent/lucrin.json +18 -0
  73. package/rules/autoconsent/makitatools.json +41 -0
  74. package/rules/autoconsent/milestone-internet.json +32 -0
  75. package/rules/autoconsent/mizuno-com.json +13 -0
  76. package/rules/autoconsent/nhm-ac-uk.json +29 -0
  77. package/rules/autoconsent/npo-ccm.json +42 -0
  78. package/rules/autoconsent/opalcollection-com.json +12 -0
  79. package/rules/autoconsent/orw-cookie-banner.json +42 -0
  80. package/rules/autoconsent/osf-io.json +29 -0
  81. package/rules/autoconsent/palace-company.json +13 -0
  82. package/rules/autoconsent/paytronix.json +30 -0
  83. package/rules/autoconsent/pigu.json +35 -0
  84. package/rules/autoconsent/pitt-edu.json +12 -0
  85. package/rules/autoconsent/pizzapilgrims.co.uk.json +49 -0
  86. package/rules/autoconsent/podimo.json +73 -0
  87. package/rules/autoconsent/publicmobile.json +16 -0
  88. package/rules/autoconsent/quantcast.json +85 -34
  89. package/rules/autoconsent/rakshaos.json +45 -0
  90. package/rules/autoconsent/rutjes.json +13 -0
  91. package/rules/autoconsent/saturdaysnyc.json +33 -0
  92. package/rules/autoconsent/serpstat-com.json +13 -0
  93. package/rules/autoconsent/shopquarters.json +41 -0
  94. package/rules/autoconsent/shopware.json +71 -0
  95. package/rules/autoconsent/simpleview-cookie-banner.json +27 -0
  96. package/rules/autoconsent/solvhealth-com.json +12 -0
  97. package/rules/autoconsent/spermidinelife-us.json +29 -0
  98. package/rules/autoconsent/squarespace-cookie-banner.json +1 -1
  99. package/rules/autoconsent/squarespace-cookie-notice.json +29 -0
  100. package/rules/autoconsent/store2000-fr.json +17 -0
  101. package/rules/autoconsent/tealium.json +10 -4
  102. package/rules/autoconsent/tempest-cookie-notice.json +9 -0
  103. package/rules/autoconsent/termsfeed.json +4 -4
  104. package/rules/autoconsent/therealest.json +42 -0
  105. package/rules/autoconsent/tineye.json +35 -0
  106. package/rules/autoconsent/tk-aerztefuehrer.de.json +18 -0
  107. package/rules/autoconsent/tplink.json +57 -9
  108. package/rules/autoconsent/trust360.json +29 -0
  109. package/rules/autoconsent/up-cookie-consent.json +53 -0
  110. package/rules/autoconsent/uw-madison-cookieconsent.json +10 -0
  111. package/rules/autoconsent/vowels.json +13 -0
  112. package/rules/autoconsent/web-rewind.com.json +21 -0
  113. package/rules/autoconsent/wildling-com.json +29 -0
  114. package/rules/autoconsent/worldbank.json +30 -0
  115. package/rules/autoconsent/yuntrack.json +50 -0
  116. package/rules/compact-rules.json +1 -1
  117. package/rules/rule-index.json +1 -1
  118. package/rules/rules.json +1 -1
  119. package/scripts/benchmark-button-classification.ts +18 -3
  120. package/scripts/button-text-benchmark.ts +5 -5
  121. package/tests/abcacupuncture1.spec.ts +3 -0
  122. package/tests/aceodds.spec.ts +3 -0
  123. package/tests/allabout-japan.spec.ts +3 -0
  124. package/tests/avvio.spec.ts +8 -0
  125. package/tests/axeptio.spec.ts +3 -0
  126. package/tests/bdirect-booking-engine.spec.ts +9 -0
  127. package/tests/berelax.com.spec.ts +5 -0
  128. package/tests/bigid.spec.ts +8 -0
  129. package/tests/bluepark.spec.ts +8 -0
  130. package/tests/burpee-com.spec.ts +2 -0
  131. package/tests/bynder.spec.ts +3 -0
  132. package/tests/cinemaplus.spec.ts +8 -0
  133. package/tests/columbia-privacy-notice.spec.ts +8 -0
  134. package/tests/community.screwfix.com.spec.ts +5 -0
  135. package/tests/complianz-notice.spec.ts +7 -3
  136. package/tests/cookieconsent2-legacy.spec.ts +8 -0
  137. package/tests/cookiesjsr.spec.ts +9 -0
  138. package/tests/copaamerica.spec.ts +3 -0
  139. package/tests/cornerstone-brands.spec.ts +8 -0
  140. package/tests/darkounity.com.spec.ts +6 -0
  141. package/tests/duda-cookie-notification.spec.ts +8 -0
  142. package/tests/endocrine.org.spec.ts +3 -0
  143. package/tests/ezoic.spec.ts +1 -1
  144. package/tests/fis-data-exchange.spec.ts +9 -0
  145. package/tests/getproven.spec.ts +5 -0
  146. package/tests/givedirectly.spec.ts +3 -0
  147. package/tests/godaddy-website-builder-cosmetic.spec.ts +7 -0
  148. package/tests/godaddy-website-builder.spec.ts +8 -0
  149. package/tests/guesty.spec.ts +7 -0
  150. package/tests/gundam-base-entry.spec.ts +3 -0
  151. package/tests/hearst-us.spec.ts +1 -0
  152. package/tests/indy-systems.spec.ts +8 -0
  153. package/tests/ing-nl.spec.ts +6 -0
  154. package/tests/iubenda.spec.ts +5 -0
  155. package/tests/la-becanerie.spec.ts +3 -0
  156. package/tests/lta.spec.ts +7 -0
  157. package/tests/lucrin.spec.ts +3 -0
  158. package/tests/makitatools.spec.ts +5 -0
  159. package/tests/milestone-internet.spec.ts +8 -0
  160. package/tests/mizuno-com.spec.ts +7 -0
  161. package/tests/nhm-ac-uk.spec.ts +3 -0
  162. package/tests/npo-ccm.spec.ts +17 -0
  163. package/tests/opalcollection-com.spec.ts +3 -0
  164. package/tests/orw-cookie-banner.spec.ts +5 -0
  165. package/tests/osf-io.spec.ts +3 -0
  166. package/tests/palace-company.spec.ts +8 -0
  167. package/tests/paytronix.spec.ts +7 -0
  168. package/tests/pigu.spec.ts +3 -0
  169. package/tests/pitt-edu.spec.ts +3 -0
  170. package/tests/pizzapilgrims.co.uk.spec.ts +3 -0
  171. package/tests/podimo.spec.ts +3 -0
  172. package/tests/publicmobile.spec.ts +3 -0
  173. package/tests/quantcast.spec.ts +15 -7
  174. package/tests/rakshaos.spec.ts +9 -0
  175. package/tests/rutjes.spec.ts +3 -0
  176. package/tests/saturdaysnyc.spec.ts +3 -0
  177. package/tests/serpstat-com.spec.ts +3 -0
  178. package/tests/shopquarters.spec.ts +5 -0
  179. package/tests/shopware.spec.ts +8 -0
  180. package/tests/simpleview-cookie-banner.spec.ts +10 -0
  181. package/tests/solvhealth-com.spec.ts +10 -0
  182. package/tests/spermidinelife-us.spec.ts +3 -0
  183. package/tests/squarespace-cookie-notice.spec.ts +9 -0
  184. package/tests/store2000-fr.spec.ts +5 -0
  185. package/tests/tealium.spec.ts +3 -0
  186. package/tests/tempest-cookie-notice.spec.ts +7 -0
  187. package/tests/termsfeed.spec.ts +4 -0
  188. package/tests/therealest.spec.ts +6 -0
  189. package/tests/tineye.spec.ts +3 -0
  190. package/tests/tk-aerztefuehrer.de.spec.ts +6 -0
  191. package/tests/tplink.spec.ts +11 -1
  192. package/tests/trust360.spec.ts +8 -0
  193. package/tests/up-cookie-consent.spec.ts +9 -0
  194. package/tests/uw-madison-cookieconsent.spec.ts +7 -0
  195. package/tests/vowels.spec.ts +3 -0
  196. package/tests/web-rewind.com.spec.ts +5 -0
  197. package/tests/wildling-com.spec.ts +3 -0
  198. package/tests/worldbank.spec.ts +7 -0
  199. package/tests/yuntrack.spec.ts +6 -0
  200. package/tests-wtr/dom-actions/dom-actions.click.ts +18 -0
  201. package/tests-wtr/heuristics/button-classification-accuracy.test.ts +9 -5
  202. package/tests-wtr/heuristics/get-potential-popups.test.ts +28 -0
  203. package/tests-wtr/heuristics/heuristics-utils.test.ts +2 -6
  204. package/tsconfig.build.json +1 -1
  205. package/tsconfig.heuristics.json +10 -0
  206. package/Dockerfile +0 -9
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "allabout-japan",
3
+ "vendorUrl": "https://allabout-japan.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?allabout-japan\\.com/"
6
+ },
7
+ "prehideSelectors": [".cookie-message"],
8
+ "detectCmp": [{ "exists": ".cookie-message .cookie-agree" }],
9
+ "detectPopup": [{ "visible": ".cookie-message .cookie-agree" }],
10
+ "optIn": [
11
+ {
12
+ "waitForVisible": ".fc-consent-root .fc-dialog-container",
13
+ "timeout": 8000,
14
+ "optional": true
15
+ },
16
+ {
17
+ "if": { "visible": ".fc-consent-root .fc-dialog-container" },
18
+ "then": [{ "click": ".fc-cta-consent" }]
19
+ },
20
+ { "waitForThenClick": ".cookie-message .cookie-agree" }
21
+ ],
22
+ "optOut": [
23
+ { "hide": ".cookie-message" },
24
+ {
25
+ "waitForVisible": ".fc-consent-root .fc-dialog-container",
26
+ "timeout": 8000,
27
+ "optional": true
28
+ },
29
+ {
30
+ "if": { "visible": ".fc-consent-root .fc-dialog-container" },
31
+ "then": [
32
+ { "click": ".fc-cta-do-not-consent,.fc-cta-manage-options" },
33
+ {
34
+ "click": ".fc-preference-consent:checked,.fc-preference-legitimate-interest:checked",
35
+ "all": true,
36
+ "optional": true
37
+ },
38
+ { "click": ".fc-confirm-choices", "optional": true }
39
+ ]
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "avvio",
3
+ "vendorUrl": "https://www.avvio.com/",
4
+ "prehideSelectors": ["#ACClayerBackground"],
5
+ "detectCmp": [{ "exists": "#ACClayerBackground #ACCsmallCookieLayer" }],
6
+ "detectPopup": [{ "visible": "#ACCsmallCookieLayer, #ACCtabedCookieLayer", "check": "any" }],
7
+ "optIn": [{ "waitForThenClick": "#ACCsmallCookieLayer a[href*='consentGivenSmall']" }],
8
+ "optOut": [
9
+ {
10
+ "if": { "visible": "#ACCsmallCookieLayer" },
11
+ "then": [{ "waitForThenClick": "#ACCsmallCookieLayer .kkACCButtonLearnMore" }]
12
+ },
13
+ { "waitForVisible": "#ACCdetailsSaveButton" },
14
+ {
15
+ "if": { "exists": "#ACCtabedCookieLayer .kkACCSwitchLabel input:checked" },
16
+ "then": [{ "click": "#ACCtabedCookieLayer .kkACCSwitchLabel:has(input:checked)", "all": true }]
17
+ },
18
+ { "click": "#ACCdetailsSaveButton" },
19
+ { "waitForVisible": "#ACClayerBackground", "check": "none" }
20
+ ],
21
+ "test": [{ "cookieContains": "=1000," }]
22
+ }
@@ -17,6 +17,9 @@
17
17
  },
18
18
  {
19
19
  "visible": [".axeptio_mount .needsclick", ".axeptio_widget"]
20
+ },
21
+ {
22
+ "cookieContains": "%22$$completed%22:false"
20
23
  }
21
24
  ]
22
25
  }
@@ -24,8 +27,8 @@
24
27
  "optIn": [
25
28
  {
26
29
  "if": { "exists": ".axeptio_mount .needsclick" },
27
- "then": [{ "click": [".axeptio_mount .needsclick", "button#axeptio_btn_acceptAll"] }],
28
- "else": [{ "click": "button#axeptio_btn_acceptAll" }]
30
+ "then": [{ "waitForThenClick": [".axeptio_mount .needsclick", "button#axeptio_btn_acceptAll"] }],
31
+ "else": [{ "waitForThenClick": "button#axeptio_btn_acceptAll" }]
29
32
  }
30
33
  ],
31
34
  "optOut": [
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "bdirect-booking-engine",
3
+ "vendorUrl": "https://unknown",
4
+ "intermediate": false,
5
+ "prehideSelectors": ["#overlay-policy"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#overlay-policy #policy_pop_close .fa-times-circle"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "#overlay-policy #policy_pop_close .fa-times-circle"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "#overlay-policy #policy_pop_close",
19
+ "retry": 2
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "#overlay-policy #policy_pop_close",
25
+ "retry": 2
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "showpopuppolicy=No"
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "berelax.com",
3
+ "vendorUrl": "https://berelax.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https://(www\\.)?berelax\\.com/"
6
+ },
7
+ "prehideSelectors": ["section.cookie"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "section.cookie .cookie__container .cookie__close"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "section.cookie.show .cookie__container"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "section.cookie.show .cookie__container > .button"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "section.cookie.show .cookie__close"
26
+ },
27
+ {
28
+ "waitForVisible": "section.cookie.show .cookie__container",
29
+ "check": "none",
30
+ "timeout": 2000
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "bigid",
3
+ "_metadata": {
4
+ "vendorUrl": "https://bigid.com/"
5
+ },
6
+ "prehideSelectors": ["#bigidcmp-banner-widget"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#bigidcmp-banner-widget"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ["#bigidcmp-banner-widget", "#cmp-accept-all"]
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ["#bigidcmp-banner-widget", "#cmp-accept-all"]
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "if": {
25
+ "exists": ["#bigidcmp-banner-widget", "#cmp-reject-all"]
26
+ },
27
+ "then": [
28
+ {
29
+ "waitForThenClick": ["#bigidcmp-banner-widget", "#cmp-reject-all"]
30
+ }
31
+ ],
32
+ "else": [
33
+ {
34
+ "waitForThenClick": ["#bigidcmp-banner-widget", "#cmp-custom-permissions"]
35
+ },
36
+ {
37
+ "waitForVisible": ["#bigidcmp-banner-widget", "#cmp-submit"]
38
+ },
39
+ {
40
+ "comment": "aria-checked is always false; the knob position marks enabled toggles",
41
+ "click": ["#bigidcmp-banner-widget", "button[role=\"switch\"]:not([disabled]) > span[class*=\"translate-x-[1.1rem]\"]"],
42
+ "all": true,
43
+ "optional": true
44
+ },
45
+ {
46
+ "waitForThenClick": ["#bigidcmp-banner-widget", "#cmp-submit"]
47
+ }
48
+ ]
49
+ }
50
+ ],
51
+ "test": [
52
+ {
53
+ "cookieContains": "bigidcmp-consent-"
54
+ },
55
+ {
56
+ "cookieContains": "marketing=false"
57
+ }
58
+ ]
59
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "bluepark",
3
+ "prehideSelectors": ["#cookie_banner:has(#cookie_essential)"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "#cookie_banner #cookie_buttons #cookie_essential"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": "#cookie_banner #cookie_essential"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": "#cookie_banner #cookie_accept"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "waitForThenClick": "#cookie_banner #cookie_essential"
22
+ }
23
+ ],
24
+ "test": [
25
+ {
26
+ "waitForVisible": "#cookie_banner",
27
+ "check": "none",
28
+ "timeout": 3000
29
+ }
30
+ ]
31
+ }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "burpee.com",
3
+ "minimumRuleStepVersion": 2,
3
4
  "prehideSelectors": [".cookie-modal", "#notice-cookie-block"],
4
5
  "detectCmp": [{ "exists": "#notice-cookie-block" }],
5
6
  "detectPopup": [{ "visible": "#html-body #notice-cookie-block" }],
@@ -16,7 +17,10 @@
16
17
  { "click": "#notice-cookie-block input:checked", "all": true },
17
18
  { "click": "#btn-cookie-save" }
18
19
  ],
19
- "else": [{ "hide": "#html-body #notice-cookie-block, #notice-cookie" }]
20
+ "else": [
21
+ { "hide": "#html-body #notice-cookie-block, #notice-cookie" },
22
+ { "removeClass": "cookie-notification-active", "selector": "body", "optional": true }
23
+ ]
20
24
  }
21
25
  ]
22
26
  }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "bynder",
3
+ "vendorUrl": "https://www.bynder.com/",
4
+ "prehideSelectors": ["#cookieconsent"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookieconsent .cookiechoices .rejectcookies"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#cookieconsent .cookiechoices .rejectcookies"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#cookieconsent .cookiechoices .allcookies"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#cookieconsent .cookiechoices .rejectcookies"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "ANALYTICALCONSENT=0"
28
+ },
29
+ {
30
+ "cookieContains": "MARKETINGCONSENT=0"
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "cinemaplus",
3
+ "prehideSelectors": ["section[role=\"alert\"]:has(button[aria-label=\"close cookie message\"])"],
4
+ "detectCmp": [{ "exists": "section[role=\"alert\"] button[aria-label=\"close cookie message\"]" }],
5
+ "detectPopup": [{ "visible": "section[role=\"alert\"] button[aria-label=\"close cookie message\"]" }],
6
+ "optIn": [{ "waitForThenClick": "section[role=\"alert\"] button.btn-primary" }],
7
+ "optOut": [{ "waitForThenClick": "section[role=\"alert\"] button[aria-label=\"close cookie message\"]" }],
8
+ "test": [{ "visible": "section[role=\"alert\"] button[aria-label=\"close cookie message\"]", "check": "none" }]
9
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "columbia-privacy-notice",
3
+ "vendorUrl": "https://cuit.columbia.edu/content/columbia-university-website-cookie-notice",
4
+ "cosmetic": true,
5
+ "prehideSelectors": ["#cu-privacy-notice"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#cu-privacy-notice .cu-privacy-notice-close"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "#cu-privacy-notice"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "#cu-privacy-notice .cu-privacy-notice-close"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "hide": "#cu-privacy-notice"
24
+ }
25
+ ],
26
+ "test": [
27
+ {
28
+ "visible": "#cu-privacy-notice",
29
+ "check": "none"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "community.screwfix.com",
3
+ "vendorUrl": "https://trustarc.com/",
4
+ "comment": "TrustArc banner whose custom CSS adds a full-page #consent-banner::before backdrop that is not removed when the banner closes, leaving the page dimmed and unclickable.",
5
+ "minimumRuleStepVersion": 3,
6
+ "runContext": {
7
+ "main": true,
8
+ "frame": false,
9
+ "urlPattern": "^https?://community\\.screwfix\\.com/"
10
+ },
11
+ "prehideSelectors": ["#consent-banner"],
12
+ "detectCmp": [{ "exists": "#consent-banner #truste-consent-track" }],
13
+ "detectPopup": [{ "visible": "#consent-banner #truste-consent-track" }],
14
+ "optIn": [
15
+ { "waitForThenClick": "#truste-consent-button" },
16
+ { "stylesheet": "#consent-banner::before { display: none !important; }", "stylesheetId": "screwfix-backdrop" }
17
+ ],
18
+ "optOut": [
19
+ { "waitForThenClick": "#truste-consent-required" },
20
+ { "stylesheet": "#consent-banner::before { display: none !important; }", "stylesheetId": "screwfix-backdrop" }
21
+ ],
22
+ "test": [{ "cookieContains": "cmapi_cookie_privacy=permit_1_required" }]
23
+ }
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "if": { "exists": ".cc-deny" },
15
15
  "then": [{ "click": ".cc-deny" }],
16
- "else": [{ "hide": "[aria-describedby=\"cookieconsent:desc\"]" }]
16
+ "else": [{ "hide": "[aria-describedby=\"cookieconsent:desc\"]" }, { "hide": ".cc-blockingScreen", "optional": true }]
17
17
  }
18
18
  ]
19
19
  }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "cookieconsent2-legacy",
3
+ "vendorUrl": "https://www.github.com/orestbida/cookieconsent",
4
+ "comment": "supports early v2.x of the library (cm_*/cs_* element ids) and its legalblink fork",
5
+ "prehideSelectors": ["#cc_div"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#cc_div #cm_btns"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "exists": "html.show--consent #cc_div #cm, html.lb-show-cookie-consent #cc_div #cm"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "#cs_acceptall_btn"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "comment": "secondary button either accepts necessary cookies or opens the settings",
24
+ "waitForThenClick": "#cm_secondary_btn"
25
+ },
26
+ {
27
+ "waitFor": "html.show--settings, html.lb-show-cookie-settings",
28
+ "timeout": 1000,
29
+ "optional": true
30
+ },
31
+ {
32
+ "if": { "exists": "html.show--settings, html.lb-show-cookie-settings" },
33
+ "then": [
34
+ { "click": "#cs_blocks input.c_toggle:checked:not(:disabled)", "all": true, "optional": true },
35
+ { "waitForThenClick": "#cs_save__btn" }
36
+ ]
37
+ }
38
+ ],
39
+ "test": [
40
+ {
41
+ "any": [{ "cookieContains": "cc_cookie=" }, { "cookieContains": "lb_csc=" }]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "cookiesjsr",
3
+ "_metadata": { "vendorUrl": "https://github.com/jfeltkamp/cookiesjsr" },
4
+ "prehideSelectors": [".cookiesjsr-banner.active"],
5
+ "detectCmp": [{ "exists": ".cookiesjsr-banner" }],
6
+ "detectPopup": [{ "visible": ".cookiesjsr-banner.active" }],
7
+ "optIn": [{ "waitForThenClick": ".cookiesjsr-banner.active .allowAll" }],
8
+ "optOut": [
9
+ {
10
+ "if": { "visible": ".cookiesjsr-banner.active .denyAll" },
11
+ "then": [{ "click": ".cookiesjsr-banner.active .denyAll" }],
12
+ "else": [
13
+ { "waitForThenClick": ".cookiesjsr-banner.active .cookiesjsr-settings" },
14
+ { "waitForVisible": ".cookiesjsr-layer" },
15
+ {
16
+ "if": { "visible": ".cookiesjsr-layer .denyAll" },
17
+ "then": [{ "click": ".cookiesjsr-layer .denyAll" }],
18
+ "else": [
19
+ { "click": ".cookiesjsr-layer .cookiesjsr-switch.active input", "all": true, "optional": true },
20
+ { "waitForThenClick": ".cookiesjsr-layer .save" }
21
+ ]
22
+ }
23
+ ]
24
+ },
25
+ { "waitForVisible": ".cookiesjsr-banner.active", "timeout": 2000, "check": "none" }
26
+ ]
27
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "copaamerica",
3
+ "vendorUrl": "https://copaamerica.com/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https://(www\\.)?copaamerica\\.com/"
7
+ },
8
+ "prehideSelectors": ["div.fixed.z-50.rounded-xl:has(> p > a[href*=\"privac\"]):has(> button.button-primary)"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "div.fixed.z-50.rounded-xl:has(> p > a[href*=\"privac\"]):has(> button.button-primary)"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "div.fixed.z-50.rounded-xl:has(> p > a[href*=\"privac\"]):has(> button.button-primary)"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "div.fixed.z-50.rounded-xl:has(> p > a[href*=\"privac\"]) > button.button-primary"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "div.fixed.z-50.rounded-xl:has(> p > a[href*=\"privac\"]):has(> button.button-primary)"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "cornerstone-brands",
3
+ "vendorUrl": "https://www.garnethill.com/",
4
+ "prehideSelectors": [".c-cookie-banner.c-custom-sheet", "[id^=\"monetate_selectorHTML\"] > .gdprCookieBanner"],
5
+ "detectCmp": [
6
+ {
7
+ "any": [
8
+ { "exists": ".c-cookie-banner.c-custom-sheet .c-cookie-banner__close-button" },
9
+ { "exists": "[id^=\"monetate_selectorHTML\"] > .gdprCookieBanner .gdprCookieBannerCloseBtn" }
10
+ ]
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "any": [{ "visible": ".c-cookie-banner.c-custom-sheet" }, { "visible": "[id^=\"monetate_selectorHTML\"] > .gdprCookieBanner" }]
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".c-cookie-banner.c-custom-sheet .c-cookie-banner__close-button",
21
+ "timeout": 5000,
22
+ "optional": true
23
+ },
24
+ {
25
+ "comment": "notice-only banner shown in GDPR regions, may be injected after the main banner",
26
+ "waitForThenClick": "[id^=\"monetate_selectorHTML\"] > .gdprCookieBanner .gdprCookieBannerCloseBtn",
27
+ "timeout": 6000,
28
+ "optional": true
29
+ }
30
+ ],
31
+ "optOut": [
32
+ {
33
+ "waitForThenClick": ".c-cookie-banner.c-custom-sheet .c-cookie-banner__close-button",
34
+ "timeout": 5000,
35
+ "optional": true
36
+ },
37
+ {
38
+ "comment": "notice-only banner shown in GDPR regions, may be injected after the main banner",
39
+ "waitForThenClick": "[id^=\"monetate_selectorHTML\"] > .gdprCookieBanner .gdprCookieBannerCloseBtn",
40
+ "timeout": 6000,
41
+ "optional": true
42
+ }
43
+ ],
44
+ "test": [
45
+ {
46
+ "waitForVisible": ".c-cookie-banner.c-custom-sheet, [id^=\"monetate_selectorHTML\"] > .gdprCookieBanner",
47
+ "check": "none",
48
+ "timeout": 2000
49
+ }
50
+ ]
51
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "darkounity.com",
3
+ "vendorUrl": "https://darkounity.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https://(www\\.)?darkounity\\.com/"
6
+ },
7
+ "prehideSelectors": ["gdpr-consent-popup"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ["gdpr-consent-popup", "[data-action='necessary-only']"]
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ["gdpr-consent-popup", ".banner"]
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ["gdpr-consent-popup", "[data-action='accept-all']"]
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ["gdpr-consent-popup", "[data-action='necessary-only']"]
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "waitForVisible": ["gdpr-consent-popup", ".banner"],
31
+ "timeout": 2000,
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "duda-cookie-notification",
3
+ "vendorUrl": "https://www.duda.co/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false
8
+ },
9
+ "intermediate": false,
10
+ "prehideSelectors": ["#d-notification-bar[data-rule-type=\"notification\"]:not([data-rule])"],
11
+ "detectCmp": [
12
+ {
13
+ "exists": "#d-notification-bar[data-rule-type=\"notification\"]:not([data-rule]) .notification-dismiss"
14
+ }
15
+ ],
16
+ "detectPopup": [
17
+ {
18
+ "visible": ".showing-message--shown > #d-notification-bar[data-rule-type=\"notification\"][data-visible]:not([data-rule])"
19
+ }
20
+ ],
21
+ "optIn": [
22
+ {
23
+ "waitForThenClick": ".showing-message--shown > #d-notification-bar:not([data-rule]) .notification-dismiss",
24
+ "retry": 3,
25
+ "retryInterval": 500
26
+ }
27
+ ],
28
+ "optOut": [
29
+ {
30
+ "waitForThenClick": ".showing-message--shown > #d-notification-bar:not([data-rule]) .notification-dismiss",
31
+ "retry": 3,
32
+ "retryInterval": 500
33
+ }
34
+ ],
35
+ "test": [
36
+ {
37
+ "visible": ".showing-message--shown > #d-notification-bar:not([data-rule])",
38
+ "check": "none"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "endocrine.org",
3
+ "vendorUrl": "https://www.endocrine.org/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?endocrine\\.org/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#gdprBanner"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#gdprBanner .js-close-btn"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#gdprBanner .js-accept-btn"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#gdprBanner .js-close-btn"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "waitForVisible": "#gdprBanner",
31
+ "timeout": 1000,
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -11,8 +11,8 @@
11
11
  { "wait": 500 },
12
12
  { "click": "#ez-manage-settings" },
13
13
  { "waitFor": "#ez-cookie-dialog input[type=checkbox]" },
14
- { "click": "#ez-cookie-dialog input[type=checkbox]:checked", "all": true },
15
- { "click": "#ez-save-settings" }
14
+ { "click": "#ez-cookie-dialog input[type=checkbox]:checked", "all": true, "optional": true },
15
+ { "waitForThenClick": "#ez-save-settings" }
16
16
  ],
17
17
  "test": [{ "cookieContains": "ez-consent-tcf" }]
18
18
  }