@duckduckgo/autoconsent 18.1.0 → 18.2.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 (134) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/content.bundle.js +167 -32
  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 +167 -32
  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 +167 -32
  13. package/dist/autoconsent.esm.js +167 -32
  14. package/dist/autoconsent.playwright.js +167 -32
  15. package/dist/autoconsent.standalone.js +168 -33
  16. package/dist/heuristics.cjs.js +175 -32
  17. package/dist/heuristics.mjs +171 -32
  18. package/dist/types/heuristic-patterns.d.ts +4 -0
  19. package/docs/heuristic-detection.md +1 -0
  20. package/lib/heuristic-literals.ts +52 -5
  21. package/lib/heuristic-negatives.ts +15 -1
  22. package/lib/heuristic-patterns.ts +101 -21
  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/appconsent.json +8 -8
  27. package/rules/autoconsent/askas.json +39 -0
  28. package/rules/autoconsent/atomstore.json +44 -0
  29. package/rules/autoconsent/b1ng-cc.json +23 -0
  30. package/rules/autoconsent/bgk-pl.json +18 -0
  31. package/rules/autoconsent/blogger-cookie-notice.json +10 -0
  32. package/rules/autoconsent/brainshare.json +12 -0
  33. package/rules/autoconsent/brandsforstudents.ch.json +19 -0
  34. package/rules/autoconsent/c-cookie-message.json +9 -0
  35. package/rules/autoconsent/cookie-agree-banner.json +9 -0
  36. package/rules/autoconsent/cookie-box-notice.json +41 -0
  37. package/rules/autoconsent/cookieinfo.json +1 -1
  38. package/rules/autoconsent/cookies-and-content-security-policy.json +45 -0
  39. package/rules/autoconsent/dfactory-cookie-notice.json +13 -1
  40. package/rules/autoconsent/didomi.json +7 -1
  41. package/rules/autoconsent/facebook.json +16 -6
  42. package/rules/autoconsent/gdpr-jp-notice.json +25 -0
  43. package/rules/autoconsent/gdpsystem.json +21 -0
  44. package/rules/autoconsent/help-ch.json +25 -0
  45. package/rules/autoconsent/imyfone.json +25 -0
  46. package/rules/autoconsent/interface-medien-gebaeck.json +33 -0
  47. package/rules/autoconsent/invision-guest-terms.json +14 -0
  48. package/rules/autoconsent/ipkobiznes.pl.json +12 -0
  49. package/rules/autoconsent/jquery-cookiepolicy.json +30 -0
  50. package/rules/autoconsent/loescher.json +44 -0
  51. package/rules/autoconsent/meowdb.json +65 -0
  52. package/rules/autoconsent/monex-co-jp.json +34 -0
  53. package/rules/autoconsent/nnk-theme-cookie-bar.json +29 -0
  54. package/rules/autoconsent/no-transit-consent.json +32 -0
  55. package/rules/autoconsent/nperf.json +33 -0
  56. package/rules/autoconsent/okayama-kanko-jp.json +31 -0
  57. package/rules/autoconsent/oko-press.json +23 -0
  58. package/rules/autoconsent/ometv-pl.json +33 -0
  59. package/rules/autoconsent/pfron-gov-pl.json +37 -0
  60. package/rules/autoconsent/pl-bip-cookies.json +25 -0
  61. package/rules/autoconsent/prestashop-advanced-cookie-banner.json +49 -0
  62. package/rules/autoconsent/qudosbank-com-au.json +14 -0
  63. package/rules/autoconsent/roblox-creator-hub.json +48 -0
  64. package/rules/autoconsent/rws-app.json +13 -0
  65. package/rules/autoconsent/san-tatsu.json +32 -0
  66. package/rules/autoconsent/sda-it.json +37 -0
  67. package/rules/autoconsent/seria-group.json +35 -0
  68. package/rules/autoconsent/shoper.json +10 -0
  69. package/rules/autoconsent/silver-nu.json +31 -0
  70. package/rules/autoconsent/soleil-sitevision-cookie-message.json +32 -0
  71. package/rules/autoconsent/stellantis-psa.json +18 -1
  72. package/rules/autoconsent/surfshark.json +21 -0
  73. package/rules/autoconsent/tcl.json +50 -0
  74. package/rules/autoconsent/tuki-cookieterms.json +20 -0
  75. package/rules/autoconsent/weblegal.json +10 -0
  76. package/rules/autoconsent/weblication.json +38 -0
  77. package/rules/autoconsent/x28-privacy-settings.json +18 -0
  78. package/rules/compact-rules.json +1 -1
  79. package/rules/rule-index.json +1 -1
  80. package/rules/rules.json +1 -1
  81. package/tests/aa-cookie-banner.spec.ts +1 -1
  82. package/tests/acconsento.spec.ts +8 -0
  83. package/tests/appconsent.spec.ts +1 -1
  84. package/tests/askas.spec.ts +9 -0
  85. package/tests/atomstore.spec.ts +9 -0
  86. package/tests/b1ng-cc.spec.ts +3 -0
  87. package/tests/bgk-pl.spec.ts +5 -0
  88. package/tests/blogger-cookie-notice.spec.ts +9 -0
  89. package/tests/brainshare.spec.ts +3 -0
  90. package/tests/brandsforstudents.ch.spec.ts +6 -0
  91. package/tests/c-cookie-message.spec.ts +9 -0
  92. package/tests/cookie-agree-banner.spec.ts +3 -0
  93. package/tests/cookie-box-notice.spec.ts +10 -0
  94. package/tests/cookies-and-content-security-policy.spec.ts +16 -0
  95. package/tests/didomi.spec.ts +8 -0
  96. package/tests/facebook.spec.ts +1 -1
  97. package/tests/gdpr-jp-notice.spec.ts +3 -0
  98. package/tests/gdpsystem.spec.ts +3 -0
  99. package/tests/gravito.spec.ts +6 -0
  100. package/tests/help-ch.spec.ts +14 -0
  101. package/tests/imyfone.spec.ts +9 -0
  102. package/tests/interface-medien-gebaeck.spec.ts +13 -0
  103. package/tests/invision-guest-terms.spec.ts +10 -0
  104. package/tests/ipkobiznes.pl.spec.ts +3 -0
  105. package/tests/jquery-cookiepolicy.spec.ts +10 -0
  106. package/tests/loescher.spec.ts +5 -0
  107. package/tests/meowdb.spec.ts +3 -0
  108. package/tests/monex-co-jp.spec.ts +3 -0
  109. package/tests/nnk-theme-cookie-bar.spec.ts +3 -0
  110. package/tests/no-transit-consent.spec.ts +3 -0
  111. package/tests/nperf.spec.ts +3 -0
  112. package/tests/okayama-kanko-jp.spec.ts +3 -0
  113. package/tests/oko-press.spec.ts +3 -0
  114. package/tests/ometv-pl.spec.ts +4 -0
  115. package/tests/pfron-gov-pl.spec.ts +3 -0
  116. package/tests/pl-bip-cookies.spec.ts +3 -0
  117. package/tests/prestashop-advanced-cookie-banner.spec.ts +9 -0
  118. package/tests/qudosbank-com-au.spec.ts +3 -0
  119. package/tests/roblox-creator-hub.spec.ts +5 -0
  120. package/tests/rws-app.spec.ts +15 -0
  121. package/tests/san-tatsu.spec.ts +3 -0
  122. package/tests/sda-it.spec.ts +7 -0
  123. package/tests/seria-group.spec.ts +3 -0
  124. package/tests/shoper.spec.ts +3 -0
  125. package/tests/silver-nu.spec.ts +3 -0
  126. package/tests/soleil-sitevision-cookie-message.spec.ts +8 -0
  127. package/tests/stellantis-psa.spec.ts +2 -0
  128. package/tests/surfshark.spec.ts +3 -0
  129. package/tests/tcl.spec.ts +9 -0
  130. package/tests/tuki-cookieterms.spec.ts +8 -0
  131. package/tests/weblegal.spec.ts +8 -0
  132. package/tests/weblication.spec.ts +9 -0
  133. package/tests/x28-privacy-settings.spec.ts +4 -0
  134. package/tests-wtr/heuristics/heuristics-utils.test.ts +275 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "c-cookie-message",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["div.c-cookie-message.fixed"],
5
+ "detectCmp": [{ "exists": "div.c-cookie-message.fixed > div > button" }],
6
+ "detectPopup": [{ "visible": "div.c-cookie-message.fixed > div > button" }],
7
+ "optIn": [{ "waitForThenClick": "div.c-cookie-message.fixed > div > button" }],
8
+ "optOut": [{ "hide": "div.c-cookie-message.fixed" }]
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "cookie-agree-banner",
3
+ "cosmetic": true,
4
+ "prehideSelectors": [".cookie-consent:has(> .cookie-text + .cookie-agree:last-child)"],
5
+ "detectCmp": [{ "exists": ".cookie-consent > .cookie-text + .cookie-agree:last-child" }],
6
+ "detectPopup": [{ "visible": ".cookie-consent > .cookie-text + .cookie-agree:last-child" }],
7
+ "optIn": [{ "waitForThenClick": ".cookie-consent > .cookie-text + .cookie-agree:last-child" }],
8
+ "optOut": [{ "hide": ".cookie-consent:has(> .cookie-text + .cookie-agree:last-child)" }]
9
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "cookie-box-notice",
3
+ "detectCmp": [
4
+ {
5
+ "exists": "xpath///div[contains(@class,'cookie-box__in')]//*[contains(concat(' ',normalize-space(@class),' '),' cookie-box__btn ')][normalize-space()='OK' or normalize-space()='OK' or normalize-space()='確認しました' or normalize-space()='閉じる']"
6
+ }
7
+ ],
8
+ "detectPopup": [
9
+ {
10
+ "visible": "xpath///div[contains(@class,'cookie-box__in')]//*[contains(concat(' ',normalize-space(@class),' '),' cookie-box__btn ')][normalize-space()='OK' or normalize-space()='OK' or normalize-space()='確認しました' or normalize-space()='閉じる']"
11
+ },
12
+ {
13
+ "exists": ".cookie-box__in.js-load--on:not(.js-load)",
14
+ "negated": true
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "xpath///div[contains(@class,'cookie-box__in')]//*[contains(concat(' ',normalize-space(@class),' '),' cookie-box__btn ')][normalize-space()='OK' or normalize-space()='OK' or normalize-space()='確認しました' or normalize-space()='閉じる']"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "xpath///div[contains(@class,'cookie-box__in')]//*[contains(concat(' ',normalize-space(@class),' '),' cookie-box__btn ')][normalize-space()='OK' or normalize-space()='OK' or normalize-space()='確認しました' or normalize-space()='閉じる']"
25
+ }
26
+ ],
27
+ "test": [
28
+ {
29
+ "any": [
30
+ {
31
+ "exists": ".cookie-box__in.js-load--on:not(.js-load)"
32
+ },
33
+ {
34
+ "waitForVisible": "xpath///div[contains(@class,'cookie-box__in')]//*[contains(concat(' ',normalize-space(@class),' '),' cookie-box__btn ')][normalize-space()='OK' or normalize-space()='OK' or normalize-space()='確認しました' or normalize-space()='閉じる']",
35
+ "check": "none",
36
+ "timeout": 2000
37
+ }
38
+ ]
39
+ }
40
+ ]
41
+ }
@@ -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
+ }
@@ -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" }]
@@ -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,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,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
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "invision-guest-terms",
3
+ "vendorUrl": "https://invisioncommunity.com/",
4
+ "cosmetic": true,
5
+ "prehideSelectors": ["#elGuestTerms[data-role=\"guestTermsBar\"]"],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "xpath///div[@id='elGuestTerms'][@data-role='guestTermsBar'][.//a[@data-action='dismissTerms']][not(.//form)][count(.//a[contains(@class,'ipsButton')] | .//button) <= 1][contains(translate(., 'COKIE', 'cokie'), 'cookie')]"
9
+ }
10
+ ],
11
+ "detectPopup": [{ "visible": "#elGuestTerms[data-role=\"guestTermsBar\"]" }],
12
+ "optIn": [{ "waitForThenClick": "#elGuestTerms a[data-action=\"dismissTerms\"]" }],
13
+ "optOut": [{ "hide": "#elGuestTerms[data-role=\"guestTermsBar\"]" }]
14
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "ipkobiznes.pl",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?ipkobiznes\\.pl/"
5
+ },
6
+ "prehideSelectors": ["#layout div:has(> div > div > span > button[title='EXT_COOKIE_POLICY'])"],
7
+ "detectCmp": [{ "exists": "#layout div:has(> div > div > span > button[title='EXT_COOKIE_POLICY'])" }],
8
+ "detectPopup": [{ "visible": "#layout div:has(> div > div > span > button[title='EXT_COOKIE_POLICY'])" }],
9
+ "optIn": [{ "waitForThenClick": "#layout div:has(> span > button[title='EXT_COOKIE_POLICY']) + div button" }],
10
+ "optOut": [{ "waitForThenClick": "#layout div:has(> span > button[title='EXT_COOKIE_POLICY']) + div button" }],
11
+ "test": [{ "cookieContains": "pkobp-cookie-policy=true" }]
12
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "jquery-cookiepolicy",
3
+ "vendorUrl": "https://pkw.gov.pl/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false
8
+ },
9
+ "prehideSelectors": [".js-cp-box"],
10
+ "detectCmp": [{ "exists": ".js-cp-box .js-cp-accept-all-button" }],
11
+ "detectPopup": [{ "visible": ".js-cp-box" }],
12
+ "optIn": [{ "waitForThenClick": ".js-cp-box .js-cp-accept-all-button" }],
13
+ "optOut": [
14
+ {
15
+ "if": { "exists": ".js-cp-box .js-cp-reject-all-button" },
16
+ "then": [{ "waitForThenClick": ".js-cp-box .js-cp-reject-all-button" }],
17
+ "else": [
18
+ { "click": ".js-cp-box .js-cp-settings-button" },
19
+ { "waitForVisible": ".js-cp-box .js-cp-settings-box" },
20
+ {
21
+ "click": ".js-cp-box .new-cp-content-settings-options-one-cookie.on:not(.disabled)",
22
+ "all": true,
23
+ "optional": true
24
+ },
25
+ { "waitForThenClick": ".js-cp-box .js-cp-accept-selected-button" }
26
+ ]
27
+ }
28
+ ],
29
+ "test": [{ "cookieContains": "cookiepolicyinfo_new" }]
30
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "loescher",
3
+ "vendorUrl": "https://www.loescher.it/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://([a-z0-9-]+\\.)?loescher\\.it/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cookieChoice"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookieChoice"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cookieChoice a[onclick*=cookie_accetto]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#cookieChoice a[href='#modalCookieChoice']"
26
+ },
27
+ {
28
+ "waitForVisible": "#modalCookieChoice"
29
+ },
30
+ {
31
+ "click": "#modalCookieChoice input[type=checkbox]:checked",
32
+ "all": true,
33
+ "optional": true
34
+ },
35
+ {
36
+ "click": "#modalCookieChoice button[onclick*=cookie_statistici]"
37
+ }
38
+ ],
39
+ "test": [
40
+ {
41
+ "cookieContains": "loeschertechcookieadv=1"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "meowdb.com",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?meowdb\\.com/"
5
+ },
6
+ "prehideSelectors": ["div[role=region][aria-label='Cookie consent']", "#ncmp__tool .ncmp__banner"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "div[role=region][aria-label='Cookie consent'] button"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "div[role=region][aria-label='Cookie consent']"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "div[role=region][aria-label='Cookie consent'] button"
20
+ },
21
+ {
22
+ "waitFor": "#ncmp__tool .ncmp__banner.ncmp__active",
23
+ "timeout": 3000,
24
+ "optional": true
25
+ },
26
+ {
27
+ "if": {
28
+ "exists": "#ncmp__tool .ncmp__banner.ncmp__active"
29
+ },
30
+ "then": [
31
+ {
32
+ "eval": "EVAL_CONSENTMANAGER_NCMP_ACCEPT"
33
+ }
34
+ ]
35
+ }
36
+ ],
37
+ "optOut": [
38
+ {
39
+ "waitForThenClick": "div[role=region][aria-label='Cookie consent'] button"
40
+ },
41
+ {
42
+ "waitFor": "#ncmp__tool .ncmp__banner.ncmp__active",
43
+ "timeout": 3000,
44
+ "optional": true
45
+ },
46
+ {
47
+ "if": {
48
+ "exists": "#ncmp__tool .ncmp__banner.ncmp__active"
49
+ },
50
+ "then": [
51
+ {
52
+ "wait": 500
53
+ },
54
+ {
55
+ "eval": "EVAL_CONSENTMANAGER_NCMP_REJECT"
56
+ }
57
+ ]
58
+ }
59
+ ],
60
+ "test": [
61
+ {
62
+ "cookieContains": "nia_consent_seen=1"
63
+ }
64
+ ]
65
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "monex-co-jp",
3
+ "vendorUrl": "https://www.monex.co.jp/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?monex\\.co\\.jp/"
6
+ },
7
+ "prehideSelectors": ["#cookie-confirm"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cookie-confirm a[href*='cookieConfirmClose2']"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookie-confirm"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cookie-confirm .cookie-button a"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#cookie-confirm a[href*='cookieConfirmClose2']"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "visible": "#cookie-confirm",
31
+ "check": "none"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "nnk-theme-cookie-bar",
3
+ "prehideSelectors": [".govpl.cookie-bar-container"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": ".govpl.cookie-bar-container .cookiebar-close"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": ".govpl.cookie-bar-container:not(.cookie-bar-hide) .cookiebar-close"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": ".govpl.cookie-bar-container .cookiebar-close"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "waitForThenClick": ".govpl.cookie-bar-container .cookiebar-close"
22
+ }
23
+ ],
24
+ "test": [
25
+ {
26
+ "cookieContains": "cookie-message-bar=true"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "no-transit-consent",
3
+ "vendorUrl": "https://reise.skyss.no/",
4
+ "prehideSelectors": [
5
+ "div.fixed.rounded-2xl.bg-background-secondary:has(> div.flex > button[class*=\"btn--skin-secondary___\"] + button[class*=\"btn--skin-primary___\"])"
6
+ ],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "div.fixed.rounded-2xl.bg-background-secondary:has(> div.flex > button[class*=\"btn--skin-secondary___\"] + button[class*=\"btn--skin-primary___\"])"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "div.fixed.rounded-2xl.bg-background-secondary:has(> div.flex > button[class*=\"btn--skin-secondary___\"] + button[class*=\"btn--skin-primary___\"])"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "div.fixed.rounded-2xl.bg-background-secondary > div.flex > button[class*=\"btn--skin-secondary___\"] + button[class*=\"btn--skin-primary___\"]"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "div.fixed.rounded-2xl.bg-background-secondary > div.flex > button[class*=\"btn--skin-secondary___\"]:first-child"
25
+ }
26
+ ],
27
+ "test": [
28
+ {
29
+ "cookieContains": "r_consents=%7B%22required%22%3Atrue%2C%22analytics%22%3Afalse"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "nperf",
3
+ "vendorUrl": "https://www.nperf.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?nperf\\.com/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#consent.container-banner-cookie .consentOk"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#consent.container-banner-cookie .consentOk"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#consent.container-banner-cookie .consentOk"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": "#consent.container-banner-cookie .consentOk"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "consent="
31
+ }
32
+ ]
33
+ }