@duckduckgo/autoconsent 18.2.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 (114) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/content.bundle.js +92 -36
  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 +92 -36
  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 +92 -36
  13. package/dist/autoconsent.esm.js +92 -36
  14. package/dist/autoconsent.playwright.js +92 -36
  15. package/dist/autoconsent.standalone.js +93 -37
  16. package/dist/heuristics.cjs.js +92 -38
  17. package/dist/heuristics.mjs +92 -37
  18. package/dist/types/heuristic-patterns.d.ts +0 -1
  19. package/lib/heuristic-literals.ts +39 -12
  20. package/lib/heuristic-negatives.ts +0 -9
  21. package/lib/heuristic-patterns.ts +54 -16
  22. package/package.json +1 -1
  23. package/rules/autoconsent/adaptivemedia.json +30 -0
  24. package/rules/autoconsent/adeac-jp.json +29 -0
  25. package/rules/autoconsent/agenziaentrate-geoportale.json +35 -0
  26. package/rules/autoconsent/alertnotification-alert-bar.json +27 -0
  27. package/rules/autoconsent/amasty-gdpr-hyva.json +6 -6
  28. package/rules/autoconsent/betheme.json +10 -0
  29. package/rules/autoconsent/biblia-online.pl.json +40 -0
  30. package/rules/autoconsent/bitauto.json +57 -0
  31. package/rules/autoconsent/bt-com-au.json +13 -0
  32. package/rules/autoconsent/calclife.net.json +43 -0
  33. package/rules/autoconsent/casino-guru.json +28 -0
  34. package/rules/autoconsent/code3-cookies-consent.json +48 -0
  35. package/rules/autoconsent/complianz-opt-out.json +7 -2
  36. package/rules/autoconsent/cookie-use-notice.json +12 -0
  37. package/rules/autoconsent/cookieinfo-zamknij.json +30 -0
  38. package/rules/autoconsent/cookiesbanner-preference.json +14 -0
  39. package/rules/autoconsent/cookiesmodal-pl.json +18 -0
  40. package/rules/autoconsent/creditunionsa.json +12 -0
  41. package/rules/autoconsent/cstudios.json +35 -0
  42. package/rules/autoconsent/dandomain.json +41 -0
  43. package/rules/autoconsent/datezone.json +22 -0
  44. package/rules/autoconsent/dlibra.json +32 -0
  45. package/rules/autoconsent/dnb.json +30 -0
  46. package/rules/autoconsent/e-file.json +44 -0
  47. package/rules/autoconsent/erli-pl.json +36 -0
  48. package/rules/autoconsent/fellow-pl.json +16 -0
  49. package/rules/autoconsent/fn-se.json +17 -0
  50. package/rules/autoconsent/icom-co-jp.json +34 -0
  51. package/rules/autoconsent/intermedia-cms-fsi.json +30 -0
  52. package/rules/autoconsent/lieder.net.json +13 -0
  53. package/rules/autoconsent/menti-com.json +37 -0
  54. package/rules/autoconsent/mos-cudzoziemcy-gov-pl.json +29 -0
  55. package/rules/autoconsent/octoparse.json +33 -0
  56. package/rules/autoconsent/oresundstag.json +40 -0
  57. package/rules/autoconsent/renaud-bray.json +44 -0
  58. package/rules/autoconsent/saos-org-pl.json +35 -0
  59. package/rules/autoconsent/shopgold.json +83 -0
  60. package/rules/autoconsent/shueisha-hpplus.json +27 -0
  61. package/rules/autoconsent/synergy-net-au.json +33 -0
  62. package/rules/autoconsent/teeshoppen.json +42 -0
  63. package/rules/autoconsent/tullys-jp.json +11 -0
  64. package/rules/autoconsent/worldbank.json +5 -5
  65. package/rules/autoconsent/wuerth.json +57 -0
  66. package/rules/autoconsent/ynjn.json +34 -0
  67. package/rules/compact-rules.json +1 -1
  68. package/rules/rule-index.json +1 -1
  69. package/rules/rules.json +1 -1
  70. package/tests/adaptivemedia.spec.ts +3 -0
  71. package/tests/adeac-jp.spec.ts +3 -0
  72. package/tests/agenziaentrate-geoportale.spec.ts +5 -0
  73. package/tests/alertnotification-alert-bar.spec.ts +11 -0
  74. package/tests/amasty-gdpr-hyva.spec.ts +1 -0
  75. package/tests/betheme.spec.ts +9 -0
  76. package/tests/biblia-online.pl.spec.ts +3 -0
  77. package/tests/bitauto.spec.ts +3 -0
  78. package/tests/bt-com-au.spec.ts +3 -0
  79. package/tests/calclife.net.spec.ts +3 -0
  80. package/tests/casino-guru.spec.ts +15 -0
  81. package/tests/code3-cookies-consent.spec.ts +8 -0
  82. package/tests/complianz-opt-out.spec.ts +13 -3
  83. package/tests/cookie-use-notice.spec.ts +6 -0
  84. package/tests/cookieinfo-zamknij.spec.ts +3 -0
  85. package/tests/cookiesbanner-preference.spec.ts +8 -0
  86. package/tests/cookiesmodal-pl.spec.ts +3 -0
  87. package/tests/creditunionsa.spec.ts +3 -0
  88. package/tests/cstudios.spec.ts +3 -0
  89. package/tests/dandomain.spec.ts +18 -0
  90. package/tests/datezone.spec.ts +3 -0
  91. package/tests/dlibra.spec.ts +8 -0
  92. package/tests/dnb.spec.ts +5 -0
  93. package/tests/e-file.spec.ts +9 -0
  94. package/tests/erli-pl.spec.ts +4 -0
  95. package/tests/fellow-pl.spec.ts +5 -0
  96. package/tests/fn-se.spec.ts +3 -0
  97. package/tests/icom-co-jp.spec.ts +3 -0
  98. package/tests/intermedia-cms-fsi.spec.ts +8 -0
  99. package/tests/lieder.net.spec.ts +3 -0
  100. package/tests/menti-com.spec.ts +3 -0
  101. package/tests/mos-cudzoziemcy-gov-pl.spec.ts +3 -0
  102. package/tests/octoparse.spec.ts +6 -0
  103. package/tests/oresundstag.spec.ts +3 -0
  104. package/tests/renaud-bray.spec.ts +5 -0
  105. package/tests/saos-org-pl.spec.ts +3 -0
  106. package/tests/shopgold.spec.ts +3 -0
  107. package/tests/shueisha-hpplus.spec.ts +3 -0
  108. package/tests/synergy-net-au.spec.ts +8 -0
  109. package/tests/teeshoppen.spec.ts +7 -0
  110. package/tests/tullys-jp.spec.ts +3 -0
  111. package/tests/worldbank.spec.ts +1 -0
  112. package/tests/wuerth.spec.ts +8 -0
  113. package/tests/ynjn.spec.ts +3 -0
  114. package/tests-wtr/heuristics/heuristics-utils.test.ts +82 -4
@@ -6,7 +6,6 @@ export type DetectPattern = RegExp | { pattern: RegExp; input: HeuristicInput };
6
6
  export const patternOf = (p: DetectPattern): RegExp => (p instanceof RegExp ? p : p.pattern);
7
7
  // detect patterns that context negatives refer to
8
8
  export const BY_CONTINUING_PRIVACY = /(?:by continuing.{0,100}privacy)|(?:privacy.{0,100}by continuing)/gi;
9
- export const ACCEPT_ALL = /accept all/gi;
10
9
  export const USE_OF_COOKIES = /use of cookies/gi;
11
10
  export const UTILISATION_DES_COOKIES = /utilisation.{0,100}des.{0,100}cookies/gi;
12
11
  export const ACCEPTEZ_UTILISATION = /acceptez.{0,100}l.{0,100}utilisation/gi;
@@ -22,12 +21,23 @@ export const DE_SITE_USES_COOKIES = /\b(?:seite|site)\b.{0,100}\b(?:nutzt|benutz
22
21
  // TODO: check for false positive detections per pattern
23
22
  // these patterns are matched against popup-like elements or full document text to detect unknown cookie popups
24
23
  export const DETECT_PATTERNS: DetectPattern[] = [
24
+ // no bare "accept all" / "reject all" labels in any language: page content with bulk actions has them too
25
25
  /accept cookies/gi,
26
- ACCEPT_ALL,
27
- /reject all/gi,
28
26
  /only necessary cookies/gi, // "only necessary" is probably too broad
29
27
  /(?:by continuing.{0,100}cookie)|(?:cookie.{0,100}by continuing)/gi,
30
28
  /\bby using (?:this|our) (?:web)?site\b.{0,100}cookie/gi,
29
+ // "By clicking 'Accept all', you agree to the storing of cookies …"
30
+ /\bby clicking\b.{0,80}?\byou (?:allow|accept|agree|consent)\w*\b.{0,100}?\b(?:cookies?|technologies)\b/gi,
31
+ // button labels count only with the cookie noun: bare "accept all" / "reject all" also label bulk actions in page content
32
+ /accept all cookies/gi,
33
+ /\breject non-(?:essential|necessary)\b/gi,
34
+ /\bwhich (?:types? of )?cookies (?:that )?you (?:accept|allow|want)\b/gi,
35
+ /\bstores? cookies on your (?:device|computer|browser)\b/gi,
36
+ /\byour consent to (?:collect|use|store|process|set)\b/gi,
37
+ /\byou agree to (?:our |the )?cookie use\b/gi,
38
+ /\bblocking some types of cookies\b/gi,
39
+ // consent management platform footers
40
+ /\bpowered by usercentrics\b|\b(?:realisiert mit|realized with) klaro\b/gi,
31
41
  BY_CONTINUING_PRIVACY,
32
42
  // up to two qualifiers are common: "optional", "essential", "analytics", "google analytics", "third party", ...
33
43
  // singular too, but not "cookie-free"
@@ -97,17 +107,19 @@ export const DETECT_PATTERNS: DetectPattern[] = [
97
107
  /stocker.{0,100}et.{0,100}ou.{0,100}accéder/gi,
98
108
  /consentement.{0,100}à.{0,100}tout.{0,100}moment/gi,
99
109
  /votre.{0,100}consentement/gi,
100
- /accepter.{0,100}tout/gi,
101
110
  UTILISATION_DES_COOKIES,
102
111
  /cookies.{0,100}ou.{0,100}technologies/gi,
103
112
  ACCEPTEZ_UTILISATION,
104
113
  /continuer sans accepter/gi,
105
- /tout refuser/gi,
106
114
  /(?:refuser|rejeter) tous les cookies/gi,
107
115
  // not "je refuse d'…" in a headline
108
116
  /je refuse(?! d['’e])/gi,
109
117
  /refuser et continuer/gi,
110
- /refuser les cookies/gi,
118
+ /\ben cliquant sur\b.{0,80}?\bvous (?:acceptez|consentez)\b.{0,60}?\b(?:cookies|traceurs)\b/gi,
119
+ /\bvous consentez\b.{0,60}\bcookies\b/gi,
120
+ /\baccepter ou refuser (?:\S+ ){0,3}cookies\b/gi,
121
+ /\bles cookies nous (?:sont|permettent|aident)\b/gi,
122
+ /\btraceurs (?:optionnels|publicitaires|non essentiels)\b/gi,
111
123
  /seulement nécessaires/gi,
112
124
  /je désactive les finalités non essentielles/gi,
113
125
  /cookies essentiels uniquement/gi,
@@ -117,7 +129,8 @@ export const DETECT_PATTERNS: DetectPattern[] = [
117
129
  /\bconsentez à l.utilisation (?:de |des )?cookies\b|\bdépôt (?:de|des) cookies\b/gi,
118
130
  /\bles cookies nous permettent\b|\bnos partenaires et nous(?:-mêmes)?\b/gi,
119
131
  /\baccepter (?:&|et) fermer\b/gi,
120
- /\b(?:on utilise|nous utilisons)(?: \S+)? cookies\b/gi,
132
+ // up to two qualifiers, as in English: "nous utilisons nos propres cookies", "nous utilisons des cookies tiers"
133
+ /\b(?:on utilise|nous utilisons)(?: \S+){0,2} cookies\b/gi,
121
134
  /\ben (?:naviguant|poursuivant)\b.{0,100}cookies/gi,
122
135
  /(?:en continuant.{0,100}cookie)|(?:cookie.{0,100}en continuant)/gi,
123
136
  /\ben (?:naviguant|poursuivant|continuant)\b.{0,100}confidentialité/gi,
@@ -135,7 +148,6 @@ export const DETECT_PATTERNS: DetectPattern[] = [
135
148
  /und.{0,100}ähnliche.{0,100}technologien/gi,
136
149
  /cookies.{0,100}wir.{0,100}verwenden/gi,
137
150
 
138
- /alles?.{0,100}ablehnen/gi,
139
151
  /(?:nur|nicht).{0,100}(?:zusätzliche|essenzielle|funktionale|notwendige|erforderliche).{0,100}(?:cookies|akzeptieren|erlauben|ablehnen)/gi,
140
152
  /weiter.{0,100}(?:ohne|mit).{0,100}(?:einwilligung|zustimmung|cookies)/gi,
141
153
  /(?:cookies|einwilligung).{0,100}ablehnen/gi,
@@ -148,7 +160,7 @@ export const DETECT_PATTERNS: DetectPattern[] = [
148
160
  /\b(?:werden|wird) (?:\S+ ){0,3}cookies (?:verwendet|eingesetzt|gesetzt|genutzt)\b/gi,
149
161
  /\bcookies? zum einsatz\b|\beinsatz von cookies\b/gi,
150
162
  /\beinverstanden\b.{0,60}\bcookies\b|\bcookies\b.{0,80}\beinverstanden\b/gi,
151
- /\b(?:alle|alles) (?:cookies |optionalen \S+ )?(?:akzeptieren|zulassen|erlauben|zustimmen)\b/gi,
163
+ /\b(?:alle|alles) (?:cookies|optionalen \S+) (?:akzeptieren|zulassen|erlauben|zustimmen)\b/gi,
152
164
  /\bzustimmen und weiter\b|\bweiter,? ohne zu (?:akzeptieren|zustimmen)\b/gi,
153
165
  /\b(?:einwilligung|zustimmung) (?:zu|zur|in die) (?:\S+ )?cookies\b|\bcookie-(?:zustimmung|einwilligung)\b/gi,
154
166
  /\btracking-technologien\b/gi,
@@ -166,24 +178,39 @@ export const DETECT_PATTERNS: DetectPattern[] = [
166
178
  /\b(?:analyse|statistik)-?cookies\b/gi,
167
179
  /\b(?:marketing|tracking)-?cookies\b/gi,
168
180
  /\bcookies oder (?:andere|ähnliche)/gi,
181
+ // "Wenn Sie auf „Alle akzeptieren“ klicken, stimmen Sie …", "Durch Klicken auf „Alle akzeptieren“ gestatten Sie …"
182
+ /\b(?:indem sie auf|wenn sie auf|durch (?:das )?klicken auf)\b.{0,80}?\b(?:stimmen sie|gestatten sie|willigen sie|erklären sie sich)\b/gi,
183
+ /\bbenötigen wir (?:ihre|deine) (?:einwilligung|zustimmung)\b/gi,
184
+ {
185
+ pattern:
186
+ /\b(?:einwilligung|zustimmung)\b.{0,60}\b(?:jederzeit|widerrufen)\b|\bmit (?:ihrer|deiner) (?:einwilligung|zustimmung)\b/gi,
187
+ input: 'popup',
188
+ },
189
+ /\bwelche cookies sie (?:zulassen|akzeptieren)\b/gi,
190
+ /\bcookies?\b.{0,60}\bauf (?:ihrem|deinem) (?:gerät|endgerät)\b/gi,
191
+ /\bin form von cookies\b|\bblockierung bestimmter arten von cookies\b/gi,
192
+ /\b(?:notwendige|essenzielle|funktionale) cookies\b/gi,
193
+ // innerText can put every word on its own line
194
+ /\bwir\s+(?:verwenden|nutzen|setzen)\s+cookies\b/gi,
195
+ /\bzwecken und anbietern\b/gi,
196
+ /\bweiter ohne akzeptanz\b/gi,
169
197
 
170
198
  // NL
171
199
  GEBRUIK_VAN_COOKIES,
172
200
  /(?:we|wij).{0,100}gebruiken.{0,100}cookies.{0,100}om/gi,
173
201
  /cookies.{0,100}en.{0,100}vergelijkbare/gi,
174
202
 
175
- /(?:alles|cookies).{0,100}(?:afwijzen|weigeren|verwerpen)/gi,
203
+ /cookies.{0,100}(?:afwijzen|weigeren|verwerpen)/gi,
176
204
  /alleen.{0,100}noodzakelijke?\b/gi,
177
205
  /cookies weigeren/gi,
178
- /weiger.{0,100}(?:cookies|alles)/gi,
206
+ /weiger.{0,100}cookies/gi,
179
207
  /doorgaan zonder (?:te accepteren|akkoord te gaan)/gi,
180
208
  /alleen.{0,100}(?:optionele|functionele|functioneel|noodzakelijke|essentiële|standaard).{0,100}cookies/gi,
181
- /wijs alles af/gi,
182
209
  /\b(?:op te slaan en\/of te (?:raadplegen|openen|lezen)|opslaan en\/of (?:openen|raadplegen|lezen)|slaan informatie\b.{0,60}\bop en\/of)\b/gi,
183
210
  /\bonze partners vragen om (?:jouw|uw|je) toestemming\b/gi,
184
211
  /\bwij en onze (?:\d+ )?partners\b/gi,
185
212
  /\b(?:gebruiken|gebruikt|plaatsen|plaatst)\b(?: \S+){0,3} cookies\b/gi,
186
- /\baccepteer (?:alles|alle cookies)\b/gi,
213
+ /\baccepteer alle cookies\b/gi,
187
214
  // Dutch words only: "tracking cookies" and "marketing cookies" are also English prose and footer links
188
215
  /\b(?:analytische|functionele|essentiële|noodzakelijke) cookies\b/gi,
189
216
  /(?:te blijven gebruiken.{0,100}cookie)|(?:cookie.{0,100}te blijven gebruiken)/gi,
@@ -192,6 +219,9 @@ export const DETECT_PATTERNS: DetectPattern[] = [
192
219
  /\bgebruiken (?:we|wij) cookies\b/gi,
193
220
  /\bplaatsen van\b.{0,50}cookies/gi,
194
221
  /\bte blijven gebruiken\b.{0,100}privacy/gi,
222
+ /\bdoor op\b.{0,60}?\bte klikken\b.{0,40}?\bga(?:at)? (?:u|je) akkoord\b/gi,
223
+ /\balle cookies accepteren\b/gi,
224
+ /\btoestemming voor (?:\S+ ){0,3}cookies\b/gi,
195
225
 
196
226
  // Spanish (ES)
197
227
  /(si|al) contin[úu]a[sr]?( navegando)?.{0,100} cookie/gi,
@@ -212,12 +242,17 @@ export const DETECT_PATTERNS: DetectPattern[] = [
212
242
  /\b(?:almacenar|almacenamos) y\/o (?:acceder|accedemos)\b/gi,
213
243
  /\bnuestros socios solicitan su consentimiento\b/gi,
214
244
  /\b(?:tanto nosotros como|nosotros y) nuestros (?:\d+ )?socios\b/gi,
215
- /\b(?:aceptar|rechazar) todas\b|\bcontinuar sin aceptar\b|\bsolo las necesarias\b/gi,
245
+ /\bcontinuar sin aceptar\b|\bsolo las necesarias\b/gi,
216
246
  /\bacept\w* (?:\S+ ){0,3}uso de (?:las )?cookies\b/gi,
217
247
  /\bcookies (?:técnicas|analíticas|propias|de terceros|opcionales|necesarias)\b/gi,
218
248
  /\blas cookies nos (?:ayudan|permiten)\b/gi,
219
249
  /\b(?:instalamos|empleamos)\b(?: \S+){0,4} cookies\b/gi,
220
250
  /\bacept(?:a|ar|as)? (?:el uso de |las )?(?:\S+ )?cookies\b|\bnecesitamos usar cookies\b/gi,
251
+ /\bal hacer clic en\b.{0,80}?\bcookies\b/gi,
252
+ /\b(?:aceptar|rechazar) todas las cookies\b/gi,
253
+ /\bestrictamente necesarias\b/gi,
254
+ /\balmacenar o acceder a (?:la )?información\b/gi,
255
+ /\btecnolog[ií]as de seguimiento\b/gi,
221
256
 
222
257
  // Polish (PL)
223
258
  // examples:
@@ -293,7 +328,6 @@ export const DETECT_PATTERNS: DetectPattern[] = [
293
328
  /\bcookies? (?:tecnici|di profilazione|di terze parti|analitici|statistici|di marketing)\b/gi,
294
329
  /\b(?:acconsent|accett)\w*\b.{0,40}\b(?:uso|utilizzo|installazione)\b.{0,15}\bcookies?\b/gi,
295
330
  /\b(?:continuando|proseguendo)(?: la| nella)? navigazione\b.{0,80}\b(?:accett|acconsent)\w*/gi,
296
- /\b(?:accetta|accetto|accettare|rifiuta|rifiuto|rifiutare)(?: tutti| tutto)\b/gi,
297
331
  /\b(?:continua|prosegui|chiudi) senza accettare\b/gi,
298
332
  /\brifiuta e abbonati\b/gi,
299
333
  /\bconsenso (?:all.(?:uso|utilizzo) (?:dei |di )?)?cookies?\b/gi,
@@ -304,6 +338,11 @@ export const DETECT_PATTERNS: DetectPattern[] = [
304
338
  /\butilizz\w*\b.{0,30}cookie/gi,
305
339
  /\b(?:questo|il nostro) sito\b.{0,100}cookie/gi,
306
340
  /\bcookie\b.{0,30}\btecnologie (?:simili|analoghe)\b/gi,
341
+ /\bcliccando su\b.{0,80}?\bcookie/gi,
342
+ /\b(?:accetta|rifiuta) tutti i cookie/gi,
343
+ // TCF: "noi e i nostri partner archiviamo …", "… potremmo utilizzare dati di localizzazione", not "partner commerciali"
344
+ /\bnoi e i nostri (?:\d+ )?partner (?:archivia\w*|memorizz\w*|potremmo|trattiamo)\b/gi,
345
+ /\bcookies? (?:essenziali|necessari)\b/gi,
307
346
 
308
347
  // Swedish (SV)
309
348
  // e.g. "vi använder cookies", "vi använder spårningstekniker såsom cookies", "webbplatsen använder kakor"
@@ -317,7 +356,6 @@ export const DETECT_PATTERNS: DetectPattern[] = [
317
356
  /\b(?:godkänn|accepter|tillåt)\S* (?:\S+ ){0,4}(?:cookies|kakor)\b|\b(?:cookies|kakor) (?:som )?du tillåter\b/gi,
318
357
  // a button or "… nödvändiga kakor", not "endast nödvändiga resurser"
319
358
  /\b(?:endast|bara|enbart) nödvändiga(?: (?:cookies|kakor))?(?![ \t]*[\wåäö])/gi,
320
- /\bavvisa alla\b/gi,
321
359
  // TCF wording
322
360
  /\blagra och\/eller (?:få åtkomst till|komma åt) information\b/gi,
323
361
  /\b(?:dess|våra) partners?\b.{0,100}\b(?:cookies|kakor)\b/gi,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "18.2.0",
3
+ "version": "18.3.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "adaptivemedia",
3
+ "vendorUrl": "https://www.adaptivemedia.se/",
4
+ "prehideSelectors": [".bg-modal:has(.preferences-modal)"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ".bg-modal .preferences-modal .content button.btn-ghost.is-neutral"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": ".bg-modal .preferences-modal"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": ".preferences-modal .content button.btn-primary"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": ".preferences-modal .content button.btn-ghost.is-neutral"
23
+ }
24
+ ],
25
+ "test": [
26
+ {
27
+ "cookieContains": "cookie_consent_v2_0_marketing_third_party=0"
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "adeac-jp",
3
+ "vendorUrl": "https://adeac.jp/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?adeac\\.jp/"
7
+ },
8
+ "prehideSelectors": [".overlay-footer"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".overlay-footer .btn-area-footer"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".overlay-footer"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".overlay-footer .overlay_button button"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": ".overlay-footer"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "agenziaentrate-geoportale",
3
+ "vendorUrl": "https://geoportale.cartografia.agenziaentrate.gov.it/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://geoportale\\.cartografia\\.agenziaentrate\\.gov\\.it/"
7
+ },
8
+ "prehideSelectors": ["#cookiebar"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#cookiebar .cookiebar-confirm[data-accept=cookiebar]"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#cookiebar"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#cookiebar .cookiebar-confirm[data-accept=cookiebar]"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "#cookiebar"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": "#cookiebar",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "alertnotification-alert-bar",
3
+ "cosmetic": true,
4
+ "prehideSelectors": [
5
+ ".alert-bar[data-alert-api$=\"api/alertnotification\"]:is(.alert-bar--notification, .alert-bar--cookie-message, #alert-COOKIES)"
6
+ ],
7
+ "detectCmp": [
8
+ {
9
+ "exists": ".alert-bar[data-alert-api$=\"api/alertnotification\"]:is(.alert-bar--notification, .alert-bar--cookie-message, #alert-COOKIES)"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ".alert-bar[data-alert-api$=\"api/alertnotification\"]:is(.alert-bar--notification, .alert-bar--cookie-message, #alert-COOKIES)"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ".alert-bar[data-alert-api$=\"api/alertnotification\"]:is(.alert-bar--notification, .alert-bar--cookie-message, #alert-COOKIES) :is(.alert-bar__close, .alert-bar__button)"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "hide": ".alert-bar[data-alert-api$=\"api/alertnotification\"]:is(.alert-bar--notification, .alert-bar--cookie-message, #alert-COOKIES)"
25
+ }
26
+ ]
27
+ }
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "detectPopup": [
12
12
  {
13
- "visible": "#am-cookie-bar > :is([data-dialog-ref-name=\"am-cookie-bar\"], [x-bind^=\"overlay\"])"
13
+ "visible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]"
14
14
  },
15
15
  {
16
16
  "exists": "#am-cookie-bar[style*=\"translateY(100%)\"]",
@@ -37,14 +37,14 @@
37
37
  "waitForThenClick": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-accept\"], .ambar-btn-decline)"
38
38
  },
39
39
  {
40
- "waitForVisible": "#am-cookie-bar > :is([data-dialog-ref-name=\"am-cookie-bar\"], [x-bind^=\"overlay\"])",
40
+ "waitForVisible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]",
41
41
  "check": "none",
42
42
  "timeout": 3000,
43
43
  "optional": true
44
44
  },
45
45
  {
46
46
  "if": {
47
- "visible": "#am-cookie-bar > :is([data-dialog-ref-name=\"am-cookie-bar\"], [x-bind^=\"overlay\"])"
47
+ "visible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]"
48
48
  },
49
49
  "then": [
50
50
  {
@@ -95,14 +95,14 @@
95
95
  "optional": true
96
96
  },
97
97
  {
98
- "waitForVisible": "#am-cookie-bar > :is([data-dialog-ref-name=\"am-cookie-bar\"], [x-bind^=\"overlay\"])",
98
+ "waitForVisible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]",
99
99
  "check": "none",
100
100
  "timeout": 1000,
101
101
  "optional": true
102
102
  },
103
103
  {
104
104
  "if": {
105
- "visible": "#am-cookie-bar > :is([data-dialog-ref-name=\"am-cookie-bar\"], [x-bind^=\"overlay\"])"
105
+ "visible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]"
106
106
  },
107
107
  "then": [
108
108
  {
@@ -121,7 +121,7 @@
121
121
  "exists": "#am-cookie-bar[style*=\"translateY(100%)\"]"
122
122
  },
123
123
  {
124
- "waitForVisible": "#am-cookie-bar > :is([data-dialog-ref-name=\"am-cookie-bar\"], [x-bind^=\"overlay\"])",
124
+ "waitForVisible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]",
125
125
  "check": "none",
126
126
  "timeout": 5000
127
127
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "betheme",
3
+ "vendorUrl": "https://muffingroup.com/betheme/",
4
+ "prehideSelectors": ["#mfn-consent-mode"],
5
+ "detectCmp": [{ "exists": "#mfn-consent-mode #consent_deny" }],
6
+ "detectPopup": [{ "visible": "body.mfn-cookies-open #mfn-consent-mode .mfn-cookies-popup" }],
7
+ "optIn": [{ "waitForThenClick": "#mfn-consent-mode #consent_allow" }],
8
+ "optOut": [{ "waitForThenClick": "#mfn-consent-mode #consent_deny" }],
9
+ "test": [{ "cookieContains": "%22analytics_storage%22%3A%22denied%22" }]
10
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "biblia-online.pl",
3
+ "_metadata": {
4
+ "vendorUrl": "https://biblia-online.pl/"
5
+ },
6
+ "cosmetic": true,
7
+ "runContext": {
8
+ "main": true,
9
+ "frame": false,
10
+ "urlPattern": "^https?://(\\w+\\.)?biblia-online\\.pl/"
11
+ },
12
+ "prehideSelectors": [".cookies-box"],
13
+ "detectCmp": [
14
+ {
15
+ "exists": ".cookies-box #btn-accept-cookies"
16
+ }
17
+ ],
18
+ "detectPopup": [
19
+ {
20
+ "visible": ".cookies-box"
21
+ }
22
+ ],
23
+ "optIn": [
24
+ {
25
+ "waitForThenClick": ".cookies-box #btn-accept-cookies"
26
+ }
27
+ ],
28
+ "optOut": [
29
+ {
30
+ "comment": "notice only offers an accept button",
31
+ "hide": ".cookies-box"
32
+ }
33
+ ],
34
+ "test": [
35
+ {
36
+ "visible": ".cookies-box",
37
+ "check": "none"
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "bitauto",
3
+ "vendorUrl": "https://www.bitauto.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?bitauto\\.com/"
6
+ },
7
+ "prehideSelectors": [".authorize"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".authorize .lnk-disagree"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".authorize .lnk-disagree"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".authorize .lnk-agree"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".authorize .lnk-disagree"
26
+ },
27
+ {
28
+ "waitForVisible": ".fc-consent-root .fc-dialog-container",
29
+ "timeout": 4000,
30
+ "optional": true
31
+ },
32
+ {
33
+ "if": {
34
+ "visible": ".fc-consent-root .fc-dialog-container"
35
+ },
36
+ "then": [
37
+ {
38
+ "click": ".fc-cta-do-not-consent,.fc-cta-manage-options"
39
+ },
40
+ {
41
+ "click": ".fc-preference-consent:checked,.fc-preference-legitimate-interest:checked",
42
+ "all": true,
43
+ "optional": true
44
+ },
45
+ {
46
+ "click": ".fc-confirm-choices",
47
+ "optional": true
48
+ }
49
+ ]
50
+ }
51
+ ],
52
+ "test": [
53
+ {
54
+ "cookieContains": "save_open_time=ok"
55
+ }
56
+ ]
57
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "bt-com-au",
3
+ "vendorUrl": "https://www.bt.com.au/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?bt\\.com\\.au/"
6
+ },
7
+ "prehideSelectors": ["#js-cookie-alert #cookie"],
8
+ "detectCmp": [{ "exists": "#js-cookie-alert #cookie" }],
9
+ "detectPopup": [{ "visible": "#js-cookie-alert.show #cookie" }],
10
+ "optIn": [{ "waitForThenClick": "#js-cookie-alert #cookie button.closeAlert" }],
11
+ "optOut": [{ "waitForThenClick": "#js-cookie-alert #cookie button.closeAlert" }],
12
+ "test": [{ "waitForVisible": "#js-cookie-alert #cookie", "check": "none", "timeout": 1000 }]
13
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "calclife.net",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?calclife\\.net/"
5
+ },
6
+ "prehideSelectors": [".cookie-consent"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": ".cookie-consent .cookie-consent__customize"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ".cookie-consent .cookie-consent__customize"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ".cookie-consent .cookie-consent__accept-all"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": ".cookie-consent .cookie-consent__customize"
25
+ },
26
+ {
27
+ "waitForVisible": ".cookie-consent .cookie-consent__details"
28
+ },
29
+ {
30
+ "if": {
31
+ "exists": "#consent-analytics:checked"
32
+ },
33
+ "then": [
34
+ {
35
+ "click": "#consent-analytics"
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "click": ".cookie-consent .cookie-consent__save"
41
+ }
42
+ ]
43
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "casino-guru",
3
+ "_metadata": {
4
+ "vendorUrl": "https://casino.guru/"
5
+ },
6
+ "cosmetic": true,
7
+ "prehideSelectors": [".js-cookies-policy-alert"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".js-cookies-policy-alert [class*=\"cookies-policy-alert-body\"] [onclick*=\"js-cookies-policy-alert\"]"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".js-cookies-policy-alert [class*=\"cookies-policy-alert-body\"]"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".js-cookies-policy-alert [onclick*=\"js-cookies-policy-alert\"]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "hide": ".js-cookies-policy-alert"
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "code3-cookies-consent",
3
+ "vendorUrl": "https://code3.ca/",
4
+ "prehideSelectors": ["#cookiesConsentBanner"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookiesConsentBanner"
8
+ },
9
+ {
10
+ "exists": "#cookiesParametersModal"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookiesConsentBanner"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cookiesConsentBanner .accept-all-cookies"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "if": {
26
+ "visible": "#cookiesConsentBanner .refuse-all-cookies"
27
+ },
28
+ "then": [
29
+ {
30
+ "click": "#cookiesConsentBanner .refuse-all-cookies"
31
+ }
32
+ ],
33
+ "else": [
34
+ {
35
+ "click": "#cookiesParametersModal .refuse-all-cookies"
36
+ }
37
+ ]
38
+ }
39
+ ],
40
+ "test": [
41
+ {
42
+ "cookieContains": "cookiesConsentDone=true"
43
+ },
44
+ {
45
+ "cookieContains": "%22performanceCookies%22:false"
46
+ }
47
+ ]
48
+ }
@@ -49,10 +49,15 @@
49
49
  "click": ".cmp-pref-link"
50
50
  },
51
51
  {
52
- "waitForThenClick": ".cmp-body [id*=rejectAll]"
52
+ "waitForVisible": ".cmp-body .cmp-save-btn"
53
53
  },
54
54
  {
55
- "waitForThenClick": ".cmp-body .cmp-save-btn"
55
+ "comment": "absent when the only category is the read-only essential one",
56
+ "click": ".cmp-body [id*=rejectAll]",
57
+ "optional": true
58
+ },
59
+ {
60
+ "click": ".cmp-body .cmp-save-btn"
56
61
  }
57
62
  ]
58
63
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "cookie-use-notice",
3
+ "prehideSelectors": [".cookie-use-notice"],
4
+ "detectCmp": [{ "exists": ".cookie-use-notice #decline-cookie" }],
5
+ "detectPopup": [{ "visible": ".cookie-use-notice #decline-cookie" }],
6
+ "optIn": [{ "waitForThenClick": ".cookie-use-notice #accept-cookie" }],
7
+ "optOut": [
8
+ { "waitForThenClick": ".cookie-use-notice #decline-cookie" },
9
+ { "waitForVisible": ".cookie-use-notice", "check": "none", "timeout": 2000 }
10
+ ],
11
+ "test": [{ "cookieContains": "-cookie=deny" }]
12
+ }