@duckduckgo/autoconsent 17.3.0 → 18.0.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 (173) hide show
  1. package/.prettierignore +1 -0
  2. package/AGENTS.md +2 -0
  3. package/CHANGELOG.md +90 -0
  4. package/dist/addon-firefox/background.bundle.js +28 -7
  5. package/dist/addon-firefox/compact-rules.json +1 -1
  6. package/dist/addon-firefox/content.bundle.js +624 -54
  7. package/dist/addon-firefox/manifest.json +1 -1
  8. package/dist/addon-firefox/popup.bundle.js +19 -7
  9. package/dist/addon-firefox/rule-index.json +1 -1
  10. package/dist/addon-firefox/rules.json +1 -1
  11. package/dist/addon-mv3/background.bundle.js +28 -7
  12. package/dist/addon-mv3/compact-rules.json +1 -1
  13. package/dist/addon-mv3/content.bundle.js +624 -54
  14. package/dist/addon-mv3/manifest.json +1 -1
  15. package/dist/addon-mv3/popup.bundle.js +19 -7
  16. package/dist/addon-mv3/rule-index.json +1 -1
  17. package/dist/addon-mv3/rules.json +1 -1
  18. package/dist/autoconsent.cjs.js +630 -60
  19. package/dist/autoconsent.esm.js +630 -60
  20. package/dist/autoconsent.playwright.js +624 -54
  21. package/dist/autoconsent.standalone.js +631 -61
  22. package/dist/heuristics.cjs.js +621 -52
  23. package/dist/heuristics.mjs +609 -50
  24. package/dist/types/cmps/trustarc-top.d.ts +1 -0
  25. package/dist/types/eval-snippets.d.ts +2 -0
  26. package/dist/types/heuristic-classify.d.ts +2 -6
  27. package/dist/types/heuristic-detect.d.ts +32 -0
  28. package/dist/types/heuristic-literals.d.ts +1 -0
  29. package/dist/types/heuristic-negatives.d.ts +25 -0
  30. package/dist/types/heuristic-patterns.d.ts +18 -2
  31. package/dist/types/heuristic-prefilter.d.ts +13 -0
  32. package/docs/heuristic-detection.md +78 -0
  33. package/docs/heuristic-prefilter.md +62 -0
  34. package/eslint.config.mjs +16 -1
  35. package/lib/cmps/admiral.ts +10 -0
  36. package/lib/cmps/trustarc-top.ts +10 -1
  37. package/lib/eval-snippets.ts +9 -0
  38. package/lib/heuristic-classify.ts +4 -39
  39. package/lib/heuristic-detect.ts +209 -0
  40. package/lib/heuristic-literals.ts +207 -0
  41. package/lib/heuristic-negatives.ts +173 -0
  42. package/lib/heuristic-patterns.ts +104 -31
  43. package/lib/heuristic-prefilter.ts +40 -0
  44. package/lib/heuristics.ts +8 -4
  45. package/lib/web.ts +1 -1
  46. package/package.json +2 -1
  47. package/rules/autoconsent/adblockplus.json +94 -0
  48. package/rules/autoconsent/alertamodal-cookies.json +29 -0
  49. package/rules/autoconsent/altamar-cookieconsent.json +45 -0
  50. package/rules/autoconsent/autohero.json +49 -0
  51. package/rules/autoconsent/bing.com-notice-cosmetic.json +28 -0
  52. package/rules/autoconsent/bing.com-notice.json +13 -0
  53. package/rules/autoconsent/binogi.json +32 -0
  54. package/rules/autoconsent/bokio.json +32 -0
  55. package/rules/autoconsent/botble-cookie-consent.json +16 -0
  56. package/rules/autoconsent/bsgdprcookies.json +16 -0
  57. package/rules/autoconsent/calcolo-tools.json +23 -0
  58. package/rules/autoconsent/casasrurales.json +15 -0
  59. package/rules/autoconsent/ccoo.json +40 -0
  60. package/rules/autoconsent/cdu-edu-au.json +29 -0
  61. package/rules/autoconsent/cnmc-gob-es.json +14 -0
  62. package/rules/autoconsent/comparandonos.json +66 -0
  63. package/rules/autoconsent/consent-backdrop.json +34 -0
  64. package/rules/autoconsent/consilium-europa-eu.json +35 -0
  65. package/rules/autoconsent/cookie-accordion-settings.json +56 -0
  66. package/rules/autoconsent/cookies-tip-v1.json +9 -0
  67. package/rules/autoconsent/cookiesplus.json +20 -0
  68. package/rules/autoconsent/crtm.json +36 -0
  69. package/rules/autoconsent/dtu-findit.json +47 -0
  70. package/rules/autoconsent/edebe.json +22 -0
  71. package/rules/autoconsent/eduardolosilla.json +12 -0
  72. package/rules/autoconsent/educastur-alojaweb.json +13 -0
  73. package/rules/autoconsent/flatsome-cookies.json +25 -0
  74. package/rules/autoconsent/gameforge.json +42 -0
  75. package/rules/autoconsent/gamefound-com.json +12 -0
  76. package/rules/autoconsent/generalitat-catalunya.json +15 -0
  77. package/rules/autoconsent/hikvision.com.json +18 -0
  78. package/rules/autoconsent/hurra-consent.json +16 -0
  79. package/rules/autoconsent/ihavecookies.json +5 -1
  80. package/rules/autoconsent/imarina.json +25 -0
  81. package/rules/autoconsent/isidewith.com.json +38 -0
  82. package/rules/autoconsent/jobtoday.json +18 -0
  83. package/rules/autoconsent/kaggle.json +21 -0
  84. package/rules/autoconsent/landgate.json +10 -0
  85. package/rules/autoconsent/mblock.json +28 -0
  86. package/rules/autoconsent/mirasvit-gdpr.json +18 -7
  87. package/rules/autoconsent/mites.gob.es.json +18 -0
  88. package/rules/autoconsent/pakamera.json +19 -0
  89. package/rules/autoconsent/purecookie-cosmetic.json +13 -0
  90. package/rules/autoconsent/random-org.json +41 -0
  91. package/rules/autoconsent/react-cookie-consent-cosmetic.json +40 -0
  92. package/rules/autoconsent/supercontable.json +19 -0
  93. package/rules/autoconsent/tallink.json +13 -0
  94. package/rules/autoconsent/tealium.json +4 -1
  95. package/rules/autoconsent/tusclasesparticulares.com.json +14 -0
  96. package/rules/autoconsent/typo3-cookieconsent.json +9 -0
  97. package/rules/autoconsent/udg.edu.json +47 -0
  98. package/rules/autoconsent/uned-barbastro.json +58 -0
  99. package/rules/autoconsent/uregina.json +35 -0
  100. package/rules/autoconsent/vinnies-org-au.json +29 -0
  101. package/rules/autoconsent/vrg-bottom-cookies.json +52 -0
  102. package/rules/autoconsent/wiki.gg.json +1 -1
  103. package/rules/compact-rules.json +1 -1
  104. package/rules/rule-index.json +1 -1
  105. package/rules/rules.json +1 -1
  106. package/scripts/build-heuristic-literals.ts +24 -0
  107. package/scripts/required-literals.ts +177 -0
  108. package/tests/adblockplus.spec.ts +7 -0
  109. package/tests/admiral.spec.ts +5 -4
  110. package/tests/alertamodal-cookies.spec.ts +8 -0
  111. package/tests/altamar-cookieconsent.spec.ts +6 -0
  112. package/tests/autohero.spec.ts +3 -0
  113. package/tests/bing.com-notice-cosmetic.spec.ts +5 -0
  114. package/tests/bing.com-notice.spec.ts +6 -0
  115. package/tests/binogi.spec.ts +3 -0
  116. package/tests/bokio.spec.ts +6 -0
  117. package/tests/botble-cookie-consent.spec.ts +11 -0
  118. package/tests/bsgdprcookies.spec.ts +6 -0
  119. package/tests/calcolo-tools.spec.ts +3 -0
  120. package/tests/casasrurales.spec.ts +3 -0
  121. package/tests/ccoo.spec.ts +5 -0
  122. package/tests/cdu-edu-au.spec.ts +3 -0
  123. package/tests/cnmc-gob-es.spec.ts +3 -0
  124. package/tests/comparandonos.spec.ts +3 -0
  125. package/tests/consent-backdrop.spec.ts +9 -0
  126. package/tests/consilium-europa-eu.spec.ts +3 -0
  127. package/tests/cookie-accordion-settings.spec.ts +5 -0
  128. package/tests/cookies-tip-v1.spec.ts +3 -0
  129. package/tests/cookiesplus.spec.ts +6 -0
  130. package/tests/crtm.spec.ts +3 -0
  131. package/tests/dtu-findit.spec.ts +3 -0
  132. package/tests/edebe.spec.ts +3 -0
  133. package/tests/eduardolosilla.spec.ts +3 -0
  134. package/tests/educastur-alojaweb.spec.ts +6 -0
  135. package/tests/flatsome-cookies.spec.ts +3 -0
  136. package/tests/gameforge.spec.ts +8 -0
  137. package/tests/gamefound-com.spec.ts +3 -0
  138. package/tests/generalitat-catalunya.spec.ts +3 -0
  139. package/tests/hikvision.com.spec.ts +3 -0
  140. package/tests/hurra-consent.spec.ts +8 -0
  141. package/tests/ihavecookies.spec.ts +7 -1
  142. package/tests/imarina.spec.ts +8 -0
  143. package/tests/isidewith.com.spec.ts +3 -0
  144. package/tests/jobtoday.spec.ts +5 -0
  145. package/tests/kaggle.spec.ts +3 -0
  146. package/tests/landgate.spec.ts +3 -0
  147. package/tests/mblock.spec.ts +3 -0
  148. package/tests/mirasvit-gdpr.spec.ts +5 -0
  149. package/tests/mites.gob.es.spec.ts +3 -0
  150. package/tests/pakamera.spec.ts +5 -0
  151. package/tests/purecookie-cosmetic.spec.ts +8 -0
  152. package/tests/random-org.spec.ts +3 -0
  153. package/tests/react-cookie-consent-cosmetic.spec.ts +9 -0
  154. package/tests/supercontable.spec.ts +3 -0
  155. package/tests/tallink.spec.ts +3 -0
  156. package/tests/trustarc.spec.ts +7 -0
  157. package/tests/tusclasesparticulares.com.spec.ts +3 -0
  158. package/tests/typo3-cookieconsent.spec.ts +10 -0
  159. package/tests/udg.edu.spec.ts +3 -0
  160. package/tests/uned-barbastro.spec.ts +3 -0
  161. package/tests/uregina.spec.ts +3 -0
  162. package/tests/vinnies-org-au.spec.ts +3 -0
  163. package/tests/vrg-bottom-cookies.spec.ts +3 -0
  164. package/tests-wtr/heuristics/heuristics-utils.test.ts +222 -8
  165. package/tests-wtr/heuristics/regex-syntax.test.ts +81 -0
  166. package/rules/generated/auto_CA_promessedefleurs.com_noy.json +0 -40
  167. package/rules/generated/auto_FR_ludum.fr_gl5.json +0 -40
  168. package/rules/generated/auto_FR_meillandrichardier.com_c2f.json +0 -40
  169. package/rules/generated/auto_NL_bonprix.nl_ovi.json +0 -40
  170. package/tests/generated/auto_CA_promessedefleurs.com_noy.spec.ts +0 -6
  171. package/tests/generated/auto_FR_ludum.fr_gl5.spec.ts +0 -2
  172. package/tests/generated/auto_FR_meillandrichardier.com_c2f.spec.ts +0 -6
  173. package/tests/generated/auto_NL_bonprix.nl_ovi.spec.ts +0 -2
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "hikvision.com",
3
+ "comment": "Variant without a reject button. The only dismiss control is an SVG close icon, which just hides the banner without storing a choice.",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false,
8
+ "urlPattern": "^https?://(\\w+\\.)?hikvision\\.com/"
9
+ },
10
+ "prehideSelectors": [],
11
+ "detectCmp": [
12
+ { "exists": "section.gdpr-wrapper .gdpr-button-accept" },
13
+ { "exists": "section.gdpr-wrapper .gdpr-button-reject", "negated": true }
14
+ ],
15
+ "detectPopup": [{ "visible": "section.gdpr-wrapper" }],
16
+ "optIn": [{ "waitForThenClick": "section.gdpr-wrapper .gdpr-button-accept" }],
17
+ "optOut": [{ "hide": "section.gdpr-wrapper" }]
18
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "hurra-consent",
3
+ "_metadata": { "vendorUrl": "https://www.hurra.com/" },
4
+ "prehideSelectors": ["#JOISH987_bar_holder"],
5
+ "detectCmp": [{ "exists": "#JOISH987_bar_holder #JOISH987_bar" }],
6
+ "detectPopup": [{ "visible": "#JOISH987_bar_holder" }],
7
+ "optIn": [{ "waitForThenClick": "#JOISH987_acceptAllBar_btn" }],
8
+ "optOut": [
9
+ {
10
+ "if": { "visible": "#JOISH987_rejectBar_btn" },
11
+ "then": [{ "click": "#JOISH987_rejectBar_btn" }],
12
+ "else": [{ "waitForThenClick": "#JOISH987_inlineRejectBar_btn" }]
13
+ }
14
+ ],
15
+ "test": [{ "waitForVisible": "#JOISH987_bar_holder", "timeout": 2000, "check": "none" }]
16
+ }
@@ -14,7 +14,11 @@
14
14
  "then": [{ "click": "#gdpr-cookie-message #gdpr-cookie-accept2" }],
15
15
  "else": [{ "click": "#gdpr-cookie-message #gdpr-cookie-accept" }]
16
16
  },
17
- { "waitForVisible": "#gdpr-cookie-message", "check": "none", "timeout": 2000, "optional": true }
17
+ { "waitForVisible": "#gdpr-cookie-message", "check": "none", "timeout": 2000, "optional": true },
18
+ {
19
+ "if": { "exists": "#handlebars-cookie-confirm" },
20
+ "then": [{ "waitForThenClick": "#gdpr-cookie-message #gdpr-cookie-accept-post", "timeout": 5000, "optional": true }]
21
+ }
18
22
  ],
19
23
  "test": [{ "cookieContains": "cookieControl=true" }]
20
24
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "imarina",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["body.page-ipublic #div-cookies"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "body.page-ipublic #div-cookies button[onclick=\"acceptCookies()\"]"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "body.page-ipublic #div-cookies"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "body.page-ipublic #div-cookies button[onclick=\"acceptCookies()\"]"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "hide": "body.page-ipublic #div-cookies"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "isidewith.com",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?isidewith\\.com/"
5
+ },
6
+ "prehideSelectors": [],
7
+ "detectCmp": [
8
+ {
9
+ "exists": ".overlayContent a[onclick^=\"optin\"]"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ".overlayContent a[onclick^=\"optin\"]"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ".overlayContent a[onclick^=\"optin\"]"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": ".overlayBG"
25
+ },
26
+ {
27
+ "waitForVisible": ".overlayContent a[onclick^=\"optin\"]",
28
+ "check": "none",
29
+ "timeout": 2000
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "visible": ".overlayContent a[onclick^=\"optin\"]",
35
+ "check": "none"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "jobtoday",
3
+ "vendorUrl": "https://jobtoday.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?jobtoday\\.com/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [{ "exists": "[data-testid=modal_cookie-consent]" }],
9
+ "detectPopup": [{ "visible": "[data-testid=modal_cookie-consent]" }],
10
+ "optIn": [{ "waitForThenClick": "[data-testid=modal_cookie-consent-accept-all]" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "[data-testid=modal_cookie-consent] .modal-bottom button.jt-btn-outline" },
13
+ { "waitForVisible": "[data-testid=modal_cookie-consent] #marketingConsent" },
14
+ { "click": "[data-testid=modal_cookie-consent] input[type=checkbox]:checked:not([disabled])", "all": true, "optional": true },
15
+ { "waitForThenClick": "[data-testid=modal_cookie-consent-accept]" }
16
+ ],
17
+ "test": [{ "cookieContains": "jt-cookie-consent-extended=%7B%22ad_storage%22%3Afalse%2C%22analytics_storage%22%3Afalse" }]
18
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "kaggle",
3
+ "vendorUrl": "https://www.kaggle.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?kaggle\\.com/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [{ "exists": "xpath///div[@data-nosnippet][contains(., 'uses cookies from Google')]" }],
9
+ "detectPopup": [{ "visible": "xpath///div[@data-nosnippet][contains(., 'uses cookies from Google')]" }],
10
+ "optIn": [
11
+ {
12
+ "waitForThenClick": "xpath///div[@data-nosnippet][contains(., 'uses cookies from Google')]/following-sibling::div/div[contains(., 'Got it')]"
13
+ }
14
+ ],
15
+ "optOut": [
16
+ {
17
+ "waitForThenClick": "xpath///div[@data-nosnippet][contains(., 'uses cookies from Google')]/following-sibling::div/div[contains(., 'Got it')]"
18
+ }
19
+ ],
20
+ "test": [{ "cookieContains": "ACCEPTED_COOKIES=true" }]
21
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "landgate",
3
+ "vendorUrl": "https://www.landgate.wa.gov.au/",
4
+ "prehideSelectors": [".privacy-notification[data-cookie-name]"],
5
+ "detectCmp": [{ "exists": ".privacy-notification[data-cookie-name] #js-privacy-notification-ok" }],
6
+ "detectPopup": [{ "visible": ".privacy-notification[data-cookie-name]" }],
7
+ "optIn": [{ "waitForThenClick": "#js-privacy-notification-ok" }],
8
+ "optOut": [{ "waitForThenClick": "#js-privacy-notification-ok" }],
9
+ "test": [{ "waitForVisible": ".privacy-notification[data-cookie-name]", "check": "none", "timeout": 1000 }]
10
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "mblock",
3
+ "cosmetic": true,
4
+ "runContext": {
5
+ "urlPattern": "^https?://ide\\.mblock\\.cc/"
6
+ },
7
+ "prehideSelectors": [".privacy-license-bar"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".privacy-license-bar .privacy-btn-wrapper"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".privacy-license-bar"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".privacy-license-bar .privacy-btn-wrapper button:last-child"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "hide": ".privacy-license-bar"
26
+ }
27
+ ]
28
+ }
@@ -1,27 +1,31 @@
1
1
  {
2
2
  "name": "mirasvit-gdpr",
3
3
  "prehideSelectors": ["#gdprCookieBar", "#gdprCookieBarOverlay", ".mst-gdpr__cookie-bar-wrapper", ".mst-gdpr__cookie-bar-overlay"],
4
- "detectCmp": [{ "exists": ".mst-gdpr__cookie-bar .mst-gdpr__buttons" }],
5
- "detectPopup": [{ "visible": ".mst-gdpr__cookie-bar .mst-gdpr__buttons", "check": "any" }],
4
+ "detectCmp": [{ "exists": ".mst-gdpr__cookie-bar .mst-gdpr__buttons,.mst-gdpr-cookie-bar-wrapper .mst-gdpr-buttons" }],
5
+ "detectPopup": [
6
+ { "visible": ".mst-gdpr__cookie-bar .mst-gdpr__buttons,.mst-gdpr-cookie-bar-wrapper .mst-gdpr-buttons", "check": "any" }
7
+ ],
6
8
  "optIn": [
7
9
  {
8
10
  "any": [
9
11
  { "click": ".mst-gdpr__buttons [data-trigger-settings=agree]" },
10
- { "click": ".mst-gdpr__buttons button[\\@click^=handleAllow]" }
12
+ { "click": ".mst-gdpr__buttons button[\\@click^=handleAllow]" },
13
+ { "click": ".mst-gdpr-buttons button[\\@click^=handleAllow]" }
11
14
  ]
12
15
  }
13
16
  ],
14
17
  "optOut": [
15
18
  {
16
19
  "if": {
17
- "visible": ".mst-gdpr__buttons [data-trigger-settings=decline],.mst-gdpr__buttons button[\\@click=handleDecline]",
20
+ "visible": ".mst-gdpr__buttons [data-trigger-settings=decline],.mst-gdpr__buttons button[\\@click=handleDecline],.mst-gdpr-cookie-bar-wrapper button[\\@click=handleDecline]",
18
21
  "check": "any"
19
22
  },
20
23
  "then": [
21
24
  {
22
25
  "any": [
23
26
  { "click": ".mst-gdpr__buttons [data-trigger-settings=decline]" },
24
- { "click": ".mst-gdpr__buttons button[\\@click=handleDecline]" }
27
+ { "click": ".mst-gdpr__buttons button[\\@click=handleDecline]" },
28
+ { "click": ".mst-gdpr-cookie-bar-wrapper button[\\@click=handleDecline]" }
25
29
  ]
26
30
  }
27
31
  ],
@@ -52,7 +56,14 @@
52
56
  }
53
57
  ]
54
58
  },
55
- { "waitForVisible": ".mst-gdpr__cookie-bar .mst-gdpr__buttons", "check": "none", "timeout": 10000 }
59
+ {
60
+ "waitForVisible": ".mst-gdpr__cookie-bar .mst-gdpr__buttons,.mst-gdpr-cookie-bar-wrapper .mst-gdpr-buttons",
61
+ "check": "none",
62
+ "timeout": 10000
63
+ }
56
64
  ],
57
- "test": [{ "cookieContains": "gdpr_cookie_consent=" }, { "visible": ".mst-gdpr__cookie-bar .mst-gdpr__buttons", "check": "none" }]
65
+ "test": [
66
+ { "cookieContains": "gdpr_cookie_consent=" },
67
+ { "visible": ".mst-gdpr__cookie-bar .mst-gdpr__buttons,.mst-gdpr-cookie-bar-wrapper .mst-gdpr-buttons", "check": "none" }
68
+ ]
58
69
  }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "mites.gob.es",
3
+ "vendorUrl": "https://www.mites.gob.es/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?mites\\.gob\\.es/"
6
+ },
7
+ "prehideSelectors": ["#avisoUsoCookies", "#cookies-modal"],
8
+ "detectCmp": [{ "exists": "#avisoUsoCookies .configurar-cookies" }],
9
+ "detectPopup": [{ "visible": "#avisoUsoCookies .configurar-cookies" }],
10
+ "optIn": [{ "waitForThenClick": "#avisoUsoCookies .aceptar-cookies" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "#avisoUsoCookies .configurar-cookies" },
13
+ { "waitForVisible": "#cookies-modal .cookies-btn-guardar" },
14
+ { "click": "#cookies-modal input[id^=check-]:checked:not(:disabled)", "all": true, "optional": true },
15
+ { "click": "#cookies-modal .cookies-btn-guardar" }
16
+ ],
17
+ "test": [{ "cookieContains": "TRABAJO_POLICYv2=true" }, { "cookieContains": "TRABAJO_GA=", "negated": true }]
18
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "pakamera.pl",
3
+ "vendorUrl": "https://www.github.com/orestbida/cookieconsent",
4
+ "comment": "customized CookieConsent v3 with a renamed root container",
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?pakamera\\.pl/"
7
+ },
8
+ "prehideSelectors": ["#ccpm"],
9
+ "detectCmp": [{ "exists": "#ccpm" }],
10
+ "detectPopup": [{ "visible": "html.show--consent #ccpm .cm__btn[data-role=all]" }],
11
+ "optIn": [{ "waitForThenClick": "#ccpm .cm__btn[data-role=all]" }],
12
+ "optOut": [
13
+ { "waitForThenClick": "#ccpm .cm__btn[data-role=show]" },
14
+ { "waitForVisible": "#ccpm .pm__btn[data-role=save]" },
15
+ { "click": "#ccpm .pm input.section__toggle:checked:not(:disabled)", "all": true, "optional": true },
16
+ { "click": "#ccpm .pm__btn[data-role=save]" }
17
+ ],
18
+ "test": [{ "waitForVisible": "html.show--consent #ccpm .cm__btn[data-role=all]", "check": "none" }]
19
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "purecookie-cosmetic",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["#cookieConsentContainer"],
5
+ "detectCmp": [{ "exists": "#cookieConsentContainer [onclick^=\"purecookieDismiss\"], script[src*=\"purecookie\"]" }],
6
+ "detectPopup": [{ "visible": "#cookieConsentContainer" }],
7
+ "optIn": [
8
+ { "waitFor": "#cookieConsentContainer[style*=\"opacity: 1;\"]", "timeout": 2000, "optional": true },
9
+ { "waitForThenClick": "#cookieConsentContainer [onclick^=\"purecookieDismiss\"]" }
10
+ ],
11
+ "optOut": [{ "hide": "#cookieConsentContainer" }],
12
+ "test": [{ "visible": "#cookieConsentContainer", "check": "none" }]
13
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "random-org",
3
+ "vendorUrl": "https://www.random.org/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?random\\.org/"
6
+ },
7
+ "prehideSelectors": ["#cookie-banner"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cookie-banner #cookie-banner-statistics"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookie-banner"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cookie-banner button[onclick*=\"'all'\"]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "if": { "exists": "#cookie-banner-preferences:checked" },
26
+ "then": [{ "click": "#cookie-banner-preferences" }]
27
+ },
28
+ {
29
+ "if": { "exists": "#cookie-banner-statistics:checked" },
30
+ "then": [{ "click": "#cookie-banner-statistics" }]
31
+ },
32
+ {
33
+ "waitForThenClick": "#cookie-banner button[onclick*=\"'selected'\"]"
34
+ }
35
+ ],
36
+ "test": [
37
+ {
38
+ "cookieContains": "RDOPRIVACY=%5Btrue%2Cfalse%2Cfalse%5D"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "react-cookie-consent-cosmetic",
3
+ "_metadata": {
4
+ "vendorUrl": "https://github.com/Mastermindzh/react-cookie-consent"
5
+ },
6
+ "cosmetic": true,
7
+ "prehideSelectors": ["*:has(> * > #rcc-confirm-button):not(:has(#rcc-decline-button))"],
8
+ "detectCmp": [
9
+ {
10
+ "visible": "#rcc-confirm-button"
11
+ },
12
+ {
13
+ "exists": "#rcc-decline-button",
14
+ "negated": true
15
+ },
16
+ {
17
+ "exists": "*:has(> * > #rcc-confirm-button) button:not(#rcc-confirm-button)",
18
+ "negated": true
19
+ }
20
+ ],
21
+ "detectPopup": [
22
+ {
23
+ "visible": "#rcc-confirm-button"
24
+ }
25
+ ],
26
+ "optIn": [
27
+ {
28
+ "waitForThenClick": "#rcc-confirm-button"
29
+ }
30
+ ],
31
+ "optOut": [
32
+ {
33
+ "hide": "*:has(> * > #rcc-confirm-button)"
34
+ },
35
+ {
36
+ "hide": "*:has(> * > * > #rcc-confirm-button)[style*=\"position: fixed\"][style*=\"height: 100%\"]",
37
+ "optional": true
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "supercontable",
3
+ "vendorUrl": "https://www.supercontable.com/",
4
+ "prehideSelectors": ["#consCookie.popup-overlay"],
5
+ "detectCmp": [{ "exists": "#consCookie.popup-overlay .cajaSetting" }],
6
+ "detectPopup": [{ "visible": "#consCookie.popup-overlay .contenedorCookies" }],
7
+ "optIn": [{ "waitForThenClick": "#consCookie a.submit" }],
8
+ "optOut": [
9
+ { "waitForThenClick": "#consCookie a.setting:not(.preferencias)" },
10
+ { "waitForVisible": "#consCookie a.setting.preferencias" },
11
+ {
12
+ "if": { "exists": "#consCookie .cajaSetting input[type=checkbox]:checked:not(:disabled)" },
13
+ "then": [{ "click": "#consCookie .cajaSetting input[type=checkbox]:checked:not(:disabled)", "all": true }]
14
+ },
15
+ { "click": "#consCookie a.setting.preferencias" },
16
+ { "waitForVisible": "#consCookie.popup-overlay", "check": "none" }
17
+ ],
18
+ "test": [{ "wait": 500 }, { "any": [{ "cookieContains": "CONS=100" }, { "cookieContains": "CONS=000" }] }]
19
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "tallink",
3
+ "vendorUrl": "https://www.tallink.com/",
4
+ "prehideSelectors": ["#cms-web-consent-modal"],
5
+ "detectCmp": [{ "exists": "#cms-web-consent-root #cms-web-consent-modal" }],
6
+ "detectPopup": [{ "visible": "#cms-web-consent-modal" }],
7
+ "optIn": [{ "waitForThenClick": "#cms-web-consent-modal [data-cy=consent-agree-all]" }],
8
+ "optOut": [
9
+ { "waitForThenClick": "#cms-web-consent-modal [data-cy=consent-agree-necessary]" },
10
+ { "waitForVisible": "#cms-web-consent-modal", "check": "none", "timeout": 2000, "optional": true }
11
+ ],
12
+ "test": [{ "cookieContains": "tlnk_cwc=necessary_cookies=true" }, { "cookieContains": "marketing_cookies=true", "negated": true }]
13
+ }
@@ -2,7 +2,10 @@
2
2
  "name": "Tealium",
3
3
  "prehideSelectors": ["#__tealiumGDPRecModal,#__tealiumGDPRcpPrefs,#__tealiumImplicitmodal,#consent-layer"],
4
4
  "detectCmp": [{ "exists": "#__tealiumGDPRecModal *,#__tealiumGDPRcpPrefs *,#__tealiumImplicitmodal *" }, { "eval": "EVAL_TEALIUM_0" }],
5
- "detectPopup": [{ "visible": "#__tealiumGDPRecModal *,#__tealiumGDPRcpPrefs *,#__tealiumImplicitmodal *", "check": "any" }],
5
+ "detectPopup": [
6
+ { "visible": "#__tealiumGDPRecModal *,#__tealiumGDPRcpPrefs *,#__tealiumImplicitmodal *", "check": "any" },
7
+ { "eval": "EVAL_TEALIUM_NO_DECISION" }
8
+ ],
6
9
  "optOut": [
7
10
  { "eval": "EVAL_TEALIUM_1" },
8
11
  { "eval": "EVAL_TEALIUM_DONOTSELL" },
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "tusclasesparticulares.com",
3
+ "comment": "The reject button can render before cookies.min.js attaches its click handler, so the click is retried.",
4
+ "runContext": { "urlPattern": "^https?://(www\\.)?tusclasesparticulares\\.com/" },
5
+ "prehideSelectors": ["#pp .cookiesnoticev2"],
6
+ "detectCmp": [{ "exists": "#pp .cookiesnoticev2" }],
7
+ "detectPopup": [{ "visible": "#pp .cookiesnoticev2" }],
8
+ "optIn": [{ "waitForThenClick": "#pp .cookiesnoticev2 .footer .aceptar-all.step1" }],
9
+ "optOut": [
10
+ { "waitForThenClick": "#pp .cookiesnoticev2 #reject_all", "retry": 5, "retryInterval": 500 },
11
+ { "waitForVisible": "#pp .cookiesnoticev2", "check": "none", "timeout": 2000 }
12
+ ],
13
+ "test": [{ "cookieContains": "\"analiticas\": {\"All\":false" }]
14
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "typo3-cookieconsent",
3
+ "prehideSelectors": ["#js-cookieconsent"],
4
+ "detectCmp": [{ "exists": "#js-cookieconsent [data-cookieconsent-accept-none]" }],
5
+ "detectPopup": [{ "visible": "#js-cookieconsent" }],
6
+ "optIn": [{ "waitForThenClick": "#js-cookieconsent [data-cookieconsent-accept-all]" }],
7
+ "optOut": [{ "waitForThenClick": "#js-cookieconsent [data-cookieconsent-accept-none]" }],
8
+ "test": [{ "cookieContains": "CookieConsent=mandatory" }]
9
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "udg.edu",
3
+ "vendorUrl": "https://www.udg.edu/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?udg\\.edu/"
6
+ },
7
+ "cosmetic": false,
8
+ "prehideSelectors": [".cookie-alert"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".cookie-alert .cookies-manager__btn-open"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".cookie-alert"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".cookie-alert .cookies-manager__btn-accept"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": ".cookie-alert button.cookies-manager__btn-open"
27
+ },
28
+ {
29
+ "waitForVisible": ".cookies-manager__window"
30
+ },
31
+ {
32
+ "click": ".cookies-manager input.toggle:checked:not(:disabled)",
33
+ "all": true,
34
+ "optional": true
35
+ },
36
+ {
37
+ "waitForThenClick": ".cookies-manager__btn-save",
38
+ "retry": 3,
39
+ "retryInterval": 500
40
+ }
41
+ ],
42
+ "test": [
43
+ {
44
+ "cookieContains": "udgCookiesPreferences=set"
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "uned-barbastro",
3
+ "prehideSelectors": ["#avisoCookie.msgCookies"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "#avisoCookie.msgCookies"
7
+ },
8
+ {
9
+ "exists": ".modal #chRendimiento"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#avisoCookie.msgCookies"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "#avisoCookie a[onclick*=\"aceptarGoogleAnalytics=true\"]"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "#avisoCookie a[data-target^=\"#\"], #avisoCookie a.modal-trigger"
25
+ },
26
+ {
27
+ "waitForVisible": ".modal-footer button[onclick*=\"chRendimiento\"]"
28
+ },
29
+ {
30
+ "if": {
31
+ "exists": ".modal #chRendimiento:checked"
32
+ },
33
+ "then": [
34
+ {
35
+ "click": ".modal #chRendimiento:checked"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "click": ".modal-footer button[onclick*=\"chRendimiento\"]"
41
+ },
42
+ {
43
+ "waitForVisible": "#avisoCookie.msgCookies",
44
+ "check": "none",
45
+ "timeout": 2000,
46
+ "optional": true
47
+ }
48
+ ],
49
+ "test": [
50
+ {
51
+ "cookieContains": "aceptarCookies=true"
52
+ },
53
+ {
54
+ "cookieContains": "aceptarGoogleAnalytics=true",
55
+ "negated": true
56
+ }
57
+ ]
58
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "uregina",
3
+ "vendorUrl": "https://www.uregina.ca/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?uregina\\.ca/"
7
+ },
8
+ "prehideSelectors": ["#acceptCookies"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#acceptCookies button"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#acceptCookies"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#acceptCookies button"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "#acceptCookies"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": "#acceptCookies",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "vinnies-org-au",
3
+ "vendorUrl": "https://www.vinnies.org.au/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?vinnies\\.org\\.au/"
7
+ },
8
+ "prehideSelectors": ["div.fixed.bottom-0:has(svg[data-icon=\"cookie-bite\"])"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "div.fixed.bottom-0:has(svg[data-icon=\"cookie-bite\"]) button"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "div.fixed.bottom-0:has(svg[data-icon=\"cookie-bite\"])"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "div.fixed.bottom-0:has(svg[data-icon=\"cookie-bite\"]) button"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "div.fixed.bottom-0:has(svg[data-icon=\"cookie-bite\"])"
27
+ }
28
+ ]
29
+ }