@duckduckgo/autoconsent 16.49.0 → 16.51.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 (236) hide show
  1. package/.agents/skills/optimize-button-patterns/SKILL.md +4 -4
  2. package/.github/workflows/release-labels.yml +2 -6
  3. package/AGENTS.md +1 -1
  4. package/CHANGELOG.md +130 -0
  5. package/build.sh +2 -0
  6. package/data/labelled-button-texts.csv +36 -36
  7. package/dist/addon-firefox/background.bundle.js +4 -1
  8. package/dist/addon-firefox/compact-rules.json +1 -1
  9. package/dist/addon-firefox/content.bundle.js +67 -46
  10. package/dist/addon-firefox/manifest.json +1 -1
  11. package/dist/addon-firefox/rule-index.json +1 -1
  12. package/dist/addon-firefox/rules.json +1 -1
  13. package/dist/addon-mv3/background.bundle.js +4 -1
  14. package/dist/addon-mv3/compact-rules.json +1 -1
  15. package/dist/addon-mv3/content.bundle.js +67 -46
  16. package/dist/addon-mv3/manifest.json +1 -1
  17. package/dist/addon-mv3/rule-index.json +1 -1
  18. package/dist/addon-mv3/rules.json +1 -1
  19. package/dist/autoconsent.cjs.js +67 -46
  20. package/dist/autoconsent.esm.js +67 -46
  21. package/dist/autoconsent.playwright.js +68 -46
  22. package/dist/autoconsent.standalone.js +68 -47
  23. package/dist/heuristics.cjs.js +886 -0
  24. package/dist/heuristics.mjs +847 -0
  25. package/dist/types/eval-snippets.d.ts +2 -0
  26. package/dist/types/heuristic-classify.d.ts +16 -0
  27. package/dist/types/heuristics.d.ts +2 -9
  28. package/dist/types/types.d.ts +3 -5
  29. package/lib/eval-snippets.ts +4 -0
  30. package/lib/heuristic-classify.ts +136 -0
  31. package/lib/heuristic-patterns.ts +33 -16
  32. package/lib/heuristics.ts +3 -124
  33. package/lib/types.ts +3 -5
  34. package/lib/web.ts +1 -1
  35. package/package.json +7 -2
  36. package/playwright/content.ts +5 -0
  37. package/readme.md +12 -0
  38. package/rules/autoconsent/abcacupuncture1.json +34 -0
  39. package/rules/autoconsent/aceodds.json +13 -0
  40. package/rules/autoconsent/allabout-japan.json +42 -0
  41. package/rules/autoconsent/amazon-hiring.json +16 -0
  42. package/rules/autoconsent/avada-cookie-consent.json +43 -0
  43. package/rules/autoconsent/avvio.json +22 -0
  44. package/rules/autoconsent/axeptio.json +22 -6
  45. package/rules/autoconsent/bdirect-booking-engine.json +33 -0
  46. package/rules/autoconsent/berelax.com.json +33 -0
  47. package/rules/autoconsent/bigcrunch.json +39 -0
  48. package/rules/autoconsent/bigid.json +59 -0
  49. package/rules/autoconsent/bluepark.json +31 -0
  50. package/rules/autoconsent/bricklink.json +33 -0
  51. package/rules/autoconsent/burpee-com.json +5 -1
  52. package/rules/autoconsent/bynder.json +33 -0
  53. package/rules/autoconsent/ceneo.json +9 -0
  54. package/rules/autoconsent/cinemaplus.json +9 -0
  55. package/rules/autoconsent/columbia-privacy-notice.json +32 -0
  56. package/rules/autoconsent/complianz-notice.json +1 -1
  57. package/rules/autoconsent/conjointly.json +43 -0
  58. package/rules/autoconsent/cookieconsent2-legacy.json +44 -0
  59. package/rules/autoconsent/cookiesjsr.json +27 -0
  60. package/rules/autoconsent/copaamerica.json +29 -0
  61. package/rules/autoconsent/cornerstone-brands.json +51 -0
  62. package/rules/autoconsent/darkounity.com.json +35 -0
  63. package/rules/autoconsent/dhbbank.json +13 -0
  64. package/rules/autoconsent/duda-cookie-notification.json +41 -0
  65. package/rules/autoconsent/ee-consent-notice.json +40 -0
  66. package/rules/autoconsent/endocrine.org.json +35 -0
  67. package/rules/autoconsent/ezoic.json +2 -2
  68. package/rules/autoconsent/fera-cookies.json +67 -0
  69. package/rules/autoconsent/fis-data-exchange.json +13 -0
  70. package/rules/autoconsent/getproven.json +33 -0
  71. package/rules/autoconsent/givedirectly.json +36 -0
  72. package/rules/autoconsent/godaddy-website-builder-cosmetic.json +13 -0
  73. package/rules/autoconsent/godaddy-website-builder.json +9 -0
  74. package/rules/autoconsent/guesty.json +31 -0
  75. package/rules/autoconsent/gundam-base-entry.json +40 -0
  76. package/rules/autoconsent/hearst-us.json +1 -1
  77. package/rules/autoconsent/indy-systems.json +26 -0
  78. package/rules/autoconsent/ing-nl.json +54 -0
  79. package/rules/autoconsent/iubenda.json +25 -3
  80. package/rules/autoconsent/la7-cmp.json +30 -0
  81. package/rules/autoconsent/laravel-cookie-consent.json +45 -0
  82. package/rules/autoconsent/legislation-gov-uk.json +43 -0
  83. package/rules/autoconsent/lucrin.json +18 -0
  84. package/rules/autoconsent/mackeeper.json +34 -0
  85. package/rules/autoconsent/makitatools.json +41 -0
  86. package/rules/autoconsent/milestone-internet.json +32 -0
  87. package/rules/autoconsent/ndl-go-jp.json +35 -0
  88. package/rules/autoconsent/nhm-ac-uk.json +29 -0
  89. package/rules/autoconsent/npo-ccm.json +42 -0
  90. package/rules/autoconsent/opalcollection-com.json +12 -0
  91. package/rules/autoconsent/orw-cookie-banner.json +42 -0
  92. package/rules/autoconsent/osf-io.json +29 -0
  93. package/rules/autoconsent/palace-company.json +13 -0
  94. package/rules/autoconsent/paypal-us.json +3 -3
  95. package/rules/autoconsent/paypal.json +5 -2
  96. package/rules/autoconsent/paytronix.json +30 -0
  97. package/rules/autoconsent/pitt-edu.json +12 -0
  98. package/rules/autoconsent/pizzapilgrims.co.uk.json +49 -0
  99. package/rules/autoconsent/podimo.json +73 -0
  100. package/rules/autoconsent/publicmobile.json +16 -0
  101. package/rules/autoconsent/rakshaos.json +45 -0
  102. package/rules/autoconsent/rutjes.json +13 -0
  103. package/rules/autoconsent/saturdaysnyc.json +33 -0
  104. package/rules/autoconsent/serpstat-com.json +13 -0
  105. package/rules/autoconsent/shopquarters.json +41 -0
  106. package/rules/autoconsent/shopware.json +71 -0
  107. package/rules/autoconsent/simpleview-cookie-banner.json +27 -0
  108. package/rules/autoconsent/solvhealth-com.json +12 -0
  109. package/rules/autoconsent/spermidinelife-us.json +29 -0
  110. package/rules/autoconsent/squarespace-cookie-banner.json +1 -1
  111. package/rules/autoconsent/squarespace-cookie-notice.json +29 -0
  112. package/rules/autoconsent/store2000-fr.json +17 -0
  113. package/rules/autoconsent/tempest-cookie-notice.json +9 -0
  114. package/rules/autoconsent/termsfeed.json +4 -4
  115. package/rules/autoconsent/texas-instruments.json +17 -0
  116. package/rules/autoconsent/thegrandyork.json +46 -0
  117. package/rules/autoconsent/thenounproject.json +61 -0
  118. package/rules/autoconsent/therealest.json +42 -0
  119. package/rules/autoconsent/tineye.json +35 -0
  120. package/rules/autoconsent/tk-aerztefuehrer.de.json +18 -0
  121. package/rules/autoconsent/toyota.json +16 -5
  122. package/rules/autoconsent/tplink.json +57 -9
  123. package/rules/autoconsent/trust360.json +29 -0
  124. package/rules/autoconsent/uft-cookie-notice.json +15 -0
  125. package/rules/autoconsent/up-cookie-consent.json +53 -0
  126. package/rules/autoconsent/uw-madison-cookieconsent.json +10 -0
  127. package/rules/autoconsent/vowels.json +13 -0
  128. package/rules/autoconsent/wbd-legal-terms.json +32 -0
  129. package/rules/autoconsent/web-rewind.com.json +21 -0
  130. package/rules/autoconsent/wildling-com.json +29 -0
  131. package/rules/autoconsent/worldbank.json +30 -0
  132. package/rules/autoconsent/yuntrack.json +50 -0
  133. package/rules/compact-rules.json +1 -1
  134. package/rules/rule-index.json +1 -1
  135. package/rules/rules.json +1 -1
  136. package/scripts/benchmark-button-classification.ts +18 -3
  137. package/scripts/button-text-benchmark.ts +5 -5
  138. package/tests/abcacupuncture1.spec.ts +3 -0
  139. package/tests/aceodds.spec.ts +3 -0
  140. package/tests/allabout-japan.spec.ts +3 -0
  141. package/tests/amazon-hiring.spec.ts +3 -0
  142. package/tests/avada-cookie-consent.spec.ts +9 -0
  143. package/tests/avvio.spec.ts +8 -0
  144. package/tests/axeptio.spec.ts +11 -4
  145. package/tests/bdirect-booking-engine.spec.ts +9 -0
  146. package/tests/berelax.com.spec.ts +5 -0
  147. package/tests/bigcrunch.spec.ts +16 -0
  148. package/tests/bigid.spec.ts +8 -0
  149. package/tests/bluepark.spec.ts +8 -0
  150. package/tests/bricklink.spec.ts +3 -0
  151. package/tests/burpee-com.spec.ts +2 -0
  152. package/tests/bynder.spec.ts +3 -0
  153. package/tests/ceneo.spec.ts +3 -0
  154. package/tests/cinemaplus.spec.ts +8 -0
  155. package/tests/columbia-privacy-notice.spec.ts +8 -0
  156. package/tests/complianz-notice.spec.ts +7 -3
  157. package/tests/conjointly.spec.ts +3 -0
  158. package/tests/cookieconsent2-legacy.spec.ts +8 -0
  159. package/tests/cookiesjsr.spec.ts +9 -0
  160. package/tests/copaamerica.spec.ts +3 -0
  161. package/tests/cornerstone-brands.spec.ts +8 -0
  162. package/tests/darkounity.com.spec.ts +6 -0
  163. package/tests/dhbbank.spec.ts +6 -0
  164. package/tests/duda-cookie-notification.spec.ts +8 -0
  165. package/tests/ee-consent-notice.spec.ts +9 -0
  166. package/tests/endocrine.org.spec.ts +3 -0
  167. package/tests/ezoic.spec.ts +1 -1
  168. package/tests/fera-cookies.spec.ts +6 -0
  169. package/tests/fis-data-exchange.spec.ts +9 -0
  170. package/tests/getproven.spec.ts +5 -0
  171. package/tests/givedirectly.spec.ts +3 -0
  172. package/tests/godaddy-website-builder-cosmetic.spec.ts +7 -0
  173. package/tests/godaddy-website-builder.spec.ts +8 -0
  174. package/tests/guesty.spec.ts +7 -0
  175. package/tests/gundam-base-entry.spec.ts +3 -0
  176. package/tests/hearst-us.spec.ts +1 -0
  177. package/tests/indy-systems.spec.ts +8 -0
  178. package/tests/ing-nl.spec.ts +6 -0
  179. package/tests/iubenda.spec.ts +5 -0
  180. package/tests/la7-cmp.spec.ts +6 -0
  181. package/tests/laravel-cookie-consent.spec.ts +10 -0
  182. package/tests/legislation-gov-uk.spec.ts +3 -0
  183. package/tests/lucrin.spec.ts +3 -0
  184. package/tests/mackeeper.spec.ts +3 -0
  185. package/tests/makitatools.spec.ts +5 -0
  186. package/tests/milestone-internet.spec.ts +8 -0
  187. package/tests/ndl-go-jp.spec.ts +8 -0
  188. package/tests/nhm-ac-uk.spec.ts +3 -0
  189. package/tests/npo-ccm.spec.ts +17 -0
  190. package/tests/opalcollection-com.spec.ts +3 -0
  191. package/tests/orw-cookie-banner.spec.ts +5 -0
  192. package/tests/osf-io.spec.ts +3 -0
  193. package/tests/palace-company.spec.ts +8 -0
  194. package/tests/paypal-us.spec.ts +2 -3
  195. package/tests/paytronix.spec.ts +7 -0
  196. package/tests/pitt-edu.spec.ts +3 -0
  197. package/tests/pizzapilgrims.co.uk.spec.ts +3 -0
  198. package/tests/podimo.spec.ts +3 -0
  199. package/tests/publicmobile.spec.ts +3 -0
  200. package/tests/rakshaos.spec.ts +9 -0
  201. package/tests/rutjes.spec.ts +3 -0
  202. package/tests/saturdaysnyc.spec.ts +3 -0
  203. package/tests/serpstat-com.spec.ts +3 -0
  204. package/tests/shopquarters.spec.ts +5 -0
  205. package/tests/shopware.spec.ts +8 -0
  206. package/tests/simpleview-cookie-banner.spec.ts +10 -0
  207. package/tests/solvhealth-com.spec.ts +10 -0
  208. package/tests/spermidinelife-us.spec.ts +3 -0
  209. package/tests/squarespace-cookie-notice.spec.ts +9 -0
  210. package/tests/store2000-fr.spec.ts +5 -0
  211. package/tests/tempest-cookie-notice.spec.ts +7 -0
  212. package/tests/termsfeed.spec.ts +4 -0
  213. package/tests/texas-instruments.spec.ts +3 -0
  214. package/tests/thegrandyork.spec.ts +3 -0
  215. package/tests/thenounproject.spec.ts +3 -0
  216. package/tests/therealest.spec.ts +6 -0
  217. package/tests/tineye.spec.ts +3 -0
  218. package/tests/tk-aerztefuehrer.de.spec.ts +6 -0
  219. package/tests/tplink.spec.ts +11 -1
  220. package/tests/trust360.spec.ts +8 -0
  221. package/tests/uft-cookie-notice.spec.ts +3 -0
  222. package/tests/up-cookie-consent.spec.ts +9 -0
  223. package/tests/uw-madison-cookieconsent.spec.ts +7 -0
  224. package/tests/vowels.spec.ts +3 -0
  225. package/tests/wbd-legal-terms.spec.ts +18 -0
  226. package/tests/web-rewind.com.spec.ts +5 -0
  227. package/tests/wildling-com.spec.ts +3 -0
  228. package/tests/worldbank.spec.ts +7 -0
  229. package/tests/yuntrack.spec.ts +6 -0
  230. package/tests-wtr/heuristics/button-classification-accuracy.test.ts +9 -5
  231. package/tests-wtr/heuristics/get-potential-popups.test.ts +28 -0
  232. package/tests-wtr/heuristics/heuristics-utils.test.ts +57 -6
  233. package/tsconfig.build.json +1 -1
  234. package/tsconfig.heuristics.json +10 -0
  235. package/rules/autoconsent/paypal-cookieprefs.json +0 -29
  236. package/tests/paypal-cookieprefs.spec.ts +0 -7
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "ing-nl",
3
+ "vendorUrl": "https://www.ing.nl/",
4
+ "runContext": {
5
+ "urlPattern": "^https://([a-z0-9-]+\\.)?ing\\.nl/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ["ing-app-open-page", "#cookieDialog", "ing-feat-cookie-dialog-nl"]
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": [
16
+ "ing-app-open-page",
17
+ "#cookieDialog",
18
+ "ing-feat-cookie-dialog-nl",
19
+ "ing-feat-global-cookie-preference",
20
+ "cookie-preference-main",
21
+ "[data-testid=reject]"
22
+ ]
23
+ }
24
+ ],
25
+ "optIn": [
26
+ {
27
+ "waitForThenClick": [
28
+ "ing-app-open-page",
29
+ "#cookieDialog",
30
+ "ing-feat-cookie-dialog-nl",
31
+ "ing-feat-global-cookie-preference",
32
+ "cookie-preference-main",
33
+ "[data-testid=accept]"
34
+ ]
35
+ }
36
+ ],
37
+ "optOut": [
38
+ {
39
+ "waitForThenClick": [
40
+ "ing-app-open-page",
41
+ "#cookieDialog",
42
+ "ing-feat-cookie-dialog-nl",
43
+ "ing-feat-global-cookie-preference",
44
+ "cookie-preference-main",
45
+ "[data-testid=reject]"
46
+ ]
47
+ }
48
+ ],
49
+ "test": [
50
+ {
51
+ "cookieContains": "COOKIE_PREF=ANL_0|PSN_0|PRTN_0"
52
+ }
53
+ ]
54
+ }
@@ -2,7 +2,11 @@
2
2
  "name": "iubenda",
3
3
  "prehideSelectors": ["#iubenda-cs-banner"],
4
4
  "detectCmp": [{ "exists": "#iubenda-cs-banner" }],
5
- "detectPopup": [{ "visible": ".iubenda-cs-accept-btn" }],
5
+ "detectPopup": [
6
+ {
7
+ "any": [{ "visible": ".iubenda-cs-accept-btn" }, { "visible": "#iubenda-cs-banner .iubenda-ccpa-opt-out" }]
8
+ }
9
+ ],
6
10
  "optIn": [{ "waitForThenClick": ".iubenda-cs-accept-btn" }],
7
11
  "optOut": [
8
12
  {
@@ -22,10 +26,28 @@
22
26
  "waitForThenClick": "#iubFooterBtn"
23
27
  }
24
28
  ],
25
- "else": [{ "hide": "#iubenda-cs-banner" }]
29
+ "else": [
30
+ {
31
+ "if": { "exists": "#iubenda-cs-banner .iubenda-ccpa-opt-out" },
32
+ "then": [
33
+ {
34
+ "click": "#iubenda-cs-banner .iubenda-ccpa-opt-out"
35
+ },
36
+ {
37
+ "waitForThenClick": "#iubenda-alert .iubenda-button-confirm"
38
+ },
39
+ {
40
+ "waitForThenClick": "#iubenda-cs-banner .iubenda-cs-close-btn",
41
+ "timeout": 2000,
42
+ "optional": true
43
+ }
44
+ ],
45
+ "else": [{ "hide": "#iubenda-cs-banner" }]
46
+ }
47
+ ]
26
48
  }
27
49
  ]
28
50
  }
29
51
  ],
30
- "test": [{ "eval": "EVAL_IUBENDA_1" }]
52
+ "test": [{ "any": [{ "eval": "EVAL_IUBENDA_1" }, { "cookieContains": "uspString%22%3A%221YY-" }] }]
31
53
  }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "la7-cmp",
3
+ "vendorUrl": "https://www.la7.it/",
4
+ "prehideSelectors": ["#_evh-ric"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#_evh-ric #btn_donotaccept"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#_evh-ric #btn_donotaccept"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#_evh-ric #AcceptButton"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#_evh-ric #btn_donotaccept"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "__cpmtAccept=false"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "laravel-cookie-consent",
3
+ "vendorUrl": "https://github.com/statikbe/laravel-cookie-consent",
4
+ "prehideSelectors": [".lcc-modal.js-lcc-modal-alert"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".lcc-modal.js-lcc-modal-alert"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".lcc-modal.js-lcc-modal-alert"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".lcc-modal.js-lcc-modal-alert .js-lcc-accept"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".lcc-modal.js-lcc-modal-alert .js-lcc-settings-toggle"
23
+ },
24
+ {
25
+ "waitForVisible": ".lcc-modal.js-lcc-modal-settings"
26
+ },
27
+ {
28
+ "click": ".lcc-modal.js-lcc-modal-settings input[type=checkbox]:checked:not(:disabled)",
29
+ "all": true,
30
+ "optional": true
31
+ },
32
+ {
33
+ "waitForThenClick": ".lcc-modal.js-lcc-modal-settings .js-lcc-settings-save"
34
+ },
35
+ {
36
+ "waitForVisible": ".lcc-modal.js-lcc-modal-alert",
37
+ "check": "none"
38
+ }
39
+ ],
40
+ "test": [
41
+ {
42
+ "cookieContains": "__cookie_consent=false"
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "legislation-gov-uk",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?legislation\\.gov\\.uk/"
5
+ },
6
+ "prehideSelectors": [".cookie-preferences-banner"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": ".cookie-preferences-banner .reject-all-cookies"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ".cookie-preferences-banner .reject-all-cookies"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ".cookie-preferences-banner .accept-all-cookies"
20
+ },
21
+ {
22
+ "waitForThenClick": ".cookie-preferences-banner .dismiss-banner",
23
+ "timeout": 3000,
24
+ "optional": true
25
+ }
26
+ ],
27
+ "optOut": [
28
+ {
29
+ "waitForThenClick": ".cookie-preferences-banner .reject-all-cookies"
30
+ },
31
+ {
32
+ "comment": "a confirmation banner replaces the dialog after the choice",
33
+ "waitForThenClick": ".cookie-preferences-banner .dismiss-banner",
34
+ "timeout": 3000,
35
+ "optional": true
36
+ }
37
+ ],
38
+ "test": [
39
+ {
40
+ "cookieContains": "analytics%22%3Afalse"
41
+ }
42
+ ]
43
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "lucrin",
3
+ "vendorUrl": "https://www.lucrin.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?lucrin\\.(com|com\\.au|co\\.uk|ca|ch|de|es|fr|it)/"
6
+ },
7
+ "prehideSelectors": ["div:has(> #notice-cookie-block)", "[data-dialog-ref-name=\"cookie-text-popup\"]"],
8
+ "detectCmp": [{ "exists": "#notice-cookie-block #btn-manage-cookie" }],
9
+ "detectPopup": [{ "visible": "#notice-cookie-block" }],
10
+ "optIn": [{ "waitForThenClick": "#notice-cookie-block #btn-cookie-allow" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "#notice-cookie-block #btn-manage-cookie" },
13
+ { "waitForVisible": "#btn-manage-cookie-save-preferences" },
14
+ { "click": "#cookie-text-popup input[type=\"checkbox\"]:checked", "all": true, "optional": true },
15
+ { "waitForThenClick": "#btn-manage-cookie-save-preferences" }
16
+ ],
17
+ "test": [{ "cookieContains": "%22marketing%22%3Afalse%2C%22analytic%22%3Afalse" }]
18
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "mackeeper",
3
+ "vendorUrl": "https://mackeeper.com/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?mackeeper\\.com/"
7
+ },
8
+ "prehideSelectors": [".js-gdpr-banner-top-hide"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".js-gdpr-banner .js-gdpr-banner-top-hide"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".js-gdpr-banner .js-gdpr-banner-top-hide"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".js-gdpr-banner-top-hide .js-gdpr-banner-agree"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": ".js-gdpr-banner-top-hide .js-gdpr-banner-disagree"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "cookieContains": "cookie_banner=false"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "makitatools",
3
+ "vendorUrl": "https://www.makitatools.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https://(www\\.)?makitatools\\.com/"
6
+ },
7
+ "prehideSelectors": [".makita-footer-warning"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".makita-footer-warning"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".makita-footer-warning"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".makita-footer-warning a[data-post*='allowcookie=true']"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".makita-footer-warning .js-makita-modal[data-src*='privacysettings']"
26
+ },
27
+ {
28
+ "waitForThenClick": ".about-cookies a[data-post*='allowcookie=false']"
29
+ },
30
+ {
31
+ "waitForVisible": ".makita-footer-warning",
32
+ "check": "none"
33
+ }
34
+ ],
35
+ "test": [
36
+ {
37
+ "visible": ".makita-footer-warning",
38
+ "check": "none"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "milestone-internet",
3
+ "vendorUrl": "https://www.milestoneinternet.com/",
4
+ "cosmetic": true,
5
+ "prehideSelectors": ["#msCookieBanner"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#msCookieBanner.msCookieBanner"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "#msCookieBanner.msCookieBanner"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "#msCookieBanner button"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "hide": "#msCookieBanner"
24
+ },
25
+ {
26
+ "removeClass": "pushItDown",
27
+ "selector": ".pushItDown",
28
+ "optional": true
29
+ }
30
+ ],
31
+ "minimumRuleStepVersion": 2
32
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "ndl-go-jp",
3
+ "vendorUrl": "https://www.ndl.go.jp/",
4
+ "runContext": {
5
+ "urlPattern": "^https://([a-z0-9-]+\\.)?ndl\\.go\\.jp/"
6
+ },
7
+ "prehideSelectors": [".privacy-confirmation"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".privacy-confirmation .pc-buttons"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".privacy-confirmation .pc-buttons"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".privacy-confirmation [data-cy=privacy-accept-all], .privacy-confirmation [data-cy=accept-all-button]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".privacy-confirmation [data-cy=accept-core-button], .privacy-confirmation .pc-buttons > button.ui-parts-button-fill:not([data-cy])"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "waitForVisible": ".privacy-confirmation .pc-buttons",
31
+ "timeout": 2000,
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "nhm.ac.uk",
3
+ "vendorUrl": "https://www.nhm.ac.uk/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?nhm\\.ac\\.uk/"
7
+ },
8
+ "prehideSelectors": ["[data-show-cookie-banner=\"true\"]", "[data-show-cookie-banner-overlay=\"true\"]"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "[data-show-cookie-banner=\"true\"]"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "[data-show-cookie-banner=\"true\"]"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "[data-show-cookie-banner=\"true\"] form button[type=\"submit\"]"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "[data-show-cookie-banner=\"true\"], [data-show-cookie-banner-overlay=\"true\"]"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "npo-ccm",
3
+ "vendorUrl": "https://www.npo.nl/",
4
+ "prehideSelectors": ["ccm-notification"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ["ccm-notification", "#ccm_notification .ccm_btn--save"]
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ["ccm-notification", "#ccm_notification"]
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ["ccm-notification", "#ccm_notification .ccm_btn--accept-all"]
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "if": {
23
+ "exists": ["ccm-notification", "#ccm_notification .ccm_btn--deny-all"]
24
+ },
25
+ "then": [
26
+ {
27
+ "click": ["ccm-notification", "#ccm_notification .ccm_btn--deny-all"]
28
+ }
29
+ ],
30
+ "else": [
31
+ {
32
+ "click": ["ccm-notification", "#ccm_notification input[type='radio'][value='false']"],
33
+ "all": true,
34
+ "optional": true
35
+ },
36
+ {
37
+ "waitForThenClick": ["ccm-notification", "#ccm_notification .ccm_btn--save:not(.ccm_btn_disabled)"]
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "opalcollection-com",
3
+ "runContext": {
4
+ "urlPattern": "^https://(www\\.)?opalcollection\\.com/"
5
+ },
6
+ "cosmetic": true,
7
+ "prehideSelectors": [".cookie-popup"],
8
+ "detectCmp": [{ "visible": ".cookie-popup .cookie-popup__button" }],
9
+ "detectPopup": [{ "visible": ".cookie-popup" }],
10
+ "optIn": [{ "waitForThenClick": ".cookie-popup .cookie-popup__button" }],
11
+ "optOut": [{ "hide": ".cookie-popup" }]
12
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "orw-cookie-banner",
3
+ "comment": "Shopify theme cookie drawer with only an Accept button; it blurs the page via body classes, so hide it and remove them.",
4
+ "cosmetic": true,
5
+ "minimumRuleStepVersion": 2,
6
+ "prehideSelectors": ["#CookieBanner.cookie-banner.drawer"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#CookieBanner.cookie-banner.drawer"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#CookieBanner.cookie-banner.drawer.opened"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "#CookieBanner.cookie-banner .accept"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "hide": "#CookieBanner.cookie-banner.drawer"
25
+ },
26
+ {
27
+ "removeClass": "cookie-not-accepted",
28
+ "selector": "body",
29
+ "optional": true
30
+ },
31
+ {
32
+ "removeClass": "drawer-opt",
33
+ "selector": "body",
34
+ "optional": true
35
+ },
36
+ {
37
+ "removeClass": "show-overlay",
38
+ "selector": "body",
39
+ "optional": true
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "osf.io",
3
+ "vendorUrl": "https://osf.io/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?osf\\.io/"
7
+ },
8
+ "prehideSelectors": ["osf-cookie-consent-banner"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "osf-cookie-consent-banner p-message"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "osf-cookie-consent-banner p-message"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "osf-cookie-consent-banner p-message button"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "osf-cookie-consent-banner"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "palace-company",
3
+ "vendorUrl": "https://www.palaceresorts.com/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https://(www\\.)?(moonpalace|palaceresorts|leblancsparesorts|baglionihotels)\\.com/"
7
+ },
8
+ "prehideSelectors": ["#cookie-consent", "#cookie-consent ~ .banner-shadow"],
9
+ "detectCmp": [{ "exists": "#cookie-consent .cc-window[aria-describedby=\"cookieconsent:desc\"]" }],
10
+ "detectPopup": [{ "visible": "#cookie-consent .cc-window[aria-describedby=\"cookieconsent:desc\"]" }],
11
+ "optIn": [{ "waitForThenClick": "#cookie-consent .cc-window .cc-dismiss" }],
12
+ "optOut": [{ "hide": "#cookie-consent, #cookie-consent ~ .banner-shadow" }]
13
+ }
@@ -7,9 +7,9 @@
7
7
  "optOut": [
8
8
  {
9
9
  "if": { "exists": "#bannerDeclineButton" },
10
- "then": [{ "click": "#bannerDeclineButton" }],
11
- "comment": "Without a decline button the only way out is the banner's link to the cookie preferences page, which paypal-cookieprefs submits after the navigation.",
12
- "else": [{ "click": "a#manageCookiesLink" }]
10
+ "then": [{ "waitForThenClick": "#bannerDeclineButton", "retry": 10, "retryInterval": 500 }],
11
+ "comment": "Without a decline button the only way out is the cookie preferences page, and the choice made there does not always stick, so the banner keeps coming back. Hide it instead.",
12
+ "else": [{ "hide": "#ccpaCookieBanner" }]
13
13
  }
14
14
  ],
15
15
  "test": [{ "wait": 1000 }, { "cookieContains": "type%3Dexplicit" }]
@@ -6,8 +6,11 @@
6
6
  "optIn": [{ "click": "#acceptAllButton" }],
7
7
  "optOut": [
8
8
  {
9
- "waitForThenClick": "#bannerDeclineButton"
9
+ "comment": "The banner renders before its click handler is attached, and early clicks are ignored.",
10
+ "waitForThenClick": "#bannerDeclineButton",
11
+ "retry": 10,
12
+ "retryInterval": 500
10
13
  }
11
14
  ],
12
- "test": [{ "wait": 500 }, { "cookieContains": "cookie_prefs" }]
15
+ "test": [{ "wait": 500 }, { "cookieContains": "type%3Dexplicit" }]
13
16
  }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "paytronix",
3
+ "vendorUrl": "https://www.paytronix.com/",
4
+ "prehideSelectors": ["#overlay > .gdprBackgound"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#overlay > .gdprBackgound > .gdprTitle"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#overlay > .gdprBackgound"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#overlay > .gdprBackgound button[onclick]"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#overlay > .gdprBackgound > span[onclick]"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "pxCookie=Y"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "pitt-edu",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?pitt\\.edu/"
5
+ },
6
+ "cosmetic": true,
7
+ "prehideSelectors": ["#cookieMessage[data-cookie-boundary]"],
8
+ "detectCmp": [{ "exists": "#cookieMessage[data-cookie-boundary]" }],
9
+ "detectPopup": [{ "visible": "#cookieMessage[data-cookie-boundary]" }],
10
+ "optIn": [{ "waitForThenClick": "#cookieMessage [data-cookie-acceptance]" }],
11
+ "optOut": [{ "hide": "#cookieMessage[data-cookie-boundary]" }]
12
+ }