@duckduckgo/autoconsent 18.0.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 (157) hide show
  1. package/.github/workflows/ddg-release.yml +6 -3
  2. package/CHANGELOG.md +91 -0
  3. package/dist/addon-firefox/background.bundle.js +2 -1
  4. package/dist/addon-firefox/compact-rules.json +1 -1
  5. package/dist/addon-firefox/content.bundle.js +173 -40
  6. package/dist/addon-firefox/manifest.json +1 -1
  7. package/dist/addon-firefox/rule-index.json +1 -1
  8. package/dist/addon-firefox/rules.json +1 -1
  9. package/dist/addon-mv3/background.bundle.js +2 -1
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/content.bundle.js +173 -40
  12. package/dist/addon-mv3/manifest.json +1 -1
  13. package/dist/addon-mv3/rule-index.json +1 -1
  14. package/dist/addon-mv3/rules.json +1 -1
  15. package/dist/autoconsent.cjs.js +173 -40
  16. package/dist/autoconsent.esm.js +173 -40
  17. package/dist/autoconsent.playwright.js +173 -40
  18. package/dist/autoconsent.standalone.js +174 -41
  19. package/dist/heuristics.cjs.js +175 -32
  20. package/dist/heuristics.mjs +171 -32
  21. package/dist/types/cmps/tiktok.d.ts +0 -2
  22. package/dist/types/eval-snippets.d.ts +1 -0
  23. package/dist/types/heuristic-patterns.d.ts +4 -0
  24. package/docs/heuristic-detection.md +1 -0
  25. package/lib/cmps/evidon.ts +5 -4
  26. package/lib/cmps/tiktok.ts +0 -5
  27. package/lib/eval-snippets.ts +1 -0
  28. package/lib/heuristic-literals.ts +52 -5
  29. package/lib/heuristic-negatives.ts +15 -1
  30. package/lib/heuristic-patterns.ts +101 -21
  31. package/package.json +1 -1
  32. package/rules/autoconsent/aa-cookie-banner.json +2 -2
  33. package/rules/autoconsent/acconsento.json +45 -0
  34. package/rules/autoconsent/appconsent.json +8 -8
  35. package/rules/autoconsent/askas.json +39 -0
  36. package/rules/autoconsent/atomstore.json +44 -0
  37. package/rules/autoconsent/b1ng-cc.json +23 -0
  38. package/rules/autoconsent/bgk-pl.json +18 -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/c-cookie-message.json +9 -0
  43. package/rules/autoconsent/cookie-agree-banner.json +9 -0
  44. package/rules/autoconsent/cookie-box-notice.json +41 -0
  45. package/rules/autoconsent/cookieinfo.json +1 -1
  46. package/rules/autoconsent/cookies-and-content-security-policy.json +45 -0
  47. package/rules/autoconsent/dfactory-cookie-notice.json +13 -1
  48. package/rules/autoconsent/didomi.json +7 -1
  49. package/rules/autoconsent/facebook.json +16 -6
  50. package/rules/autoconsent/gdpr-jp-notice.json +25 -0
  51. package/rules/autoconsent/gdpsystem.json +21 -0
  52. package/rules/autoconsent/help-ch.json +25 -0
  53. package/rules/autoconsent/hmgroup-turbocookie.json +18 -0
  54. package/rules/autoconsent/hmrc-tracking-consent.json +40 -0
  55. package/rules/autoconsent/imyfone.json +25 -0
  56. package/rules/autoconsent/interface-medien-gebaeck.json +33 -0
  57. package/rules/autoconsent/invision-guest-terms.json +14 -0
  58. package/rules/autoconsent/ipkobiznes.pl.json +12 -0
  59. package/rules/autoconsent/jquery-cookiepolicy.json +30 -0
  60. package/rules/autoconsent/loescher.json +44 -0
  61. package/rules/autoconsent/meowdb.json +65 -0
  62. package/rules/autoconsent/meta-cookie-dialog-v2.json +40 -0
  63. package/rules/autoconsent/monex-co-jp.json +34 -0
  64. package/rules/autoconsent/nnk-theme-cookie-bar.json +29 -0
  65. package/rules/autoconsent/no-transit-consent.json +32 -0
  66. package/rules/autoconsent/nperf.json +33 -0
  67. package/rules/autoconsent/okayama-kanko-jp.json +31 -0
  68. package/rules/autoconsent/oko-press.json +23 -0
  69. package/rules/autoconsent/ometv-pl.json +33 -0
  70. package/rules/autoconsent/pfron-gov-pl.json +37 -0
  71. package/rules/autoconsent/pl-bip-cookies.json +25 -0
  72. package/rules/autoconsent/prestashop-advanced-cookie-banner.json +49 -0
  73. package/rules/autoconsent/qudosbank-com-au.json +14 -0
  74. package/rules/autoconsent/reverb-gdpr-nag.json +18 -0
  75. package/rules/autoconsent/reverb.json +24 -0
  76. package/rules/autoconsent/roblox-creator-hub.json +48 -0
  77. package/rules/autoconsent/rws-app.json +13 -0
  78. package/rules/autoconsent/san-tatsu.json +32 -0
  79. package/rules/autoconsent/sda-it.json +37 -0
  80. package/rules/autoconsent/seria-group.json +35 -0
  81. package/rules/autoconsent/shoper.json +10 -0
  82. package/rules/autoconsent/silver-nu.json +31 -0
  83. package/rules/autoconsent/soleil-sitevision-cookie-message.json +32 -0
  84. package/rules/autoconsent/stellantis-psa.json +18 -1
  85. package/rules/autoconsent/surfshark.json +21 -0
  86. package/rules/autoconsent/tcl.json +50 -0
  87. package/rules/autoconsent/tuki-cookieterms.json +20 -0
  88. package/rules/autoconsent/weblegal.json +10 -0
  89. package/rules/autoconsent/weblication.json +38 -0
  90. package/rules/autoconsent/x28-privacy-settings.json +18 -0
  91. package/rules/autoconsent/zoho.json +23 -0
  92. package/rules/compact-rules.json +1 -1
  93. package/rules/rule-index.json +1 -1
  94. package/rules/rules.json +1 -1
  95. package/tests/aa-cookie-banner.spec.ts +1 -1
  96. package/tests/acconsento.spec.ts +8 -0
  97. package/tests/appconsent.spec.ts +1 -1
  98. package/tests/askas.spec.ts +9 -0
  99. package/tests/atomstore.spec.ts +9 -0
  100. package/tests/b1ng-cc.spec.ts +3 -0
  101. package/tests/bgk-pl.spec.ts +5 -0
  102. package/tests/blogger-cookie-notice.spec.ts +9 -0
  103. package/tests/brainshare.spec.ts +3 -0
  104. package/tests/brandsforstudents.ch.spec.ts +6 -0
  105. package/tests/c-cookie-message.spec.ts +9 -0
  106. package/tests/cookie-agree-banner.spec.ts +3 -0
  107. package/tests/cookie-box-notice.spec.ts +10 -0
  108. package/tests/cookies-and-content-security-policy.spec.ts +16 -0
  109. package/tests/didomi.spec.ts +8 -0
  110. package/tests/evidon.spec.ts +2 -1
  111. package/tests/facebook.spec.ts +1 -1
  112. package/tests/gdpr-jp-notice.spec.ts +3 -0
  113. package/tests/gdpsystem.spec.ts +3 -0
  114. package/tests/gravito.spec.ts +6 -0
  115. package/tests/help-ch.spec.ts +14 -0
  116. package/tests/hmgroup-turbocookie.spec.ts +7 -0
  117. package/tests/hmrc-tracking-consent.spec.ts +7 -0
  118. package/tests/imyfone.spec.ts +9 -0
  119. package/tests/interface-medien-gebaeck.spec.ts +13 -0
  120. package/tests/invision-guest-terms.spec.ts +10 -0
  121. package/tests/ipkobiznes.pl.spec.ts +3 -0
  122. package/tests/jquery-cookiepolicy.spec.ts +10 -0
  123. package/tests/loescher.spec.ts +5 -0
  124. package/tests/meowdb.spec.ts +3 -0
  125. package/tests/meta-cookie-dialog-v2.spec.ts +10 -0
  126. package/tests/monex-co-jp.spec.ts +3 -0
  127. package/tests/nnk-theme-cookie-bar.spec.ts +3 -0
  128. package/tests/no-transit-consent.spec.ts +3 -0
  129. package/tests/nperf.spec.ts +3 -0
  130. package/tests/okayama-kanko-jp.spec.ts +3 -0
  131. package/tests/oko-press.spec.ts +3 -0
  132. package/tests/ometv-pl.spec.ts +4 -0
  133. package/tests/pfron-gov-pl.spec.ts +3 -0
  134. package/tests/pl-bip-cookies.spec.ts +3 -0
  135. package/tests/prestashop-advanced-cookie-banner.spec.ts +9 -0
  136. package/tests/qudosbank-com-au.spec.ts +3 -0
  137. package/tests/reverb.spec.ts +7 -0
  138. package/tests/roblox-creator-hub.spec.ts +5 -0
  139. package/tests/rws-app.spec.ts +15 -0
  140. package/tests/san-tatsu.spec.ts +3 -0
  141. package/tests/sda-it.spec.ts +7 -0
  142. package/tests/seria-group.spec.ts +3 -0
  143. package/tests/shoper.spec.ts +3 -0
  144. package/tests/silver-nu.spec.ts +3 -0
  145. package/tests/soleil-sitevision-cookie-message.spec.ts +8 -0
  146. package/tests/stellantis-psa.spec.ts +2 -0
  147. package/tests/surfshark.spec.ts +3 -0
  148. package/tests/tcl.spec.ts +9 -0
  149. package/tests/tiktok.spec.ts +2 -2
  150. package/tests/tuki-cookieterms.spec.ts +8 -0
  151. package/tests/weblegal.spec.ts +8 -0
  152. package/tests/weblication.spec.ts +9 -0
  153. package/tests/x28-privacy-settings.spec.ts +4 -0
  154. package/tests/zoho.spec.ts +5 -0
  155. package/tests-wtr/heuristics/heuristics-utils.test.ts +275 -0
  156. package/rules/generated/auto_GB_capcut.com_0.json +0 -28
  157. package/tests/generated/auto_GB_capcut.com_0.spec.ts +0 -2
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "atomstore",
3
+ "vendorUrl": "https://www.atomstore.pl/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false
8
+ },
9
+ "prehideSelectors": ["#RodoCookiesInfoFirst", "#RodoCookiesInit"],
10
+ "detectCmp": [
11
+ {
12
+ "exists": "#RodoCookiesInfoFirst [data-type=\"disable-cookies-button\"], #RodoCookiesInit [data-type=\"disable-cookies-button\"], #RodoCookiesInfo [data-type=\"disable-cookies-button\"]"
13
+ }
14
+ ],
15
+ "detectPopup": [{ "visible": "#RodoCookiesInfoFirst.in, #RodoCookiesInit.in, #RodoCookiesInfo.in", "check": "any" }],
16
+ "optIn": [
17
+ {
18
+ "if": { "exists": "#RodoCookiesInfoFirst.in" },
19
+ "then": [{ "waitForThenClick": "#RodoCookiesInfoFirst [data-type=\"accept-cookies-button\"]" }],
20
+ "else": [
21
+ {
22
+ "if": { "exists": "#RodoCookiesInit.in" },
23
+ "then": [{ "waitForThenClick": "#RodoCookiesInit [data-type=\"accept-cookies-button\"]" }],
24
+ "else": [{ "waitForThenClick": "#RodoCookiesInfo [data-type=\"accept-cookies-button\"]" }]
25
+ }
26
+ ]
27
+ }
28
+ ],
29
+ "optOut": [
30
+ {
31
+ "if": { "exists": "#RodoCookiesInfoFirst.in" },
32
+ "then": [{ "waitForThenClick": "#RodoCookiesInfoFirst [data-type=\"disable-cookies-button\"]" }],
33
+ "else": [
34
+ {
35
+ "if": { "exists": "#RodoCookiesInit.in" },
36
+ "then": [{ "waitForThenClick": "#RodoCookiesInit [data-type=\"disable-cookies-button\"]" }],
37
+ "else": [{ "waitForThenClick": "#RodoCookiesInfo [data-type=\"disable-cookies-button\"]" }]
38
+ }
39
+ ]
40
+ },
41
+ { "waitForVisible": "#RodoCookiesInfoFirst.in, #RodoCookiesInit.in, #RodoCookiesInfo.in", "check": "none" }
42
+ ],
43
+ "test": [{ "cookieContains": "AtomStore[MARKETING_COOKIES_ACCEPTED]=0" }]
44
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "b1ng-cc",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?(giorni-festivi\\.it|feiertag\\.co|dia-festivo\\.es)/"
5
+ },
6
+ "prehideSelectors": ["#b1ng-cc"],
7
+ "detectCmp": [{ "exists": "#b1ng-cc .b1ng-cc-no" }],
8
+ "detectPopup": [{ "visible": "#b1ng-cc .b1ng-cc-no" }],
9
+ "optIn": [{ "waitForThenClick": "#b1ng-cc .b1ng-cc-yes" }],
10
+ "optOut": [
11
+ { "waitForThenClick": "#b1ng-cc .b1ng-cc-no" },
12
+ { "waitFor": ".fc-cta-do-not-consent,.fc-cta-manage-options,.fc-li-only-placeholder", "timeout": 5000, "optional": true },
13
+ {
14
+ "if": { "exists": ".fc-cta-do-not-consent,.fc-cta-manage-options,.fc-li-only-placeholder" },
15
+ "then": [
16
+ { "click": ".fc-cta-do-not-consent,.fc-cta-manage-options", "optional": true },
17
+ { "click": ".fc-preference-consent:checked,.fc-preference-legitimate-interest:checked", "all": true, "optional": true },
18
+ { "click": ".fc-confirm-choices", "optional": true }
19
+ ]
20
+ }
21
+ ],
22
+ "test": [{ "cookieContains": "b1ng_consent=n" }]
23
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "bgk.pl",
3
+ "vendorUrl": "https://www.bgk.pl/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?bgk\\.pl/"
6
+ },
7
+ "prehideSelectors": [".cc-window[aria-describedby=\"cookieheading\"]"],
8
+ "detectCmp": [{ "exists": ".cc-window .dp--cookie-check" }],
9
+ "detectPopup": [{ "visible": ".cc-window:not(.cc-invisible) .cc-compliance" }],
10
+ "optIn": [{ "waitForThenClick": ".cc-window .cc-dismiss" }],
11
+ "optOut": [
12
+ { "waitForThenClick": ".cc-window .cc-settings", "retry": 3 },
13
+ { "waitForVisible": ".cc-window .dp--cookie-check" },
14
+ { "click": ".cc-window .dp--check-box:checked:not(:disabled)", "all": true, "optional": true },
15
+ { "waitForThenClick": ".cc-window .cc-allow" }
16
+ ],
17
+ "test": [{ "cookieContains": "\"dp--cookie-marketing\":false" }]
18
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "blogger-cookie-notice",
3
+ "vendorUrl": "https://www.blogger.com/go/blogspot-cookies",
4
+ "prehideSelectors": ["#cookieChoiceInfo.cookie-choices-info"],
5
+ "detectCmp": [{ "exists": "#cookieChoiceInfo.cookie-choices-info #cookieChoiceDismiss" }],
6
+ "detectPopup": [{ "visible": "#cookieChoiceInfo.cookie-choices-info" }],
7
+ "optIn": [{ "waitForThenClick": "#cookieChoiceInfo #cookieChoiceDismiss" }],
8
+ "optOut": [{ "waitForThenClick": "#cookieChoiceInfo #cookieChoiceDismiss" }],
9
+ "test": [{ "cookieContains": "displayCookieNotice=y" }]
10
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "brainshare",
3
+ "runContext": {
4
+ "urlPattern": "^https?://([\\w-]+\\.)?brainshare\\.pl/"
5
+ },
6
+ "prehideSelectors": ["div.cookiePolicy"],
7
+ "detectCmp": [{ "exists": "div.cookiePolicy > span[href='#']" }],
8
+ "detectPopup": [{ "visible": "div.cookiePolicy" }],
9
+ "optIn": [{ "waitForThenClick": "div.cookiePolicy > span[href='#']" }],
10
+ "optOut": [{ "waitForThenClick": "div.cookiePolicy > span[href='#']" }],
11
+ "test": [{ "cookieContains": "cookiePol=1" }]
12
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "brandsforstudents.ch",
3
+ "runContext": { "urlPattern": "^https?://(www\\.)?brandsfor(students|employees)\\.ch/" },
4
+ "prehideSelectors": [".cookiebanner-container"],
5
+ "detectCmp": [{ "exists": ".cookiebanner-container [data-test=adjust-cookies]" }],
6
+ "detectPopup": [{ "visible": ".cookiebanner-container" }],
7
+ "optIn": [{ "waitForThenClick": ".cookiebanner-container .buttons-container button:not([data-test=adjust-cookies])" }],
8
+ "optOut": [
9
+ { "waitForThenClick": ".cookiebanner-container [data-test=adjust-cookies]" },
10
+ { "waitFor": ".cookiebanner-container .checkbox-container" },
11
+ {
12
+ "click": ".cookiebanner-container .checkbox-container input[type=checkbox]:checked:not(:disabled)",
13
+ "all": true,
14
+ "optional": true
15
+ },
16
+ { "waitForThenClick": ".cookiebanner-container .buttons-container button:not([data-test=adjust-cookies])" }
17
+ ],
18
+ "test": [{ "cookieContains": "cookies-accepted=false" }]
19
+ }
@@ -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,18 @@
1
+ {
2
+ "name": "hmgroup-turbocookie",
3
+ "prehideSelectors": [".cookie-consent-popup"],
4
+ "detectCmp": [{ "exists": ".cookie-consent-popup #banner-accept-btn" }],
5
+ "detectPopup": [{ "visible": ".cookie-consent-popup" }],
6
+ "optIn": [{ "waitForThenClick": ".cookie-consent-popup #banner-accept-btn" }],
7
+ "optOut": [
8
+ {
9
+ "if": { "exists": ".cookie-consent-popup #banner-reject-btn" },
10
+ "then": [{ "waitForThenClick": ".cookie-consent-popup #banner-reject-btn" }],
11
+ "else": [
12
+ { "waitForThenClick": ".cookie-consent-popup #banner-cookie-setting-btn" },
13
+ { "waitForThenClick": ".settings-page #settings-only-required-btn" }
14
+ ]
15
+ }
16
+ ],
17
+ "test": [{ "wait": 500 }, { "cookieContains": "groups=C0001:1,C0002:0,C0003:0,C0004:0" }]
18
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "hmrc-tracking-consent",
3
+ "prehideSelectors": [".cbanner-govuk-cookie-banner"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": ".cbanner-govuk-cookie-banner button[value=reject]"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": ".cbanner-govuk-cookie-banner button[value=reject]"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": ".cbanner-govuk-cookie-banner button[value=accept]"
17
+ },
18
+ {
19
+ "waitForThenClick": ".cbanner-govuk-cookie-banner button:not([value])",
20
+ "timeout": 3000,
21
+ "optional": true
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": ".cbanner-govuk-cookie-banner button[value=reject]"
27
+ },
28
+ {
29
+ "comment": "a confirmation message with a hide button replaces the banner after the choice",
30
+ "waitForThenClick": ".cbanner-govuk-cookie-banner button:not([value])",
31
+ "timeout": 3000,
32
+ "optional": true
33
+ }
34
+ ],
35
+ "test": [
36
+ {
37
+ "cookieContains": "%22measurement%22:false"
38
+ }
39
+ ]
40
+ }
@@ -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
+ }