@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
@@ -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;
@@ -14,18 +13,39 @@ export const VERWENDUNG_VON_COOKIES = /verwendung.{0,100}von.{0,100}cookies/gi;
14
13
  export const DE_COOKIE_VERB =
15
14
  /\b(?:nutzen|nutzt|verwenden|verwendet|setzen|setzt|benutzen|benutzt|speichert|platzieren)\b(?: \S+){0,4} cookies\b/gi;
16
15
  export const GEBRUIK_VAN_COOKIES = /gebruik.{0,100}van.{0,100}cookies/gi;
16
+ export const USO_DEI_COOKIE = /\b(?:uso|utilizzo) dei cookies?\b/gi;
17
+ export const ANVANDNING_AV_COOKIES = /\b(?:användning|användningen|användandet) av (?:\S+ )?(?:cookies|kakor)\b/gi;
18
+ export const DE_THIS_SITE_COOKIES = /\b(?:unsere|diese)[rs]? (?:web)?(?:seite|site)\b.{0,100}cookies/gi;
19
+ export const DE_SITE_USES_COOKIES = /\b(?:seite|site)\b.{0,100}\b(?:nutzt|benutzt)\b.{0,100}cookies/gi;
17
20
 
18
21
  // TODO: check for false positive detections per pattern
19
22
  // these patterns are matched against popup-like elements or full document text to detect unknown cookie popups
20
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
21
25
  /accept cookies/gi,
22
- ACCEPT_ALL,
23
- /reject all/gi,
24
26
  /only necessary cookies/gi, // "only necessary" is probably too broad
25
27
  /(?:by continuing.{0,100}cookie)|(?:cookie.{0,100}by continuing)/gi,
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,
26
41
  BY_CONTINUING_PRIVACY,
27
42
  // up to two qualifiers are common: "optional", "essential", "analytics", "google analytics", "third party", ...
28
- /we (?:use|serve)(?: \w+){0,2} cookies/gi,
43
+ // singular too, but not "cookie-free"
44
+ /we (?:also )?(?:use|serve)(?: \w+){0,2} cookies?\b(?!-)/gi,
45
+ /\bwe use (?:\S+ )?cookie files\b/gi,
46
+ // consent asked as a question: "can I use cookies to …?", "allow analytics cookies?"
47
+ /\b(?:can|may) (?:i|we) use (?:\S+ ){0,2}cookies\b/gi,
48
+ /\ballow (?:\S+ )?cookies\?/gi,
29
49
  /we are using cookies/gi,
30
50
  USE_OF_COOKIES,
31
51
  /website uses cookies to enhance your browsing experience/gi,
@@ -34,7 +54,7 @@ export const DETECT_PATTERNS: DetectPattern[] = [
34
54
  /such as cookies/gi,
35
55
  /read more about.{0,100}cookies/gi,
36
56
  /consent to.{0,100}cookies/gi,
37
- /we and our partners.{0,100}cookies/gi,
57
+ /we and our (?:\w+ )?partners.{0,100}cookies/gi,
38
58
  /we.{0,100}store.{0,100}information.{0,100}such as.{0,100}cookies/gi,
39
59
  /store and\/or access information.{0,100}on a device/gi,
40
60
  /personalised ads and content, ad and content measurement/gi,
@@ -60,11 +80,17 @@ export const DETECT_PATTERNS: DetectPattern[] = [
60
80
  /["“]?(?:share|sell)["”]? or ["“]?(?:sell|share)["”]? (?:your )?(?:personal )?information\b/gi,
61
81
  /\bresidents have (?:certain )?rights with regard to the sale\b/gi,
62
82
  /\bwe use technologies (?:on this website )?(?:that may )?(?:to )?collect\b/gi,
83
+ /\bwe use third[- ]party tools to collect information\b/gi,
63
84
  // pay-or-consent walls
64
85
  /\bcontinue reading with advertising\b|\b(?:with|mit) (?:advertising|werbung) (?:and|und) tracking\b/gi,
65
86
  /\bconsent and continue\b/gi,
66
87
  // preference centres are often in the page but hidden, so popup text only
67
88
  { pattern: /\bstore or retrieve information on your browser\b|\bstockées dans votre navigateur ou récupérées\b/gi, input: 'popup' },
89
+ /\bwe have cookies\b/gi,
90
+ /\b(?:revoke|withdraw) your consent at any time\b|\beinwilligung jederzeit widerrufen\b/gi,
91
+ /\bwe use (?:[\w-]+ )?analytics (?:to|for)\b|\bwe use google analytics\b.{0,100}\bcookie/gi,
92
+ /\b(?:con|senza) il (?:tuo|vostro) consenso\b/gi,
93
+ /\baccept or (?:reject|decline) (?:all |optional |non-essential )?cookies\b/gi,
68
94
 
69
95
  // it might be tempting to add the patterns below, but they cause too many false positives. Don't do it :)
70
96
  // /cookies? settings/i,
@@ -81,17 +107,19 @@ export const DETECT_PATTERNS: DetectPattern[] = [
81
107
  /stocker.{0,100}et.{0,100}ou.{0,100}accéder/gi,
82
108
  /consentement.{0,100}à.{0,100}tout.{0,100}moment/gi,
83
109
  /votre.{0,100}consentement/gi,
84
- /accepter.{0,100}tout/gi,
85
110
  UTILISATION_DES_COOKIES,
86
111
  /cookies.{0,100}ou.{0,100}technologies/gi,
87
112
  ACCEPTEZ_UTILISATION,
88
113
  /continuer sans accepter/gi,
89
- /tout refuser/gi,
90
114
  /(?:refuser|rejeter) tous les cookies/gi,
91
115
  // not "je refuse d'…" in a headline
92
116
  /je refuse(?! d['’e])/gi,
93
117
  /refuser et continuer/gi,
94
- /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,
95
123
  /seulement nécessaires/gi,
96
124
  /je désactive les finalités non essentielles/gi,
97
125
  /cookies essentiels uniquement/gi,
@@ -101,6 +129,11 @@ export const DETECT_PATTERNS: DetectPattern[] = [
101
129
  /\bconsentez à l.utilisation (?:de |des )?cookies\b|\bdépôt (?:de|des) cookies\b/gi,
102
130
  /\bles cookies nous permettent\b|\bnos partenaires et nous(?:-mêmes)?\b/gi,
103
131
  /\baccepter (?:&|et) fermer\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,
134
+ /\ben (?:naviguant|poursuivant)\b.{0,100}cookies/gi,
135
+ /(?:en continuant.{0,100}cookie)|(?:cookie.{0,100}en continuant)/gi,
136
+ /\ben (?:naviguant|poursuivant|continuant)\b.{0,100}confidentialité/gi,
104
137
 
105
138
  // DE
106
139
  /wir.{0,100}verwenden.{0,100}cookies/gi,
@@ -115,7 +148,6 @@ export const DETECT_PATTERNS: DetectPattern[] = [
115
148
  /und.{0,100}ähnliche.{0,100}technologien/gi,
116
149
  /cookies.{0,100}wir.{0,100}verwenden/gi,
117
150
 
118
- /alles?.{0,100}ablehnen/gi,
119
151
  /(?:nur|nicht).{0,100}(?:zusätzliche|essenzielle|funktionale|notwendige|erforderliche).{0,100}(?:cookies|akzeptieren|erlauben|ablehnen)/gi,
120
152
  /weiter.{0,100}(?:ohne|mit).{0,100}(?:einwilligung|zustimmung|cookies)/gi,
121
153
  /(?:cookies|einwilligung).{0,100}ablehnen/gi,
@@ -128,32 +160,68 @@ export const DETECT_PATTERNS: DetectPattern[] = [
128
160
  /\b(?:werden|wird) (?:\S+ ){0,3}cookies (?:verwendet|eingesetzt|gesetzt|genutzt)\b/gi,
129
161
  /\bcookies? zum einsatz\b|\beinsatz von cookies\b/gi,
130
162
  /\beinverstanden\b.{0,60}\bcookies\b|\bcookies\b.{0,80}\beinverstanden\b/gi,
131
- /\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,
132
164
  /\bzustimmen und weiter\b|\bweiter,? ohne zu (?:akzeptieren|zustimmen)\b/gi,
133
165
  /\b(?:einwilligung|zustimmung) (?:zu|zur|in die) (?:\S+ )?cookies\b|\bcookie-(?:zustimmung|einwilligung)\b/gi,
134
166
  /\btracking-technologien\b/gi,
167
+ DE_SITE_USES_COOKIES,
168
+ // verb before the subject: "Für die Analyse nutzen wir Cookies"
169
+ /\b(?:verwenden|nutzen|benutzen|setzen) wir\b.{0,100}cookies/gi,
170
+ /\bwir\b.{0,100}\bsetzen\b.{0,100}cookies/gi,
171
+ /\bbenutz(?:t|en)\b.{0,100}cookies/gi,
172
+ /\bdurch die (?:weitere )?nutzung (?:unserer|dieser) (?:webseite|website|seite)\b.{0,100}datenschutz/gi,
135
173
  /\bakzeptier\w* (?:du |sie )?(?:die )?verwendung (?:\S+ )?cookies\b/gi,
136
174
  /\bmit werbetracking weiterlesen\b|\bweiter mit werbung\b|\bcon tracking e annunci\b/gi,
175
+ // in page text, a footer line such as "Diese Website verwendet Cookies. Mehr erfahren" needs a consent control nearby (see heuristic-negatives.ts)
176
+ DE_THIS_SITE_COOKIES,
177
+ /(?:durch die weitere nutzung.{0,100}cookie)|(?:cookie.{0,100}durch die weitere nutzung)/gi,
178
+ /\b(?:analyse|statistik)-?cookies\b/gi,
179
+ /\b(?:marketing|tracking)-?cookies\b/gi,
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,
137
197
 
138
198
  // NL
139
199
  GEBRUIK_VAN_COOKIES,
140
200
  /(?:we|wij).{0,100}gebruiken.{0,100}cookies.{0,100}om/gi,
141
201
  /cookies.{0,100}en.{0,100}vergelijkbare/gi,
142
202
 
143
- /(?:alles|cookies).{0,100}(?:afwijzen|weigeren|verwerpen)/gi,
203
+ /cookies.{0,100}(?:afwijzen|weigeren|verwerpen)/gi,
144
204
  /alleen.{0,100}noodzakelijke?\b/gi,
145
205
  /cookies weigeren/gi,
146
- /weiger.{0,100}(?:cookies|alles)/gi,
206
+ /weiger.{0,100}cookies/gi,
147
207
  /doorgaan zonder (?:te accepteren|akkoord te gaan)/gi,
148
- /alleen.{0,100}(?:optionele|functionele|functioneel|noodzakelijke|essentiële).{0,100}cookies/gi,
149
- /wijs alles af/gi,
208
+ /alleen.{0,100}(?:optionele|functionele|functioneel|noodzakelijke|essentiële|standaard).{0,100}cookies/gi,
150
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,
151
210
  /\bonze partners vragen om (?:jouw|uw|je) toestemming\b/gi,
152
211
  /\bwij en onze (?:\d+ )?partners\b/gi,
153
212
  /\b(?:gebruiken|gebruikt|plaatsen|plaatst)\b(?: \S+){0,3} cookies\b/gi,
154
- /\baccepteer (?:alles|alle cookies)\b/gi,
213
+ /\baccepteer alle cookies\b/gi,
155
214
  // Dutch words only: "tracking cookies" and "marketing cookies" are also English prose and footer links
156
215
  /\b(?:analytische|functionele|essentiële|noodzakelijke) cookies\b/gi,
216
+ /(?:te blijven gebruiken.{0,100}cookie)|(?:cookie.{0,100}te blijven gebruiken)/gi,
217
+ /cookies.{0,100}beste? (?:mogelijke )?(?:ervaring|gebruikerservaring)/gi,
218
+ /\b(?:we|wij) (?:gebruiken|plaatsen)\b.{0,100}cookies/gi,
219
+ /\bgebruiken (?:we|wij) cookies\b/gi,
220
+ /\bplaatsen van\b.{0,50}cookies/gi,
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,
157
225
 
158
226
  // Spanish (ES)
159
227
  /(si|al) contin[úu]a[sr]?( navegando)?.{0,100} cookie/gi,
@@ -174,18 +242,23 @@ export const DETECT_PATTERNS: DetectPattern[] = [
174
242
  /\b(?:almacenar|almacenamos) y\/o (?:acceder|accedemos)\b/gi,
175
243
  /\bnuestros socios solicitan su consentimiento\b/gi,
176
244
  /\b(?:tanto nosotros como|nosotros y) nuestros (?:\d+ )?socios\b/gi,
177
- /\b(?:aceptar|rechazar) todas\b|\bcontinuar sin aceptar\b|\bsolo las necesarias\b/gi,
245
+ /\bcontinuar sin aceptar\b|\bsolo las necesarias\b/gi,
178
246
  /\bacept\w* (?:\S+ ){0,3}uso de (?:las )?cookies\b/gi,
179
247
  /\bcookies (?:técnicas|analíticas|propias|de terceros|opcionales|necesarias)\b/gi,
180
248
  /\blas cookies nos (?:ayudan|permiten)\b/gi,
181
249
  /\b(?:instalamos|empleamos)\b(?: \S+){0,4} cookies\b/gi,
182
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,
183
256
 
184
257
  // Polish (PL)
185
258
  // examples:
186
259
  // wykorzystuje pliki cookie (uses cookies)
187
260
  // Wykorzystujemy informacje w plikach cookie (We use information in cookies)
188
- /(używamy|stosujemy|stosuje|wykorzystujemy|wykorzyst(uje|ywane))( są)?.{0,20} plik(i|ów|ach) cookie/gi,
261
+ /(używamy|stosujemy|stosuje|wykorzystujemy|wykorzyst(uje|ywane))( są)?.{0,20} plik(i|ów|ach) [„"]?cookie/gi,
189
262
  /(używać|używamy).{0,80} (ciasteczek|cookie)/gi,
190
263
  /cele przetwarzania twoich danych przez zaufanych partnerów iab/gi,
191
264
  /dzięki (plikom cookie|ciasteczkom|cookie)/gi,
@@ -236,12 +309,14 @@ export const DETECT_PATTERNS: DetectPattern[] = [
236
309
  // note: \w does not match Cyrillic, so these use explicit character ranges
237
310
  /использу[а-яё]*.{0,40}(?:файл[а-яё]*[\s-]+)?(?:cookie|куки)/gi,
238
311
  /(?:cookie|куки).{0,40}использу[а-яё]*/gi,
239
- /(?:использовани[а-яё]*|обработк[а-яё]*|хранени[а-яё]*).{0,20}(?:файл(?:ов|ы)[\s-]+)?(?:cookie|куки)/gi,
312
+ /(?:использовани[а-яё]*|обраб(?:отк|атыва)[а-яё]*|хранени[а-яё]*).{0,20}(?:файл(?:ов|ы)[\s-]+)?(?:cookie|куки)/gi,
240
313
  /технологи[а-яё]*\s+(?:cookie|куки)/gi,
241
314
  // e.g. "сайт собирает cookie", "мы применяем файлы cookie", "сохраняем куки на вашем устройстве"
242
315
  /(?:собира[а-яё]*|сбор|применя[а-яё]*|сохраня[а-яё]*|размеща[а-яё]*|устанавлива[а-яё]*).{0,30}(?:файл[а-яё]*[\s-]+)?(?:cookie|куки)/gi,
243
316
  // "файлы cookie" / "cookie-файлы" / "куки-файлы" in any phrasing
244
317
  /(?:файл[а-яё]*[\s-]+(?:cookie|куки)|(?:cookie|куки)[\s-]+файл[а-яё]*)/gi,
318
+ // cookies described without the word: "файлов, сохраняемых в браузере пользователя"
319
+ /файл[а-яё]*,?\s+(?:сохраня[а-яё]*|хран[а-яё]*)[а-яё\s]{0,30}браузер/gi,
245
320
 
246
321
  // Italian (IT)
247
322
  // e.g. "usiamo i cookie", "utilizziamo cookie tecnici", "questo sito utilizza i cookie", "noi e i nostri partner utilizziamo i cookie"
@@ -253,46 +328,72 @@ export const DETECT_PATTERNS: DetectPattern[] = [
253
328
  /\bcookies? (?:tecnici|di profilazione|di terze parti|analitici|statistici|di marketing)\b/gi,
254
329
  /\b(?:acconsent|accett)\w*\b.{0,40}\b(?:uso|utilizzo|installazione)\b.{0,15}\bcookies?\b/gi,
255
330
  /\b(?:continuando|proseguendo)(?: la| nella)? navigazione\b.{0,80}\b(?:accett|acconsent)\w*/gi,
256
- /\b(?:accetta|accetto|accettare|rifiuta|rifiuto|rifiutare)(?: tutti| tutto)\b/gi,
257
331
  /\b(?:continua|prosegui|chiudi) senza accettare\b/gi,
258
332
  /\brifiuta e abbonati\b/gi,
259
333
  /\bconsenso (?:all.(?:uso|utilizzo) (?:dei |di )?)?cookies?\b/gi,
260
334
  /\b(?:insieme ai|con i) nostri (?:\d+ )?partner\b/gi,
261
335
  /\bterze parti selezionate\b/gi,
262
336
  /\b(?:archiviare|archiviamo|memorizzare|memorizziamo) e\/o (?:accedere|accediamo)\b/gi,
337
+ USO_DEI_COOKIE,
338
+ /\butilizz\w*\b.{0,30}cookie/gi,
339
+ /\b(?:questo|il nostro) sito\b.{0,100}cookie/gi,
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,
263
346
 
264
347
  // Swedish (SV)
265
348
  // e.g. "vi använder cookies", "vi använder spårningstekniker såsom cookies", "webbplatsen använder kakor"
266
349
  /(?:vi|webbplatsen|webbplats|sajten|sidan)\s+använder.{0,60}(?:cookies|kakor)/gi,
350
+ // any subject and inverted order: "Svenska kraftnät använder kakor", "använder vi också cookies", "vill använda cookies",
351
+ // "vi sätter inga egna cookies"
352
+ /\b(?:använd(?:er|a)|sätter|nyttjar) (?:vi |sig av |oss av )?(?:\S+ ){0,3}(?:cookies|kakor)\b/gi,
353
+ // passive: "på webbplatsen används kakor", "kakor används för att …"
354
+ /\banvänds (?:\S+ ){0,2}(?:cookies|kakor)\b|\b(?:cookies|kakor)\b.{0,60}\banvänds\b/gi,
355
+ ANVANDNING_AV_COOKIES,
356
+ /\b(?:godkänn|accepter|tillåt)\S* (?:\S+ ){0,4}(?:cookies|kakor)\b|\b(?:cookies|kakor) (?:som )?du tillåter\b/gi,
357
+ // a button or "… nödvändiga kakor", not "endast nödvändiga resurser"
358
+ /\b(?:endast|bara|enbart) nödvändiga(?: (?:cookies|kakor))?(?![ \t]*[\wåäö])/gi,
359
+ // TCF wording
360
+ /\blagra och\/eller (?:få åtkomst till|komma åt) information\b/gi,
361
+ /\b(?:dess|våra) partners?\b.{0,100}\b(?:cookies|kakor)\b/gi,
362
+ /\btekniker (?:såsom|som) (?:cookies|kakor)\b/gi,
267
363
 
268
364
  // Japanese (JA)
269
365
  // e.g. "当サイトはCookieを使用しています", "クッキー(Cookie)を利用しています"
270
- /(?:cookie|クッキー).{0,10}を(?:使用|利用)/gi,
366
+ /(?:cookie|クッキー).{0,20}を(?:使用|利用)/gi,
367
+ // e.g. "閲覧履歴を外部サービスに送信"
368
+ /(?:閲覧履歴|端末情報|利用者情報).{0,30}を外部(?:サービス|事業者|に|へ)/gi,
271
369
 
272
370
  // Danish (DA)
273
371
  // e.g. "vi bruger cookies", "hjemmesiden bruger cookies til at ..."
274
- /bruger cookies/gi,
372
+ /\b(?:bruger|anvender|benytter) cookies\b/gi,
275
373
 
276
374
  // Norwegian (NO)
277
375
  // e.g. "vi bruker informasjonskapsler", "kan vi bruke valgfrie informasjonskapsler", "nettstedet bruker cookies"
278
376
  /\b(?:vi|nettstedet|nettsiden|siden)\s+bruker?\s.{0,60}?(?:informasjonskapsler|cookies)/gi,
377
+ /\bvi benytter(?: \S+)? (?:cookies|informasjonskapsler)\b/gi,
378
+ /\bbruk av (?:cookies|informasjonskapsler)\b/gi,
279
379
  ];
280
380
 
281
381
  const REJECT_PATTERNS_ENGLISH = [
282
- // e.g. "reject", "reject all", "reject all cookies", "deny all", "refuse cookies", "decline",
382
+ // e.g. "reject", "reject all", "reject all cookies", "reject cookie", "deny all", "refuse cookies", "decline", "disallow cookies",
283
383
  // "reject non-essential cookies", "reject unnecessary cookies", "reject all but necessary", "reject all and close"
284
384
  // note that "reject and subscribe" and "reject and pay" are excluded via BUTTON_NEVER_MATCH_PATTERNS
285
- /^\s*(no,?\s*)?(i\s+)?(reject|deny|refuse|decline|disable)\s*(all)?\s*(but|except)?\s*(non[- ]?essential|un(necessary|required)|optional|additional|targeting|analytics|marketing|non[- ]?necessary|extra|tracking|advertising|necessary|essential)?\s*(cookies)?\s*(and\s+close)?\s*$/is,
385
+ /^\s*(no,?\s*)?(i\s+)?(reject|deny|refuse|decline|disable|disallow)\s*(all)?\s*(but|except)?\s*(non[- ]?essential|un(necessary|required)|optional|additional|targeting|analytics|marketing|non[- ]?necessary|extra|tracking|advertising|necessary|essential)?\s*(cookies?)?\s*(and\s+close)?\s*$/is,
286
386
 
287
- // e.g. "i do not accept", "do not accept cookies", "i do not accept the use of cookies"
288
- /^\s*(no,?\s*)?(i\s+)?do\s+not\s+accept\s*(the\s+use\s+of\s+)?(any\s+)?(cookies)?\s*$/is,
387
+ // e.g. "i do not accept", "do not accept cookies", "i do not accept the use of cookies", "do not allow cookies", "dont allow"
388
+ /^\s*(no,?\s*)?(i\s+)?(do\s+not|dont)\s+(accept|allow)\s*(the\s+use\s+of\s+)?(any\s+)?(cookies)?\s*$/is,
289
389
 
290
390
  // e.g. "continue without accepting", "continue without agreeing", "continue without agreeing →"
291
391
  /^\s*(continue|proceed|continue\s+browsing)\s+without\s+(accepting|agreeing|consent|cookies|tracking)(\s*→)?\s*$/is,
292
392
 
293
393
  // essential/necessary/functional-only, e.g. "essential cookies only", "accept only essential cookies",
294
- // "allow necessary cookies continue", "use essential cookies only", "functional only", "essential only cookies", "i confirm necessary"
295
- /^\s*(i\s+)?(want\s+to\s+)?(only\s+)?(use|accept|allow|keep|enable|choose|continue\s+with|i\s+confirm)\s*(only\s+)?(strictly\s+)?(necessary|essential|essentials|functional|required|minimal)\s*(cookies)?\s*(continue|only)?\s*$/is,
394
+ // "allow necessary cookies continue", "use essential cookies only", "functional only", "essential only cookies", "i confirm necessary",
395
+ // "proceed with necessary cookies only"
396
+ /^\s*(i\s+)?(want\s+to\s+)?(only\s+)?(use|accept|allow|keep|enable|choose|continue\s+with|proceed\s+with|i\s+confirm)\s*(only\s+)?(strictly\s+)?(necessary|essential|essentials|functional|required|minimal)\s*(cookies)?\s*(continue|only)?\s*$/is,
296
397
  /^\s*(i\s+)?(want\s+to\s+)?only\s+(strictly\s+)?(necessary|essential|essentials|functional|required|minimal)\s*(cookies)?\s*(continue|only)?\s*$/is,
297
398
  /^\s*(strictly\s+)?(necessary|essential|essentials|functional|required|minimal)\s+((cookies\s+)?only|only\s+cookies)\s*$/is,
298
399
 
@@ -311,6 +412,9 @@ const REJECT_PATTERNS_ENGLISH = [
311
412
 
312
413
  'no',
313
414
  /^no,? thank(s| you)$/is,
415
+ // e.g. "no cookies", "no cookies for me, thanks", "rather not", "no, rather not"
416
+ /^no,?\s+cookies(\s+for\s+me)?(,?\s*thank(s| you))?$/is,
417
+ /^(no,?\s+)?rather not$/is,
314
418
  /^opt[ -]out$/is,
315
419
  'dont enable',
316
420
  'i do not agree',
@@ -342,6 +446,8 @@ const REJECT_PATTERNS_DUTCH = [
342
446
  'geen cookies toestaan',
343
447
  'liever geen cookies',
344
448
  'functioneel altijd actief',
449
+ // e.g. "ik accepteer geen cookies", "nee, ik wil geen optimale cookies"
450
+ /^(nee,?\s+)?(ik\s+)?(wil|accepteer|aanvaard)\s+geen\s+(\S+\s+)?cookies$/is,
345
451
  ];
346
452
 
347
453
  const REJECT_PATTERNS_FRENCH = [
@@ -463,13 +569,14 @@ const REJECT_PATTERNS_DANISH = [
463
569
  // (accept/allow) only necessary cookies
464
570
  /^(accepter\s+|tillad\s+)?(kun|udelukkende)\s+(strengt\s+)?nødvendige( cookies)?$/is,
465
571
 
466
- // "nej tak" (no thanks)
572
+ // "nej tak" (no thanks), e.g. "du kan sige nej tak til statistik"
467
573
  /^nej(,?\s+tak)?$/is,
574
+ /^(du kan )?(sige )?nej,? tak til \S+$/is,
468
575
  ];
469
576
 
470
577
  const REJECT_PATTERNS_NORWEGIAN = [
471
- // avvis / avslå (reject verbs)
472
- /(^|\s)(avvis|avslå)/is,
578
+ // avvis / avslå (reject verbs), not the status "avslått" (rejected)
579
+ /(^|\s)(avvis|avslå)(\s|$)/is,
473
580
 
474
581
  // (accept/allow/use) only necessary cookies
475
582
  /^(godta\s+|tillat\s+|aksepter\s+|bruk\s+)?(kun|bare)\s+(strengt\s+)?nødvendige( (informasjonskapsler|cookies))?$/is,
@@ -610,7 +717,7 @@ export const SETTINGS_PATTERNS = [
610
717
  'preferences',
611
718
  /customi(s|z)e/is,
612
719
  'more options',
613
- /(manage|configure) (my|your) (preferences|choices|cookies)/is,
720
+ /^(?!.*\b(polic(y|ies)|notice|statement|privacy page)\b).*(manage|configure) (my|your) (preferences|choices|cookies)/is,
614
721
  /(cookie )?preference center/is,
615
722
  'configure',
616
723
  'cookie manager',
@@ -620,7 +727,7 @@ export const SETTINGS_PATTERNS = [
620
727
  /privacy choices/is,
621
728
  /^(privacy|cookie|custom) settings$/is,
622
729
  /^cookies? (settings|preferences|setting)(?!.*\bdo not\b)/is,
623
- /^(?!.*\bpolic(y|ies)\b).*(manage|customize|customise|opt-out|edit).*(cookies|preferences|settings|options)/is,
730
+ /^(?!.*\b(polic(y|ies)|notice|statement|privacy page)\b).*(manage|customize|customise|opt-out|edit).*(cookies|preferences|settings|options)/is,
624
731
  'cookie consent options',
625
732
  'privacy controls',
626
733
  // German
@@ -938,7 +1045,7 @@ export const ACCEPT_PATTERNS = [
938
1045
  export const ACKNOWLEDGE_PATTERNS = [
939
1046
  // close / dismiss the banner/dialog/message (multilingual). The negative lookahead avoids
940
1047
  // accept/save phrases (e.g. "agree and close", "akkoord en sluiten", "speichern schließen").
941
- /^(?!.*\b(accept\w*|accepter|accepteer|accepteren|agree|allow|akkoord|aanvaard\w*|zustimm\w*|annehm\w*|akzeptier\w*|aceptar|acepta|permit\w*|consent\w*|einverstanden|zezw\w*|zgadzam|zgoda|guardar|opslaan|enregistrer|speicher\w*|zapisz)\b)(x\s+|nee,?\s+)?(close|dismiss|schlie(ß|ss)en|sluiten|afsluiten|fermer|cerrar|tanca|beenden|masquer|zamknij)( (this|the|ce|le|el|de|des|het|la|een)?\s*(banner|bandeau|banier|bar|dialog|dialogue|window|okno|melding|message|notification|informa\w*|notificaci\w*|cookie\w*|bannière|rgpd|gdpr|hier|des cookies|de cookies|x))*\.?\s*$/is,
1048
+ /^(?!.*\b(accept\w*|accepter|accepteer|accepteren|agree|allow|akkoord|aanvaard\w*|zustimm\w*|annehm\w*|akzeptier\w*|aceptar|acepta|permit\w*|consent\w*|einverstanden|zezw\w*|zgadzam|zgoda|guardar|opslaan|enregistrer|speicher\w*|zapisz)\b)(x\s+|nee,?\s+)?(close|dismiss|schlie(ß|ss)en|sluiten|afsluiten|fermer|cerrar|tanca|beenden|masquer|zamknij|ukryj)( (this|the|ce|le|el|de|des|het|la|een)?\s*(banner|bandeau|banier|bar|dialog|dialogue|disclaimer|window|okno|melding|message|notification|informa\w*|notificaci\w*|cookie\w*|bannière|rgpd|gdpr|hier|des cookies|de cookies|x))*\.?\s*$/is,
942
1049
 
943
1050
  // "ok" / "okay" / "oké" (optionally followed by a short acknowledgement)
944
1051
  /^(ok|okay|oké|okey|k)([ .!,]*)(got it|verstanden|compris|rozumiem|thanks|gracias|ik begrijp( dat| het)?|continue to website|pour moi|fermer)?[ .!]*$/is,
@@ -950,12 +1057,18 @@ export const ACKNOWLEDGE_PATTERNS = [
950
1057
  /^(confirm|bestätigen|bevestigen|confirmar|potwierdź)[ !.]*$/is,
951
1058
 
952
1059
  // neutral "continue" without accept/reject wording
953
- /^(continuer|doorgaan|ga verder)$/is,
1060
+ /^(continuer|poursuivre|doorgaan|ga verder)$/is,
1061
+ // e.g. "continue browsing", "continue to browse the site"
1062
+ /^continue (to )?brows(e|ing)( (the|our) (site|website))?$/is,
1063
+ // German "hide", e.g. "ausblenden", "hinweis ausblenden", "ok. ausblenden."
1064
+ /^(ok[ .!,]*)?(hinweis )?ausblenden[ .!]*$/is,
954
1065
 
955
1066
  'continue',
956
1067
  'x',
957
1068
  /^got it!?$/,
958
1069
  'acknowledge',
1070
+ // notice-only banner with no choice
1071
+ 'i agree, dismiss this banner',
959
1072
  /^close (banner|cookie notification)$/is,
960
1073
  /understood$/is,
961
1074
  'confirm my choices',
@@ -993,7 +1106,7 @@ export const ACKNOWLEDGE_PATTERNS = [
993
1106
 
994
1107
  // Russian (RU)
995
1108
  // e.g. "понятно", "всё понятно", "хорошо", "ясно"; \w does not match Cyrillic
996
- /^\s*(хорошо|ясно|(вс[её]\s+)?(понятно|понял[аи]?))[!.]*\s*$/is,
1109
+ /^\s*(ок|окей|хорошо|ясно|(вс[её]\s+)?(понятно|понял[аи]?))[!.]*\s*$/is,
997
1110
  // e.g. "закрыть", "закрыть уведомление о cookie"
998
1111
  /^\s*закрыть([\s-]+(это|эту|баннер|уведомлени[а-яё]*|окно|сообщени[а-яё]*|плашк[а-яё]*|информаци[а-яё]*)){0,2}([\s-]+(о|об)[\s-]+(cookie|куки[а-яё]*|файл[а-яё]*[\s-]+cookie))?\s*$/is,
999
1112
  // e.g. "больше не показывать", "не показывать снова"
@@ -1001,4 +1114,9 @@ export const ACKNOWLEDGE_PATTERNS = [
1001
1114
  // e.g. "подтвердить", "подтверждаю выбор", "сохранить настройки", "сохранить и закрыть"
1002
1115
  /^\s*(подтвер(дить|ждаю|ждени[а-яё]*)|сохран(ить|яю|ение))([\s-]+(мой|мои|моё|свой|свои|своё)?[\s-]*(выбор[а-яё]*|настройк[а-яё]*|парамет[а-яё]*|предпочтени[а-яё]*|согласи[а-яё]*))?([\s-]+и[\s-]+(закрыть|продолжить))?\s*$/is,
1003
1116
  'продолжить',
1117
+
1118
+ // Japanese (JA)
1119
+ // e.g. "閉じる" (close), "確認" / "確認しました" (confirmed), "了解" (understood), "確認して閉じる";
1120
+ // not "同意して閉じる" (agree and close) or the verb "確認する" (confirm)
1121
+ /^(確認|了解)(しました)?$|^((確認|了解)して)?閉じる$/,
1004
1122
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "18.1.0",
3
+ "version": "18.3.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "aa-cookie-banner",
3
- "vendorUrl": "https://www.aa.com/",
3
+ "vendorUrl": "https://www.envoyair.com/",
4
4
  "runContext": {
5
- "urlPattern": "^https://(www\\.)?(aa|envoyair|psaairlines)\\.com/"
5
+ "urlPattern": "^https://(www\\.)?(envoyair|psaairlines)\\.com/"
6
6
  },
7
7
  "prehideSelectors": ["adc-cookie-banner"],
8
8
  "detectCmp": [
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "acconsento",
3
+ "vendorUrl": "https://acconsento.click/",
4
+ "prehideSelectors": ["#acconsento-click .acconsento-click-overlay-dialog"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#acconsento-click .acconsento-click-consent-banner"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#acconsento-click .acconsento-click-consent-banner"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#acconsento-click-button-accept-all [role=button]"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "if": {
23
+ "exists": "#acconsento-click-button-necessary-only [role=button]"
24
+ },
25
+ "then": [
26
+ {
27
+ "waitForThenClick": "#acconsento-click-button-necessary-only [role=button]"
28
+ }
29
+ ],
30
+ "else": [
31
+ {
32
+ "waitForThenClick": "#acconsento-click .acconsento-click-consent-banner .el-acconsento-dialog__headerbtn"
33
+ }
34
+ ]
35
+ }
36
+ ],
37
+ "test": [
38
+ {
39
+ "cookieContains": "acconsento-clicked=1"
40
+ },
41
+ {
42
+ "cookieContains": "tracking%3D0%26marketing%3D0"
43
+ }
44
+ ]
45
+ }
@@ -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
+ }