@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.
- package/CHANGELOG.md +131 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +256 -65
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +256 -65
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +256 -65
- package/dist/autoconsent.esm.js +256 -65
- package/dist/autoconsent.playwright.js +256 -65
- package/dist/autoconsent.standalone.js +257 -66
- package/dist/heuristics.cjs.js +264 -67
- package/dist/heuristics.mjs +260 -66
- package/dist/types/heuristic-patterns.d.ts +4 -1
- package/docs/heuristic-detection.md +1 -0
- package/lib/heuristic-literals.ts +90 -16
- package/lib/heuristic-negatives.ts +15 -10
- package/lib/heuristic-patterns.ts +153 -35
- package/package.json +1 -1
- package/rules/autoconsent/aa-cookie-banner.json +2 -2
- package/rules/autoconsent/acconsento.json +45 -0
- package/rules/autoconsent/adaptivemedia.json +30 -0
- package/rules/autoconsent/adeac-jp.json +29 -0
- package/rules/autoconsent/agenziaentrate-geoportale.json +35 -0
- package/rules/autoconsent/alertnotification-alert-bar.json +27 -0
- package/rules/autoconsent/amasty-gdpr-hyva.json +6 -6
- package/rules/autoconsent/appconsent.json +8 -8
- package/rules/autoconsent/askas.json +39 -0
- package/rules/autoconsent/atomstore.json +44 -0
- package/rules/autoconsent/b1ng-cc.json +23 -0
- package/rules/autoconsent/betheme.json +10 -0
- package/rules/autoconsent/bgk-pl.json +18 -0
- package/rules/autoconsent/biblia-online.pl.json +40 -0
- package/rules/autoconsent/bitauto.json +57 -0
- package/rules/autoconsent/blogger-cookie-notice.json +10 -0
- package/rules/autoconsent/brainshare.json +12 -0
- package/rules/autoconsent/brandsforstudents.ch.json +19 -0
- package/rules/autoconsent/bt-com-au.json +13 -0
- package/rules/autoconsent/c-cookie-message.json +9 -0
- package/rules/autoconsent/calclife.net.json +43 -0
- package/rules/autoconsent/casino-guru.json +28 -0
- package/rules/autoconsent/code3-cookies-consent.json +48 -0
- package/rules/autoconsent/complianz-opt-out.json +7 -2
- package/rules/autoconsent/cookie-agree-banner.json +9 -0
- package/rules/autoconsent/cookie-box-notice.json +41 -0
- package/rules/autoconsent/cookie-use-notice.json +12 -0
- package/rules/autoconsent/cookieinfo-zamknij.json +30 -0
- package/rules/autoconsent/cookieinfo.json +1 -1
- package/rules/autoconsent/cookies-and-content-security-policy.json +45 -0
- package/rules/autoconsent/cookiesbanner-preference.json +14 -0
- package/rules/autoconsent/cookiesmodal-pl.json +18 -0
- package/rules/autoconsent/creditunionsa.json +12 -0
- package/rules/autoconsent/cstudios.json +35 -0
- package/rules/autoconsent/dandomain.json +41 -0
- package/rules/autoconsent/datezone.json +22 -0
- package/rules/autoconsent/dfactory-cookie-notice.json +13 -1
- package/rules/autoconsent/didomi.json +7 -1
- package/rules/autoconsent/dlibra.json +32 -0
- package/rules/autoconsent/dnb.json +30 -0
- package/rules/autoconsent/e-file.json +44 -0
- package/rules/autoconsent/erli-pl.json +36 -0
- package/rules/autoconsent/facebook.json +16 -6
- package/rules/autoconsent/fellow-pl.json +16 -0
- package/rules/autoconsent/fn-se.json +17 -0
- package/rules/autoconsent/gdpr-jp-notice.json +25 -0
- package/rules/autoconsent/gdpsystem.json +21 -0
- package/rules/autoconsent/help-ch.json +25 -0
- package/rules/autoconsent/icom-co-jp.json +34 -0
- package/rules/autoconsent/imyfone.json +25 -0
- package/rules/autoconsent/interface-medien-gebaeck.json +33 -0
- package/rules/autoconsent/intermedia-cms-fsi.json +30 -0
- package/rules/autoconsent/invision-guest-terms.json +14 -0
- package/rules/autoconsent/ipkobiznes.pl.json +12 -0
- package/rules/autoconsent/jquery-cookiepolicy.json +30 -0
- package/rules/autoconsent/lieder.net.json +13 -0
- package/rules/autoconsent/loescher.json +44 -0
- package/rules/autoconsent/menti-com.json +37 -0
- package/rules/autoconsent/meowdb.json +65 -0
- package/rules/autoconsent/monex-co-jp.json +34 -0
- package/rules/autoconsent/mos-cudzoziemcy-gov-pl.json +29 -0
- package/rules/autoconsent/nnk-theme-cookie-bar.json +29 -0
- package/rules/autoconsent/no-transit-consent.json +32 -0
- package/rules/autoconsent/nperf.json +33 -0
- package/rules/autoconsent/octoparse.json +33 -0
- package/rules/autoconsent/okayama-kanko-jp.json +31 -0
- package/rules/autoconsent/oko-press.json +23 -0
- package/rules/autoconsent/ometv-pl.json +33 -0
- package/rules/autoconsent/oresundstag.json +40 -0
- package/rules/autoconsent/pfron-gov-pl.json +37 -0
- package/rules/autoconsent/pl-bip-cookies.json +25 -0
- package/rules/autoconsent/prestashop-advanced-cookie-banner.json +49 -0
- package/rules/autoconsent/qudosbank-com-au.json +14 -0
- package/rules/autoconsent/renaud-bray.json +44 -0
- package/rules/autoconsent/roblox-creator-hub.json +48 -0
- package/rules/autoconsent/rws-app.json +13 -0
- package/rules/autoconsent/san-tatsu.json +32 -0
- package/rules/autoconsent/saos-org-pl.json +35 -0
- package/rules/autoconsent/sda-it.json +37 -0
- package/rules/autoconsent/seria-group.json +35 -0
- package/rules/autoconsent/shoper.json +10 -0
- package/rules/autoconsent/shopgold.json +83 -0
- package/rules/autoconsent/shueisha-hpplus.json +27 -0
- package/rules/autoconsent/silver-nu.json +31 -0
- package/rules/autoconsent/soleil-sitevision-cookie-message.json +32 -0
- package/rules/autoconsent/stellantis-psa.json +18 -1
- package/rules/autoconsent/surfshark.json +21 -0
- package/rules/autoconsent/synergy-net-au.json +33 -0
- package/rules/autoconsent/tcl.json +50 -0
- package/rules/autoconsent/teeshoppen.json +42 -0
- package/rules/autoconsent/tuki-cookieterms.json +20 -0
- package/rules/autoconsent/tullys-jp.json +11 -0
- package/rules/autoconsent/weblegal.json +10 -0
- package/rules/autoconsent/weblication.json +38 -0
- package/rules/autoconsent/worldbank.json +5 -5
- package/rules/autoconsent/wuerth.json +57 -0
- package/rules/autoconsent/x28-privacy-settings.json +18 -0
- package/rules/autoconsent/ynjn.json +34 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/aa-cookie-banner.spec.ts +1 -1
- package/tests/acconsento.spec.ts +8 -0
- package/tests/adaptivemedia.spec.ts +3 -0
- package/tests/adeac-jp.spec.ts +3 -0
- package/tests/agenziaentrate-geoportale.spec.ts +5 -0
- package/tests/alertnotification-alert-bar.spec.ts +11 -0
- package/tests/amasty-gdpr-hyva.spec.ts +1 -0
- package/tests/appconsent.spec.ts +1 -1
- package/tests/askas.spec.ts +9 -0
- package/tests/atomstore.spec.ts +9 -0
- package/tests/b1ng-cc.spec.ts +3 -0
- package/tests/betheme.spec.ts +9 -0
- package/tests/bgk-pl.spec.ts +5 -0
- package/tests/biblia-online.pl.spec.ts +3 -0
- package/tests/bitauto.spec.ts +3 -0
- package/tests/blogger-cookie-notice.spec.ts +9 -0
- package/tests/brainshare.spec.ts +3 -0
- package/tests/brandsforstudents.ch.spec.ts +6 -0
- package/tests/bt-com-au.spec.ts +3 -0
- package/tests/c-cookie-message.spec.ts +9 -0
- package/tests/calclife.net.spec.ts +3 -0
- package/tests/casino-guru.spec.ts +15 -0
- package/tests/code3-cookies-consent.spec.ts +8 -0
- package/tests/complianz-opt-out.spec.ts +13 -3
- package/tests/cookie-agree-banner.spec.ts +3 -0
- package/tests/cookie-box-notice.spec.ts +10 -0
- package/tests/cookie-use-notice.spec.ts +6 -0
- package/tests/cookieinfo-zamknij.spec.ts +3 -0
- package/tests/cookies-and-content-security-policy.spec.ts +16 -0
- package/tests/cookiesbanner-preference.spec.ts +8 -0
- package/tests/cookiesmodal-pl.spec.ts +3 -0
- package/tests/creditunionsa.spec.ts +3 -0
- package/tests/cstudios.spec.ts +3 -0
- package/tests/dandomain.spec.ts +18 -0
- package/tests/datezone.spec.ts +3 -0
- package/tests/didomi.spec.ts +8 -0
- package/tests/dlibra.spec.ts +8 -0
- package/tests/dnb.spec.ts +5 -0
- package/tests/e-file.spec.ts +9 -0
- package/tests/erli-pl.spec.ts +4 -0
- package/tests/facebook.spec.ts +1 -1
- package/tests/fellow-pl.spec.ts +5 -0
- package/tests/fn-se.spec.ts +3 -0
- package/tests/gdpr-jp-notice.spec.ts +3 -0
- package/tests/gdpsystem.spec.ts +3 -0
- package/tests/gravito.spec.ts +6 -0
- package/tests/help-ch.spec.ts +14 -0
- package/tests/icom-co-jp.spec.ts +3 -0
- package/tests/imyfone.spec.ts +9 -0
- package/tests/interface-medien-gebaeck.spec.ts +13 -0
- package/tests/intermedia-cms-fsi.spec.ts +8 -0
- package/tests/invision-guest-terms.spec.ts +10 -0
- package/tests/ipkobiznes.pl.spec.ts +3 -0
- package/tests/jquery-cookiepolicy.spec.ts +10 -0
- package/tests/lieder.net.spec.ts +3 -0
- package/tests/loescher.spec.ts +5 -0
- package/tests/menti-com.spec.ts +3 -0
- package/tests/meowdb.spec.ts +3 -0
- package/tests/monex-co-jp.spec.ts +3 -0
- package/tests/mos-cudzoziemcy-gov-pl.spec.ts +3 -0
- package/tests/nnk-theme-cookie-bar.spec.ts +3 -0
- package/tests/no-transit-consent.spec.ts +3 -0
- package/tests/nperf.spec.ts +3 -0
- package/tests/octoparse.spec.ts +6 -0
- package/tests/okayama-kanko-jp.spec.ts +3 -0
- package/tests/oko-press.spec.ts +3 -0
- package/tests/ometv-pl.spec.ts +4 -0
- package/tests/oresundstag.spec.ts +3 -0
- package/tests/pfron-gov-pl.spec.ts +3 -0
- package/tests/pl-bip-cookies.spec.ts +3 -0
- package/tests/prestashop-advanced-cookie-banner.spec.ts +9 -0
- package/tests/qudosbank-com-au.spec.ts +3 -0
- package/tests/renaud-bray.spec.ts +5 -0
- package/tests/roblox-creator-hub.spec.ts +5 -0
- package/tests/rws-app.spec.ts +15 -0
- package/tests/san-tatsu.spec.ts +3 -0
- package/tests/saos-org-pl.spec.ts +3 -0
- package/tests/sda-it.spec.ts +7 -0
- package/tests/seria-group.spec.ts +3 -0
- package/tests/shoper.spec.ts +3 -0
- package/tests/shopgold.spec.ts +3 -0
- package/tests/shueisha-hpplus.spec.ts +3 -0
- package/tests/silver-nu.spec.ts +3 -0
- package/tests/soleil-sitevision-cookie-message.spec.ts +8 -0
- package/tests/stellantis-psa.spec.ts +2 -0
- package/tests/surfshark.spec.ts +3 -0
- package/tests/synergy-net-au.spec.ts +8 -0
- package/tests/tcl.spec.ts +9 -0
- package/tests/teeshoppen.spec.ts +7 -0
- package/tests/tuki-cookieterms.spec.ts +8 -0
- package/tests/tullys-jp.spec.ts +3 -0
- package/tests/weblegal.spec.ts +8 -0
- package/tests/weblication.spec.ts +9 -0
- package/tests/worldbank.spec.ts +1 -0
- package/tests/wuerth.spec.ts +8 -0
- package/tests/x28-privacy-settings.spec.ts +4 -0
- package/tests/ynjn.spec.ts +3 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +356 -3
|
@@ -8,13 +8,16 @@ export type DetectPattern = RegExp | {
|
|
|
8
8
|
/** A detect pattern's regex. */
|
|
9
9
|
export declare const patternOf: (p: DetectPattern) => RegExp;
|
|
10
10
|
export declare const BY_CONTINUING_PRIVACY: RegExp;
|
|
11
|
-
export declare const ACCEPT_ALL: RegExp;
|
|
12
11
|
export declare const USE_OF_COOKIES: RegExp;
|
|
13
12
|
export declare const UTILISATION_DES_COOKIES: RegExp;
|
|
14
13
|
export declare const ACCEPTEZ_UTILISATION: RegExp;
|
|
15
14
|
export declare const VERWENDUNG_VON_COOKIES: RegExp;
|
|
16
15
|
export declare const DE_COOKIE_VERB: RegExp;
|
|
17
16
|
export declare const GEBRUIK_VAN_COOKIES: RegExp;
|
|
17
|
+
export declare const USO_DEI_COOKIE: RegExp;
|
|
18
|
+
export declare const ANVANDNING_AV_COOKIES: RegExp;
|
|
19
|
+
export declare const DE_THIS_SITE_COOKIES: RegExp;
|
|
20
|
+
export declare const DE_SITE_USES_COOKIES: RegExp;
|
|
18
21
|
export declare const DETECT_PATTERNS: DetectPattern[];
|
|
19
22
|
/**
|
|
20
23
|
* @type {Array<string|RegExp>}
|
|
@@ -66,6 +66,7 @@ Whole-text negatives with `input: 'popup'` are the popup exclusions:
|
|
|
66
66
|
|
|
67
67
|
- **`age-gate-popup`:** age wording, unless a cookie choice or the notice's own control is present and no leave or "I am under 18" button is. A bare "Accept all" doesn't count as a cookie choice, since it can be the gate's own confirmation.
|
|
68
68
|
- **`legal-agreement`:** license and terms clauses that cookie notices don't contain.
|
|
69
|
+
- **`investor-gate`:** investor eligibility wording (eligible counterparties, not for retail clients, confirming investor status), whose accept or decline confirms the visitor's status, not cookies.
|
|
69
70
|
|
|
70
71
|
`excludedBy(text, input)` lists the whole-text negatives that hit a text, whether or not any detect pattern matches it. It's useful for tests and for explaining a result.
|
|
71
72
|
|
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
// Entry i holds the literals DETECT_PATTERNS[i] needs to match (see docs/heuristic-prefilter.md).
|
|
3
3
|
export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
4
4
|
["accept cookies"],
|
|
5
|
-
["accept all"],
|
|
6
|
-
["reject all"],
|
|
7
5
|
["only necessary cookies"],
|
|
8
6
|
[],
|
|
7
|
+
["by using "],
|
|
8
|
+
["by clicking"],
|
|
9
|
+
["accept all cookies"],
|
|
10
|
+
["reject non-"],
|
|
11
|
+
["cookies "],
|
|
12
|
+
[" cookies on your "],
|
|
13
|
+
["your consent to "],
|
|
14
|
+
["you agree to "],
|
|
15
|
+
["blocking some types of cookies"],
|
|
16
|
+
["powered by usercentrics","realisiert mit","realized with"],
|
|
9
17
|
[],
|
|
10
|
-
["
|
|
18
|
+
[" cookie"],
|
|
19
|
+
["cookie files"],
|
|
20
|
+
["cookies"],
|
|
21
|
+
["cookies?"],
|
|
11
22
|
["we are using cookies"],
|
|
12
23
|
["use of cookies"],
|
|
13
24
|
["website uses cookies to enhance your browsing experience"],
|
|
@@ -16,7 +27,7 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
16
27
|
["such as cookies"],
|
|
17
28
|
["read more about"],
|
|
18
29
|
["consent to"],
|
|
19
|
-
["we and our
|
|
30
|
+
["we and our "],
|
|
20
31
|
["information"],
|
|
21
32
|
["store and/or access information"],
|
|
22
33
|
["personalised ads and content, ad and content measurement"],
|
|
@@ -38,9 +49,15 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
38
49
|
["information"],
|
|
39
50
|
["rights with regard to the sale"],
|
|
40
51
|
["we use technologies "],
|
|
52
|
+
["party tools to collect information"],
|
|
41
53
|
["continue reading with advertising"," tracking"],
|
|
42
54
|
["consent and continue"],
|
|
43
55
|
["store or retrieve information on your browser","stockées dans votre navigateur ou récupérées"],
|
|
56
|
+
["we have cookies"],
|
|
57
|
+
[" your consent at any time","einwilligung jederzeit widerrufen"],
|
|
58
|
+
["analytics ","we use google analytics"],
|
|
59
|
+
[" consenso"],
|
|
60
|
+
["accept or "],
|
|
44
61
|
["utilisons"],
|
|
45
62
|
["cookies"],
|
|
46
63
|
["consentement"],
|
|
@@ -51,16 +68,18 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
51
68
|
["stocker"],
|
|
52
69
|
["consentement"],
|
|
53
70
|
["consentement"],
|
|
54
|
-
["accepter"],
|
|
55
71
|
["utilisation"],
|
|
56
72
|
["technologies"],
|
|
57
73
|
["utilisation"],
|
|
58
74
|
["continuer sans accepter"],
|
|
59
|
-
["tout refuser"],
|
|
60
75
|
[" tous les cookies"],
|
|
61
76
|
["je refuse"],
|
|
62
77
|
["refuser et continuer"],
|
|
63
|
-
["
|
|
78
|
+
["en cliquant sur"],
|
|
79
|
+
["vous consentez"],
|
|
80
|
+
["accepter ou refuser "],
|
|
81
|
+
["les cookies nous "],
|
|
82
|
+
["optionnels","publicitaires","non essentiels"],
|
|
64
83
|
["seulement nécessaires"],
|
|
65
84
|
["je désactive les finalités non essentielles"],
|
|
66
85
|
["cookies essentiels uniquement"],
|
|
@@ -70,6 +89,10 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
70
89
|
["consentez à l"," cookies"],
|
|
71
90
|
["les cookies nous permettent","nos partenaires et nous"],
|
|
72
91
|
["accepter "],
|
|
92
|
+
["on utilise","nous utilisons"],
|
|
93
|
+
["naviguant","poursuivant"],
|
|
94
|
+
[],
|
|
95
|
+
["confidentialité"],
|
|
73
96
|
["verwenden"],
|
|
74
97
|
["partner"],
|
|
75
98
|
["zugriff auf informationen auf"],
|
|
@@ -81,7 +104,6 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
81
104
|
["auswahl"],
|
|
82
105
|
["technologien"],
|
|
83
106
|
["verwenden"],
|
|
84
|
-
["ablehnen"],
|
|
85
107
|
["zusätzliche","essenzielle","funktionale","notwendige","erforderliche"],
|
|
86
108
|
["einwilligung","zustimmung","cookies"],
|
|
87
109
|
["ablehnen"],
|
|
@@ -98,24 +120,52 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
98
120
|
["zustimmen und weiter"," ohne zu "],
|
|
99
121
|
["einwilligung","zustimmung","zustimmung","einwilligung"],
|
|
100
122
|
["tracking-technologien"],
|
|
123
|
+
["cookies"],
|
|
124
|
+
["cookies"],
|
|
125
|
+
["cookies"],
|
|
126
|
+
["cookies"],
|
|
127
|
+
["datenschutz"],
|
|
101
128
|
["verwendung "],
|
|
102
129
|
["mit werbetracking weiterlesen","weiter mit werbung","con tracking e annunci"],
|
|
130
|
+
["cookies"],
|
|
131
|
+
[],
|
|
132
|
+
["analyse","statistik"],
|
|
133
|
+
["marketing","tracking"],
|
|
134
|
+
["cookies oder "],
|
|
135
|
+
["stimmen sie","gestatten sie","willigen sie","erklären sie sich"],
|
|
136
|
+
["benötigen wir "],
|
|
137
|
+
["einwilligung","zustimmung","einwilligung","zustimmung"],
|
|
138
|
+
["welche cookies sie "],
|
|
139
|
+
["cookie"],
|
|
140
|
+
["in form von cookies","blockierung bestimmter arten von cookies"],
|
|
141
|
+
["notwendige","essenzielle","funktionale"],
|
|
142
|
+
["cookies"],
|
|
143
|
+
["zwecken und anbietern"],
|
|
144
|
+
["weiter ohne akzeptanz"],
|
|
103
145
|
["gebruik"],
|
|
104
146
|
["gebruiken"],
|
|
105
147
|
["vergelijkbare"],
|
|
106
148
|
["afwijzen","weigeren","verwerpen"],
|
|
107
149
|
["noodzakelijk"],
|
|
108
150
|
["cookies weigeren"],
|
|
109
|
-
["
|
|
151
|
+
["cookies"],
|
|
110
152
|
["doorgaan zonder "],
|
|
111
|
-
["optionele","functionele","functioneel","noodzakelijke","essentiële"],
|
|
112
|
-
["wijs alles af"],
|
|
153
|
+
["optionele","functionele","functioneel","noodzakelijke","essentiële","standaard"],
|
|
113
154
|
[],
|
|
114
155
|
["onze partners vragen om "],
|
|
115
156
|
["wij en onze "],
|
|
116
157
|
[" cookies"],
|
|
117
|
-
["accepteer "],
|
|
158
|
+
["accepteer alle cookies"],
|
|
118
159
|
["analytische","functionele","essentiële","noodzakelijke"],
|
|
160
|
+
[],
|
|
161
|
+
["ervaring","gebruikerservaring"],
|
|
162
|
+
["gebruiken","plaatsen"],
|
|
163
|
+
["gebruiken "],
|
|
164
|
+
["plaatsen van"],
|
|
165
|
+
["te blijven gebruiken"],
|
|
166
|
+
["te klikken"],
|
|
167
|
+
["alle cookies accepteren"],
|
|
168
|
+
["toestemming voor "],
|
|
119
169
|
[" contin"],
|
|
120
170
|
["cookie"],
|
|
121
171
|
[" uso de cookies"],
|
|
@@ -134,13 +184,18 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
134
184
|
["almacenar","almacenamos"],
|
|
135
185
|
["nuestros socios solicitan su consentimiento"],
|
|
136
186
|
["tanto nosotros como","nosotros y"],
|
|
137
|
-
["
|
|
187
|
+
["continuar sin aceptar","solo las necesarias"],
|
|
138
188
|
["uso de "],
|
|
139
189
|
["cookies "],
|
|
140
190
|
["las cookies nos "],
|
|
141
191
|
["instalamos","empleamos"],
|
|
142
192
|
["cookies","necesitamos usar cookies"],
|
|
143
|
-
["
|
|
193
|
+
["al hacer clic en"],
|
|
194
|
+
[" todas las cookies"],
|
|
195
|
+
["estrictamente necesarias"],
|
|
196
|
+
["almacenar o acceder a "],
|
|
197
|
+
["as de seguimiento"],
|
|
198
|
+
["cookie"],
|
|
144
199
|
["używać","używamy"],
|
|
145
200
|
["cele przetwarzania twoich danych przez zaufanych partnerów iab"],
|
|
146
201
|
["dzięki "],
|
|
@@ -185,6 +240,7 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
185
240
|
["технологи"],
|
|
186
241
|
["cookie","куки"],
|
|
187
242
|
[],
|
|
243
|
+
["браузер"],
|
|
188
244
|
["usiamo","utilizziamo"],
|
|
189
245
|
["cookie"],
|
|
190
246
|
["noi e i nostri"],
|
|
@@ -193,15 +249,33 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
193
249
|
["tecnici","di profilazione","di terze parti","analitici","statistici","di marketing"],
|
|
194
250
|
["acconsent","accett"],
|
|
195
251
|
[" navigazione"],
|
|
196
|
-
["accetta","accetto","accettare","rifiuta","rifiuto","rifiutare"],
|
|
197
252
|
[" senza accettare"],
|
|
198
253
|
["rifiuta e abbonati"],
|
|
199
254
|
["consenso "],
|
|
200
255
|
[" nostri "],
|
|
201
256
|
["terze parti selezionate"],
|
|
202
257
|
["archiviare","archiviamo","memorizzare","memorizziamo"],
|
|
258
|
+
[" dei cookie"],
|
|
259
|
+
["utilizz"],
|
|
260
|
+
["questo","il nostro"],
|
|
261
|
+
["tecnologie "],
|
|
262
|
+
["cliccando su"],
|
|
263
|
+
[" tutti i cookie"],
|
|
264
|
+
["noi e i nostri "],
|
|
265
|
+
["essenziali","necessari"],
|
|
203
266
|
["använder"],
|
|
267
|
+
["cookies","kakor"],
|
|
268
|
+
["används ","används"],
|
|
269
|
+
["användning","användningen","användandet"],
|
|
270
|
+
["godkänn","accepter","tillåt","du tillåter"],
|
|
271
|
+
[" nödvändiga"],
|
|
272
|
+
["lagra och/eller "],
|
|
273
|
+
[" partner"],
|
|
274
|
+
["tekniker "],
|
|
204
275
|
["cookie","クッキー"],
|
|
205
|
-
["
|
|
276
|
+
["閲覧履歴","端末情報","利用者情報"],
|
|
277
|
+
[" cookies"],
|
|
206
278
|
["informasjonskapsler","cookies"],
|
|
279
|
+
["vi benytter"],
|
|
280
|
+
["bruk av "],
|
|
207
281
|
];
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
import {
|
|
7
7
|
HeuristicInput,
|
|
8
8
|
ACCEPTEZ_UTILISATION,
|
|
9
|
-
ACCEPT_ALL,
|
|
10
9
|
BY_CONTINUING_PRIVACY,
|
|
11
10
|
DE_COOKIE_VERB,
|
|
11
|
+
DE_SITE_USES_COOKIES,
|
|
12
|
+
DE_THIS_SITE_COOKIES,
|
|
12
13
|
GEBRUIK_VAN_COOKIES,
|
|
13
14
|
USE_OF_COOKIES,
|
|
14
15
|
UTILISATION_DES_COOKIES,
|
|
@@ -124,6 +125,10 @@ const CONSENT_WORDS =
|
|
|
124
125
|
const LEGAL_AGREEMENT =
|
|
125
126
|
/\b(?:end[- ]user licen[cs]e agreement|licen[cs]e agreement|limitation of liability|governing law|indemnif\w*|hereunder|disclaimers? of warrant\w*|warrant(?:y|ies) of merchantability)\b/i;
|
|
126
127
|
|
|
128
|
+
// investor eligibility gates on fund managers' sites: their accept/decline confirms investor status, not cookies
|
|
129
|
+
const INVESTOR_GATE =
|
|
130
|
+
/\beligible\s+counterpart(?:y|ies)\b|\bnot\s+(?:suitable|intended)\s+for\s+retail\s+(?:clients|investors)\b|\bconfirm\w*\s+(?:that\s+)?(?:you\s+are|i\s+am)\s+an?\s+(?:(?:professional|institutional|qualified|accredited|sophisticated)\s+(?:investor|client)|financial\s+(?:intermediary|advis[eo]r))\b/i;
|
|
131
|
+
|
|
127
132
|
// drop single matches whose context shows the text isn't a consent notice, or whole popups that aren't one
|
|
128
133
|
export const DETECT_CONTEXT_NEGATIVES: ContextNegative[] = [
|
|
129
134
|
// popups with their own age confirmation are age gates, even when they mention cookies; a bare accept doesn't count
|
|
@@ -131,6 +136,8 @@ export const DETECT_CONTEXT_NEGATIVES: ContextNegative[] = [
|
|
|
131
136
|
{ name: 'age-gate-popup', pattern: AGE_WORDING, unless: ageGateUnless(COOKIE_CHOICE_RE), whole: true, input: 'popup' },
|
|
132
137
|
// a license or terms agreement may mention cookies, and its decline button must not be clicked as a cookie reject
|
|
133
138
|
{ name: 'legal-agreement', pattern: LEGAL_AGREEMENT, whole: true, input: 'popup' },
|
|
139
|
+
// an investor eligibility gate may mention cookies, and its decline button must not be clicked as a cookie reject
|
|
140
|
+
{ name: 'investor-gate', pattern: INVESTOR_GATE, whole: true, input: 'popup' },
|
|
134
141
|
// page text next to an age gate, unless a consent control is there too
|
|
135
142
|
{ name: 'age-gate', pattern: AGE_WORDING, unless: ageGateUnless(NOTICE_CONTROL), lines: [4, 5], input: 'page' },
|
|
136
143
|
// terms of use need cookie or consent wording; a privacy-policy-only notice needs that or a button
|
|
@@ -154,14 +161,6 @@ export const DETECT_CONTEXT_NEGATIVES: ContextNegative[] = [
|
|
|
154
161
|
input: 'page',
|
|
155
162
|
appliesTo: [USE_OF_COOKIES, VERWENDUNG_VON_COOKIES, UTILISATION_DES_COOKIES, GEBRUIK_VAN_COOKIES],
|
|
156
163
|
},
|
|
157
|
-
// "accept all" in prose; case-sensitive since button labels run together in innerText
|
|
158
|
-
{
|
|
159
|
-
name: 'accept-all-prose',
|
|
160
|
-
pattern: /\baccept all [a-z]|\baccept All[a-z]/,
|
|
161
|
-
unless: /accept all (?:cookies|and|&)/i,
|
|
162
|
-
window: 15,
|
|
163
|
-
appliesTo: [ACCEPT_ALL],
|
|
164
|
-
},
|
|
165
164
|
{
|
|
166
165
|
name: 'acceptez-terms',
|
|
167
166
|
pattern: /conditions (?:générales )?d.utilisation|\bcgu\b/i,
|
|
@@ -169,5 +168,11 @@ export const DETECT_CONTEXT_NEGATIVES: ContextNegative[] = [
|
|
|
169
168
|
appliesTo: [ACCEPTEZ_UTILISATION],
|
|
170
169
|
},
|
|
171
170
|
// the same sentence is also a footer line with only a "learn more" link
|
|
172
|
-
{
|
|
171
|
+
{
|
|
172
|
+
name: 'de-cookie-verb-needs-control',
|
|
173
|
+
unless: NOTICE_CONTROL,
|
|
174
|
+
lines: [1, 6],
|
|
175
|
+
input: 'page',
|
|
176
|
+
appliesTo: [DE_COOKIE_VERB, DE_THIS_SITE_COOKIES, DE_SITE_USES_COOKIES],
|
|
177
|
+
},
|
|
173
178
|
];
|