@duckduckgo/autoconsent 18.1.0 → 18.3.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 (222) hide show
  1. package/CHANGELOG.md +131 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/content.bundle.js +256 -65
  4. package/dist/addon-firefox/manifest.json +1 -1
  5. package/dist/addon-firefox/rule-index.json +1 -1
  6. package/dist/addon-firefox/rules.json +1 -1
  7. package/dist/addon-mv3/compact-rules.json +1 -1
  8. package/dist/addon-mv3/content.bundle.js +256 -65
  9. package/dist/addon-mv3/manifest.json +1 -1
  10. package/dist/addon-mv3/rule-index.json +1 -1
  11. package/dist/addon-mv3/rules.json +1 -1
  12. package/dist/autoconsent.cjs.js +256 -65
  13. package/dist/autoconsent.esm.js +256 -65
  14. package/dist/autoconsent.playwright.js +256 -65
  15. package/dist/autoconsent.standalone.js +257 -66
  16. package/dist/heuristics.cjs.js +264 -67
  17. package/dist/heuristics.mjs +260 -66
  18. package/dist/types/heuristic-patterns.d.ts +4 -1
  19. package/docs/heuristic-detection.md +1 -0
  20. package/lib/heuristic-literals.ts +90 -16
  21. package/lib/heuristic-negatives.ts +15 -10
  22. package/lib/heuristic-patterns.ts +153 -35
  23. package/package.json +1 -1
  24. package/rules/autoconsent/aa-cookie-banner.json +2 -2
  25. package/rules/autoconsent/acconsento.json +45 -0
  26. package/rules/autoconsent/adaptivemedia.json +30 -0
  27. package/rules/autoconsent/adeac-jp.json +29 -0
  28. package/rules/autoconsent/agenziaentrate-geoportale.json +35 -0
  29. package/rules/autoconsent/alertnotification-alert-bar.json +27 -0
  30. package/rules/autoconsent/amasty-gdpr-hyva.json +6 -6
  31. package/rules/autoconsent/appconsent.json +8 -8
  32. package/rules/autoconsent/askas.json +39 -0
  33. package/rules/autoconsent/atomstore.json +44 -0
  34. package/rules/autoconsent/b1ng-cc.json +23 -0
  35. package/rules/autoconsent/betheme.json +10 -0
  36. package/rules/autoconsent/bgk-pl.json +18 -0
  37. package/rules/autoconsent/biblia-online.pl.json +40 -0
  38. package/rules/autoconsent/bitauto.json +57 -0
  39. package/rules/autoconsent/blogger-cookie-notice.json +10 -0
  40. package/rules/autoconsent/brainshare.json +12 -0
  41. package/rules/autoconsent/brandsforstudents.ch.json +19 -0
  42. package/rules/autoconsent/bt-com-au.json +13 -0
  43. package/rules/autoconsent/c-cookie-message.json +9 -0
  44. package/rules/autoconsent/calclife.net.json +43 -0
  45. package/rules/autoconsent/casino-guru.json +28 -0
  46. package/rules/autoconsent/code3-cookies-consent.json +48 -0
  47. package/rules/autoconsent/complianz-opt-out.json +7 -2
  48. package/rules/autoconsent/cookie-agree-banner.json +9 -0
  49. package/rules/autoconsent/cookie-box-notice.json +41 -0
  50. package/rules/autoconsent/cookie-use-notice.json +12 -0
  51. package/rules/autoconsent/cookieinfo-zamknij.json +30 -0
  52. package/rules/autoconsent/cookieinfo.json +1 -1
  53. package/rules/autoconsent/cookies-and-content-security-policy.json +45 -0
  54. package/rules/autoconsent/cookiesbanner-preference.json +14 -0
  55. package/rules/autoconsent/cookiesmodal-pl.json +18 -0
  56. package/rules/autoconsent/creditunionsa.json +12 -0
  57. package/rules/autoconsent/cstudios.json +35 -0
  58. package/rules/autoconsent/dandomain.json +41 -0
  59. package/rules/autoconsent/datezone.json +22 -0
  60. package/rules/autoconsent/dfactory-cookie-notice.json +13 -1
  61. package/rules/autoconsent/didomi.json +7 -1
  62. package/rules/autoconsent/dlibra.json +32 -0
  63. package/rules/autoconsent/dnb.json +30 -0
  64. package/rules/autoconsent/e-file.json +44 -0
  65. package/rules/autoconsent/erli-pl.json +36 -0
  66. package/rules/autoconsent/facebook.json +16 -6
  67. package/rules/autoconsent/fellow-pl.json +16 -0
  68. package/rules/autoconsent/fn-se.json +17 -0
  69. package/rules/autoconsent/gdpr-jp-notice.json +25 -0
  70. package/rules/autoconsent/gdpsystem.json +21 -0
  71. package/rules/autoconsent/help-ch.json +25 -0
  72. package/rules/autoconsent/icom-co-jp.json +34 -0
  73. package/rules/autoconsent/imyfone.json +25 -0
  74. package/rules/autoconsent/interface-medien-gebaeck.json +33 -0
  75. package/rules/autoconsent/intermedia-cms-fsi.json +30 -0
  76. package/rules/autoconsent/invision-guest-terms.json +14 -0
  77. package/rules/autoconsent/ipkobiznes.pl.json +12 -0
  78. package/rules/autoconsent/jquery-cookiepolicy.json +30 -0
  79. package/rules/autoconsent/lieder.net.json +13 -0
  80. package/rules/autoconsent/loescher.json +44 -0
  81. package/rules/autoconsent/menti-com.json +37 -0
  82. package/rules/autoconsent/meowdb.json +65 -0
  83. package/rules/autoconsent/monex-co-jp.json +34 -0
  84. package/rules/autoconsent/mos-cudzoziemcy-gov-pl.json +29 -0
  85. package/rules/autoconsent/nnk-theme-cookie-bar.json +29 -0
  86. package/rules/autoconsent/no-transit-consent.json +32 -0
  87. package/rules/autoconsent/nperf.json +33 -0
  88. package/rules/autoconsent/octoparse.json +33 -0
  89. package/rules/autoconsent/okayama-kanko-jp.json +31 -0
  90. package/rules/autoconsent/oko-press.json +23 -0
  91. package/rules/autoconsent/ometv-pl.json +33 -0
  92. package/rules/autoconsent/oresundstag.json +40 -0
  93. package/rules/autoconsent/pfron-gov-pl.json +37 -0
  94. package/rules/autoconsent/pl-bip-cookies.json +25 -0
  95. package/rules/autoconsent/prestashop-advanced-cookie-banner.json +49 -0
  96. package/rules/autoconsent/qudosbank-com-au.json +14 -0
  97. package/rules/autoconsent/renaud-bray.json +44 -0
  98. package/rules/autoconsent/roblox-creator-hub.json +48 -0
  99. package/rules/autoconsent/rws-app.json +13 -0
  100. package/rules/autoconsent/san-tatsu.json +32 -0
  101. package/rules/autoconsent/saos-org-pl.json +35 -0
  102. package/rules/autoconsent/sda-it.json +37 -0
  103. package/rules/autoconsent/seria-group.json +35 -0
  104. package/rules/autoconsent/shoper.json +10 -0
  105. package/rules/autoconsent/shopgold.json +83 -0
  106. package/rules/autoconsent/shueisha-hpplus.json +27 -0
  107. package/rules/autoconsent/silver-nu.json +31 -0
  108. package/rules/autoconsent/soleil-sitevision-cookie-message.json +32 -0
  109. package/rules/autoconsent/stellantis-psa.json +18 -1
  110. package/rules/autoconsent/surfshark.json +21 -0
  111. package/rules/autoconsent/synergy-net-au.json +33 -0
  112. package/rules/autoconsent/tcl.json +50 -0
  113. package/rules/autoconsent/teeshoppen.json +42 -0
  114. package/rules/autoconsent/tuki-cookieterms.json +20 -0
  115. package/rules/autoconsent/tullys-jp.json +11 -0
  116. package/rules/autoconsent/weblegal.json +10 -0
  117. package/rules/autoconsent/weblication.json +38 -0
  118. package/rules/autoconsent/worldbank.json +5 -5
  119. package/rules/autoconsent/wuerth.json +57 -0
  120. package/rules/autoconsent/x28-privacy-settings.json +18 -0
  121. package/rules/autoconsent/ynjn.json +34 -0
  122. package/rules/compact-rules.json +1 -1
  123. package/rules/rule-index.json +1 -1
  124. package/rules/rules.json +1 -1
  125. package/tests/aa-cookie-banner.spec.ts +1 -1
  126. package/tests/acconsento.spec.ts +8 -0
  127. package/tests/adaptivemedia.spec.ts +3 -0
  128. package/tests/adeac-jp.spec.ts +3 -0
  129. package/tests/agenziaentrate-geoportale.spec.ts +5 -0
  130. package/tests/alertnotification-alert-bar.spec.ts +11 -0
  131. package/tests/amasty-gdpr-hyva.spec.ts +1 -0
  132. package/tests/appconsent.spec.ts +1 -1
  133. package/tests/askas.spec.ts +9 -0
  134. package/tests/atomstore.spec.ts +9 -0
  135. package/tests/b1ng-cc.spec.ts +3 -0
  136. package/tests/betheme.spec.ts +9 -0
  137. package/tests/bgk-pl.spec.ts +5 -0
  138. package/tests/biblia-online.pl.spec.ts +3 -0
  139. package/tests/bitauto.spec.ts +3 -0
  140. package/tests/blogger-cookie-notice.spec.ts +9 -0
  141. package/tests/brainshare.spec.ts +3 -0
  142. package/tests/brandsforstudents.ch.spec.ts +6 -0
  143. package/tests/bt-com-au.spec.ts +3 -0
  144. package/tests/c-cookie-message.spec.ts +9 -0
  145. package/tests/calclife.net.spec.ts +3 -0
  146. package/tests/casino-guru.spec.ts +15 -0
  147. package/tests/code3-cookies-consent.spec.ts +8 -0
  148. package/tests/complianz-opt-out.spec.ts +13 -3
  149. package/tests/cookie-agree-banner.spec.ts +3 -0
  150. package/tests/cookie-box-notice.spec.ts +10 -0
  151. package/tests/cookie-use-notice.spec.ts +6 -0
  152. package/tests/cookieinfo-zamknij.spec.ts +3 -0
  153. package/tests/cookies-and-content-security-policy.spec.ts +16 -0
  154. package/tests/cookiesbanner-preference.spec.ts +8 -0
  155. package/tests/cookiesmodal-pl.spec.ts +3 -0
  156. package/tests/creditunionsa.spec.ts +3 -0
  157. package/tests/cstudios.spec.ts +3 -0
  158. package/tests/dandomain.spec.ts +18 -0
  159. package/tests/datezone.spec.ts +3 -0
  160. package/tests/didomi.spec.ts +8 -0
  161. package/tests/dlibra.spec.ts +8 -0
  162. package/tests/dnb.spec.ts +5 -0
  163. package/tests/e-file.spec.ts +9 -0
  164. package/tests/erli-pl.spec.ts +4 -0
  165. package/tests/facebook.spec.ts +1 -1
  166. package/tests/fellow-pl.spec.ts +5 -0
  167. package/tests/fn-se.spec.ts +3 -0
  168. package/tests/gdpr-jp-notice.spec.ts +3 -0
  169. package/tests/gdpsystem.spec.ts +3 -0
  170. package/tests/gravito.spec.ts +6 -0
  171. package/tests/help-ch.spec.ts +14 -0
  172. package/tests/icom-co-jp.spec.ts +3 -0
  173. package/tests/imyfone.spec.ts +9 -0
  174. package/tests/interface-medien-gebaeck.spec.ts +13 -0
  175. package/tests/intermedia-cms-fsi.spec.ts +8 -0
  176. package/tests/invision-guest-terms.spec.ts +10 -0
  177. package/tests/ipkobiznes.pl.spec.ts +3 -0
  178. package/tests/jquery-cookiepolicy.spec.ts +10 -0
  179. package/tests/lieder.net.spec.ts +3 -0
  180. package/tests/loescher.spec.ts +5 -0
  181. package/tests/menti-com.spec.ts +3 -0
  182. package/tests/meowdb.spec.ts +3 -0
  183. package/tests/monex-co-jp.spec.ts +3 -0
  184. package/tests/mos-cudzoziemcy-gov-pl.spec.ts +3 -0
  185. package/tests/nnk-theme-cookie-bar.spec.ts +3 -0
  186. package/tests/no-transit-consent.spec.ts +3 -0
  187. package/tests/nperf.spec.ts +3 -0
  188. package/tests/octoparse.spec.ts +6 -0
  189. package/tests/okayama-kanko-jp.spec.ts +3 -0
  190. package/tests/oko-press.spec.ts +3 -0
  191. package/tests/ometv-pl.spec.ts +4 -0
  192. package/tests/oresundstag.spec.ts +3 -0
  193. package/tests/pfron-gov-pl.spec.ts +3 -0
  194. package/tests/pl-bip-cookies.spec.ts +3 -0
  195. package/tests/prestashop-advanced-cookie-banner.spec.ts +9 -0
  196. package/tests/qudosbank-com-au.spec.ts +3 -0
  197. package/tests/renaud-bray.spec.ts +5 -0
  198. package/tests/roblox-creator-hub.spec.ts +5 -0
  199. package/tests/rws-app.spec.ts +15 -0
  200. package/tests/san-tatsu.spec.ts +3 -0
  201. package/tests/saos-org-pl.spec.ts +3 -0
  202. package/tests/sda-it.spec.ts +7 -0
  203. package/tests/seria-group.spec.ts +3 -0
  204. package/tests/shoper.spec.ts +3 -0
  205. package/tests/shopgold.spec.ts +3 -0
  206. package/tests/shueisha-hpplus.spec.ts +3 -0
  207. package/tests/silver-nu.spec.ts +3 -0
  208. package/tests/soleil-sitevision-cookie-message.spec.ts +8 -0
  209. package/tests/stellantis-psa.spec.ts +2 -0
  210. package/tests/surfshark.spec.ts +3 -0
  211. package/tests/synergy-net-au.spec.ts +8 -0
  212. package/tests/tcl.spec.ts +9 -0
  213. package/tests/teeshoppen.spec.ts +7 -0
  214. package/tests/tuki-cookieterms.spec.ts +8 -0
  215. package/tests/tullys-jp.spec.ts +3 -0
  216. package/tests/weblegal.spec.ts +8 -0
  217. package/tests/weblication.spec.ts +9 -0
  218. package/tests/worldbank.spec.ts +1 -0
  219. package/tests/wuerth.spec.ts +8 -0
  220. package/tests/x28-privacy-settings.spec.ts +4 -0
  221. package/tests/ynjn.spec.ts +3 -0
  222. package/tests-wtr/heuristics/heuristics-utils.test.ts +356 -3
@@ -3,7 +3,7 @@
3
3
  "vendorUrl": "https://cookieinfoscript.com/",
4
4
  "cosmetic": true,
5
5
  "prehideSelectors": [".cookieinfo"],
6
- "detectCmp": [{ "exists": ".cookieinfo" }],
6
+ "detectCmp": [{ "exists": ".cookieinfo .cookieinfo-close" }],
7
7
  "detectPopup": [{ "visible": ".cookieinfo" }],
8
8
  "optOut": [{ "waitForThenClick": ".cookieinfo-close" }],
9
9
  "optIn": [{ "waitForThenClick": ".cookieinfo-close" }]
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "cookies-and-content-security-policy",
3
+ "vendorUrl": "https://wordpress.org/plugins/cookies-and-content-security-policy/",
4
+ "prehideSelectors": [".modal-cacsp-position", ".modal-cacsp-backdrop"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".modal-cacsp-position .modal-cacsp-box-info"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".modal-cacsp-box-info.modal-cacsp-box-show"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".modal-cacsp-box-info .modal-cacsp-btn-accept"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "if": {
23
+ "exists": ".modal-cacsp-box-info .modal-cacsp-btn-refuse"
24
+ },
25
+ "then": [
26
+ {
27
+ "waitForThenClick": ".modal-cacsp-box-info .modal-cacsp-btn-refuse"
28
+ }
29
+ ],
30
+ "else": [
31
+ {
32
+ "waitForThenClick": ".modal-cacsp-box-info .modal-cacsp-btn-settings"
33
+ },
34
+ {
35
+ "waitForThenClick": ".modal-cacsp-box-settings.modal-cacsp-box-show .modal-cacsp-btn-save"
36
+ }
37
+ ]
38
+ }
39
+ ],
40
+ "test": [
41
+ {
42
+ "cookieContains": "cookies_and_content_security_policy=[]"
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "cookiesbanner-preference",
3
+ "prehideSelectors": ["#cookiesBanner:has(#cookiesBannerPreference)"],
4
+ "detectCmp": [{ "exists": "#cookiesBanner #cookiesBannerPreference" }],
5
+ "detectPopup": [{ "visible": "#cookiesBanner:not(.cookiesBannerHide) #cookiesBannerBox" }],
6
+ "optIn": [{ "waitForThenClick": "#cookiesBannerInfos button[onclick^=\"submitCookies('all')\"]" }],
7
+ "optOut": [
8
+ { "waitForThenClick": "#cookiesBannerInfos button[onclick^='cookieSettingsShow']" },
9
+ { "waitForVisible": "#cookiesBannerPreference" },
10
+ { "click": "#cookiesBannerChoices input:checked:not(:disabled)", "all": true, "optional": true },
11
+ { "waitForThenClick": "#cookiesBannerPreference button[onclick^='submitCookies()']" }
12
+ ],
13
+ "test": [{ "waitFor": "#cookiesBanner.cookiesBannerHide" }, { "cookieContains": "\"tracking\":false" }]
14
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "cookiesmodal-pl",
3
+ "prehideSelectors": [],
4
+ "detectCmp": [
5
+ { "exists": "#cookiesModal .modal-footer #cookiesModalAcceptSelected" },
6
+ { "exists": "#cookiesModal input[name=\"cookies_google\"]" }
7
+ ],
8
+ "detectPopup": [{ "visible": "#cookiesModal .modal-dialog" }],
9
+ "optIn": [{ "waitForThenClick": "#cookiesModal #cookiesModalAcceptAll" }],
10
+ "optOut": [
11
+ {
12
+ "if": { "exists": "#cookiesModal input[name=\"cookies_google\"]:checked" },
13
+ "then": [{ "click": "#cookiesModal input[name=\"cookies_google\"]" }]
14
+ },
15
+ { "waitForThenClick": "#cookiesModal #cookiesModalAcceptSelected", "retry": 3, "retryInterval": 600 }
16
+ ],
17
+ "test": [{ "cookieContains": "cookiePolicy=sessions" }, { "cookieContains": "cookiePolicy=sessions%2Cgoogle", "negated": true }]
18
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "creditunionsa",
3
+ "cosmetic": true,
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?creditunionsa\\.com\\.au/"
6
+ },
7
+ "prehideSelectors": [".cookie-banner-alerts > div:has(button[aria-label=\"Accept\"])"],
8
+ "detectCmp": [{ "exists": ".cookie-banner-alerts button[aria-label=\"Accept\"]" }],
9
+ "detectPopup": [{ "visible": ".cookie-banner-alerts > div:has(button[aria-label=\"Accept\"])" }],
10
+ "optIn": [{ "waitForThenClick": ".cookie-banner-alerts button[aria-label=\"Accept\"]" }],
11
+ "optOut": [{ "hide": ".cookie-banner-alerts > div:has(button[aria-label=\"Accept\"])" }]
12
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "cstudios",
3
+ "vendorUrl": "https://www.cstudios.pl/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?cstudios\\.pl/"
7
+ },
8
+ "prehideSelectors": ["#CookiesWindow"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#CookiesWindow .rodo-window"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#CookiesWindow .rodo-window"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#CookiesWindow .dnnSecondaryAction[onclick*=AcceptRODO]"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "#CookiesWindow"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": "#CookiesWindow",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "dandomain",
3
+ "vendorUrl": "https://dandomain.dk/",
4
+ "cosmetic": false,
5
+ "prehideSelectors": ["#CookiePolicy"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#CookiePolicy #cookie-policy-accept-button"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "#CookiePolicy"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "#CookiePolicy .cookie-policy-accept-all"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "comment": "some shops pre-check the toggles in a DOM-ready handler that may run after detection",
24
+ "wait": 500
25
+ },
26
+ {
27
+ "comment": "the save button keeps the current toggles, so uncheck them first",
28
+ "click": "#CookiePolicy .cookie-policy-consents-area input[type=checkbox]:checked:not(:disabled)",
29
+ "all": true,
30
+ "optional": true
31
+ },
32
+ {
33
+ "waitForThenClick": "#CookiePolicy #cookie-policy-accept-button"
34
+ }
35
+ ],
36
+ "test": [
37
+ {
38
+ "cookieContains": "DDCookiePolicy-consent-tracking=false"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "datezone",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?datezone\\.com/"
5
+ },
6
+ "prehideSelectors": ["[data-rum=\"cookie-consent\"]"],
7
+ "detectCmp": [{ "exists": "[data-rum=\"cookie-consent\"] [data-rum=\"cookie-consent-text\"]" }],
8
+ "detectPopup": [{ "visible": "[data-rum=\"cookie-consent\"]" }],
9
+ "optIn": [{ "waitForThenClick": "[data-rum=\"cookie-consent\"] [data-rum=\"cookie-consent-text\"] + div > button:last-of-type" }],
10
+ "optOut": [
11
+ { "waitForThenClick": "[data-rum=\"cookie-consent\"] [data-rum=\"cookie-consent-text\"] + div > button:first-of-type" },
12
+ { "waitFor": "[data-rum=\"cookie-consent\"] div.grid input[type=\"checkbox\"]" },
13
+ {
14
+ "click": "[data-rum=\"cookie-consent\"] div.grid:has(input[type=\"checkbox\"]:checked:not([disabled]))",
15
+ "all": true,
16
+ "optional": true
17
+ },
18
+ { "waitForThenClick": "[data-rum=\"cookie-consent\"] div.grid ~ div > button:last-of-type" },
19
+ { "waitForVisible": "[data-rum=\"cookie-consent\"]", "check": "none", "timeout": 3000 }
20
+ ],
21
+ "test": [{ "cookieContains": "cookie_consent=necessary" }]
22
+ }
@@ -4,12 +4,24 @@
4
4
  "prehideSelectors": ["#cookie-notice"],
5
5
  "detectCmp": [{ "exists": "#cookie-notice :is(#cn-refuse-cookie, #cn-close-notice)" }],
6
6
  "detectPopup": [{ "visible": "#cookie-notice.cookie-notice-visible #cn-notice-buttons" }],
7
- "optIn": [{ "waitForThenClick": "#cookie-notice #cn-accept-cookie" }],
7
+ "optIn": [
8
+ { "waitForThenClick": "#cookie-notice #cn-accept-cookie" },
9
+ { "waitForVisible": "#cookie-notice .cookie-notice-container", "check": "none", "timeout": 1000, "optional": true },
10
+ {
11
+ "if": { "visible": "#cookie-notice .cookie-notice-container" },
12
+ "then": [{ "hide": "#cookie-notice .cookie-notice-container" }]
13
+ }
14
+ ],
8
15
  "optOut": [
9
16
  {
10
17
  "if": { "exists": "#cookie-notice #cn-refuse-cookie" },
11
18
  "then": [{ "waitForThenClick": "#cookie-notice #cn-refuse-cookie" }],
12
19
  "else": [{ "waitForThenClick": "#cookie-notice #cn-close-notice" }]
20
+ },
21
+ { "waitForVisible": "#cookie-notice .cookie-notice-container", "check": "none", "timeout": 1000, "optional": true },
22
+ {
23
+ "if": { "visible": "#cookie-notice .cookie-notice-container" },
24
+ "then": [{ "hide": "#cookie-notice .cookie-notice-container" }]
13
25
  }
14
26
  ],
15
27
  "test": [{ "cookieContains": "cookie_notice_accepted=false" }]
@@ -15,7 +15,13 @@
15
15
  {
16
16
  "if": { "exists": "#didomi-notice-disagree-button,.didomi-continue-without-agreeing" },
17
17
  "then": [{ "waitForThenClick": "#didomi-notice-disagree-button,.didomi-continue-without-agreeing" }],
18
- "else": [{ "eval": "EVAL_DIDOMI_OPT_OUT" }]
18
+ "else": [
19
+ {
20
+ "if": { "exists": "#acceptationCMPWall" },
21
+ "then": [{ "waitForThenClick": "#didomi-notice-learn-more-button" }, { "waitForThenClick": "#btn-toggle-disagree" }],
22
+ "else": [{ "eval": "EVAL_DIDOMI_OPT_OUT" }]
23
+ }
24
+ ]
19
25
  }
20
26
  ],
21
27
  "test": [{ "eval": "EVAL_DIDOMI_TEST" }]
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "dlibra",
3
+ "vendorUrl": "https://dlibra.psnc.pl/",
4
+ "detectCmp": [
5
+ {
6
+ "exists": "script[src*=\"/style/dlibra/\"]"
7
+ },
8
+ {
9
+ "exists": ".cookies > p > button.cookies__button"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ".cookies > p > button.cookies__button"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ".cookies > p > button.cookies__button"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": ".cookies > p > button.cookies__button"
25
+ }
26
+ ],
27
+ "test": [
28
+ {
29
+ "cookieContains": "AcceptCookie=true"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "dnb",
3
+ "vendorUrl": "https://www.dnb.no/",
4
+ "prehideSelectors": ["#eufemia-portal-root .cookie-popup"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".cookie-popup #cookie-popup-strictlyNecessary"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".cookie-popup #cookie-popup-strictlyNecessary"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".cookie-popup #cookie-popup-acceptAll"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".cookie-popup #cookie-popup-strictlyNecessary"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "consentData=sn"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "e-file",
3
+ "vendorUrl": "https://www.e-file.pl/",
4
+ "prehideSelectors": ["#cookiemodal"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookiemodal #cookie-accepted-form"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#cookiemodal #cookie-change-desc"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#cookiemodal #cookie-accepted-all"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#cookiemodal #cookie-change-desc"
23
+ },
24
+ {
25
+ "waitForVisible": "#cookiemodal #cookie-accepted-form"
26
+ },
27
+ {
28
+ "click": "#cookiemodal .cookie-form input[type=checkbox]:checked:not(:disabled)",
29
+ "all": true,
30
+ "optional": true
31
+ },
32
+ {
33
+ "click": "#cookiemodal #cookie-accepted-form"
34
+ }
35
+ ],
36
+ "test": [
37
+ {
38
+ "cookieContains": "analytics_storage=false"
39
+ },
40
+ {
41
+ "cookieContains": "ad_storage=false"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "erli-pl",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?erli\\.pl/"
5
+ },
6
+ "detectCmp": [
7
+ {
8
+ "exists": "xpath///div[h2[normalize-space()=\"Ustawienia prywatności i cookies\"]][.//button[normalize-space()=\"Zgadzam się\"]]"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "xpath///div[h2[normalize-space()=\"Ustawienia prywatności i cookies\"]][.//button[normalize-space()=\"Zgadzam się\"]]"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "xpath///div[h2[normalize-space()=\"Ustawienia prywatności i cookies\"]]//button[normalize-space()=\"Zgadzam się\"]"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "waitForThenClick": "xpath///div[h2[normalize-space()=\"Ustawienia prywatności i cookies\"]]//button[normalize-space()=\"Zmień ustawienia\"]"
24
+ },
25
+ {
26
+ "waitForThenClick": "xpath///div[h2[normalize-space()=\"Ustawienia prywatności i cookies\"]]//button[normalize-space()=\"Zezwól na wybrane\"]"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "waitForVisible": "xpath///div[h2[normalize-space()=\"Ustawienia prywatności i cookies\"]][.//button[normalize-space()=\"Zgadzam się\"]]",
32
+ "check": "none",
33
+ "timeout": 2000
34
+ }
35
+ ]
36
+ }
@@ -6,29 +6,39 @@
6
6
  "prehideSelectors": [],
7
7
  "detectCmp": [
8
8
  {
9
- "exists": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])"
9
+ "exists": "[role=\"dialog\"]:has(a[href*=\"/policies/cookies/\"]) div[aria-hidden=\"true\"] + div[role=\"button\"][tabindex=\"0\"]"
10
10
  }
11
11
  ],
12
12
  "detectPopup": [
13
13
  {
14
- "visible": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])"
14
+ "visible": "[role=\"dialog\"]:has(a[href*=\"/policies/cookies/\"]) div[aria-hidden=\"true\"] + div[role=\"button\"][tabindex=\"0\"]"
15
15
  }
16
16
  ],
17
17
  "optIn": [
18
18
  {
19
- "waitForThenClick": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(1):not([id])"
19
+ "wait": 500
20
20
  },
21
21
  {
22
- "waitForVisible": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(1):not([id])",
22
+ "waitForThenClick": "[role=\"dialog\"]:has(a[href*=\"/policies/cookies/\"]) div[role=\"button\"][tabindex=\"0\"]:has(+ div[aria-hidden=\"true\"])",
23
+ "retry": 3,
24
+ "retryInterval": 500
25
+ },
26
+ {
27
+ "waitForVisible": "[role=\"dialog\"]:has(a[href*=\"/policies/cookies/\"])",
23
28
  "check": "none"
24
29
  }
25
30
  ],
26
31
  "optOut": [
27
32
  {
28
- "waitForThenClick": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])"
33
+ "wait": 500
34
+ },
35
+ {
36
+ "waitForThenClick": "[role=\"dialog\"]:has(a[href*=\"/policies/cookies/\"]) div[aria-hidden=\"true\"] + div[role=\"button\"][tabindex=\"0\"]",
37
+ "retry": 3,
38
+ "retryInterval": 500
29
39
  },
30
40
  {
31
- "waitForVisible": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])",
41
+ "waitForVisible": "[role=\"dialog\"]:has(a[href*=\"/policies/cookies/\"])",
32
42
  "check": "none"
33
43
  }
34
44
  ]
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "fellow.pl",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?(fellow|fll)\\.pl/"
5
+ },
6
+ "prehideSelectors": [],
7
+ "detectCmp": [{ "exists": "a[href='/?cookie=1'] > img[title*='cookies']" }],
8
+ "detectPopup": [{ "visible": "a[href='/?cookie=1'] > img[title*='cookies']" }],
9
+ "optIn": [{ "waitForThenClick": "a[href='/?cookie=1']" }],
10
+ "optOut": [
11
+ {
12
+ "waitForThenClick": "a[href='/?cookie=1']",
13
+ "comment": "notice only; the close link acknowledges it"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "fn-se",
3
+ "vendorUrl": "https://fn.se/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?fn\\.se/"
6
+ },
7
+ "prehideSelectors": ["#cookie"],
8
+ "detectCmp": [{ "exists": "#cookie #cookies-marketing" }],
9
+ "detectPopup": [{ "visible": "#cookie .accept-all" }],
10
+ "optIn": [{ "waitForThenClick": "#cookie .accept-all" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "#cookie a.settings" },
13
+ { "waitForVisible": "#cookie .cookie-settings button.close" },
14
+ { "click": "#cookie .cookie-settings button.close" }
15
+ ],
16
+ "test": [{ "cookieContains": "allow_necessary=true" }]
17
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "gdpr-jp-notice",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["html[lang^=\"ja\"] #gdpr:has(> button:only-of-type)"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "html[lang^=\"ja\"] #gdpr > button:only-of-type"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "html[lang^=\"ja\"] #gdpr:has(> button:only-of-type)"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "html[lang^=\"ja\"] #gdpr > button:only-of-type"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "hide": "html[lang^=\"ja\"] #gdpr:has(> button:only-of-type)"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "gdpsystem",
3
+ "vendorUrl": "https://www.gdpsystem.rzetelnagrupa.pl/",
4
+ "prehideSelectors": ["#__pb-cookie"],
5
+ "detectCmp": [{ "exists": "#__pb #__pb-cookie" }],
6
+ "detectPopup": [{ "visible": "#__pb-cookie.display" }],
7
+ "optIn": [{ "waitForThenClick": "#__pb-cookie .__pb-cookie_button_accept" }],
8
+ "optOut": [
9
+ {
10
+ "if": { "exists": "#__pb-cookie .__pb-cookie_button_only_necessary" },
11
+ "then": [{ "waitForThenClick": "#__pb-cookie .__pb-cookie_button_only_necessary" }],
12
+ "else": [
13
+ { "waitForThenClick": "#__pb-cookie .__pb-cookie_button_settings" },
14
+ { "waitForVisible": "#__pb-settings" },
15
+ { "click": "#__pb-settings input.form-check-input:checked", "all": true, "optional": true },
16
+ { "waitForThenClick": "#__pb-settings .__pb-cookie_button_accept" }
17
+ ]
18
+ }
19
+ ],
20
+ "test": [{ "waitForVisible": "#__pb-cookie.display", "check": "none" }]
21
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "help-ch",
3
+ "vendorUrl": "https://www.help.ch/",
4
+ "prehideSelectors": [".cookie-info:has(a[href*=\"close-policy.cfm\"])"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".cookie-info a[href*=\"close-policy.cfm\"]"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".cookie-info a[href*=\"close-policy.cfm\"]"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".cookie-info a[href*=\"close-policy.cfm\"]"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".cookie-info a[href*=\"close-policy.cfm\"]"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "icom-co-jp",
3
+ "cosmetic": true,
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?icom\\.co\\.jp/"
6
+ },
7
+ "prehideSelectors": ["#cookie.view:has(.agree .btn)"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cookie .agree .btn"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookie.view"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cookie .agree .btn"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "hide": "#cookie"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "visible": "#cookie",
31
+ "check": "none"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "imyfone",
3
+ "cosmetic": true,
4
+ "prehideSelectors": [".base-footer > .cookie-policy"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".base-footer > .cookie-policy .btn-cookie"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".base-footer > .cookie-policy"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".base-footer > .cookie-policy .btn-cookie"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "hide": ".base-footer > .cookie-policy"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "interface-medien-gebaeck",
3
+ "vendorUrl": "https://www.interface-medien.de/",
4
+ "prehideSelectors": [".gebaeck-notice"],
5
+ "detectCmp": [{ "exists": ".gebaeck-notice .gebaeck-notice__buttons" }],
6
+ "detectPopup": [{ "visible": ".gebaeck-notice .gebaeck-notice__buttons" }],
7
+ "optIn": [
8
+ {
9
+ "waitForThenClick": ".gebaeck-notice button.btn--gebaeck-notice-all, .gebaeck-notice button.btn--privacy-notice-all"
10
+ }
11
+ ],
12
+ "optOut": [
13
+ {
14
+ "if": { "exists": ".gebaeck-notice button.btn--privacy-notice-only-necessary" },
15
+ "then": [{ "click": ".gebaeck-notice button.btn--privacy-notice-only-necessary" }],
16
+ "else": [
17
+ {
18
+ "click": ".gebaeck-notice button.btn--gebaeck-notice-config, .gebaeck-notice button.btn--privacy-notice-config"
19
+ },
20
+ { "waitForVisible": ".gebaeck-notice-popup", "timeout": 3000 },
21
+ {
22
+ "click": ".gebaeck-notice-popup input[type=checkbox]:checked:not(:disabled)",
23
+ "all": true,
24
+ "optional": true
25
+ },
26
+ {
27
+ "click": ".gebaeck-notice-popup button.btn--gebaeck-notice, .gebaeck-notice-popup button.btn--privacy-notice"
28
+ }
29
+ ]
30
+ }
31
+ ],
32
+ "test": [{ "waitForVisible": ".gebaeck-notice", "timeout": 2000, "check": "none" }, { "cookieContains": "privacy=" }]
33
+ }