@duckduckgo/autoconsent 17.4.0 → 18.0.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/.prettierignore +1 -0
- package/AGENTS.md +2 -0
- package/CHANGELOG.md +34 -0
- package/dist/addon-firefox/background.bundle.js +2 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +602 -53
- 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/background.bundle.js +2 -0
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +602 -53
- 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 +608 -59
- package/dist/autoconsent.esm.js +608 -59
- package/dist/autoconsent.playwright.js +602 -53
- package/dist/autoconsent.standalone.js +609 -60
- package/dist/heuristics.cjs.js +621 -52
- package/dist/heuristics.mjs +609 -50
- package/dist/types/eval-snippets.d.ts +1 -0
- package/dist/types/heuristic-classify.d.ts +2 -6
- package/dist/types/heuristic-detect.d.ts +32 -0
- package/dist/types/heuristic-literals.d.ts +1 -0
- package/dist/types/heuristic-negatives.d.ts +25 -0
- package/dist/types/heuristic-patterns.d.ts +18 -2
- package/dist/types/heuristic-prefilter.d.ts +13 -0
- package/docs/heuristic-detection.md +78 -0
- package/docs/heuristic-prefilter.md +62 -0
- package/eslint.config.mjs +16 -1
- package/lib/eval-snippets.ts +2 -0
- package/lib/heuristic-classify.ts +4 -39
- package/lib/heuristic-detect.ts +209 -0
- package/lib/heuristic-literals.ts +207 -0
- package/lib/heuristic-negatives.ts +173 -0
- package/lib/heuristic-patterns.ts +104 -31
- package/lib/heuristic-prefilter.ts +40 -0
- package/lib/heuristics.ts +8 -4
- package/lib/web.ts +1 -1
- package/package.json +2 -1
- package/rules/autoconsent/binogi.json +32 -0
- package/rules/autoconsent/bokio.json +32 -0
- package/rules/autoconsent/botble-cookie-consent.json +16 -0
- package/rules/autoconsent/calcolo-tools.json +23 -0
- package/rules/autoconsent/consilium-europa-eu.json +35 -0
- package/rules/autoconsent/dtu-findit.json +47 -0
- package/rules/autoconsent/hikvision.com.json +18 -0
- package/rules/autoconsent/hurra-consent.json +16 -0
- package/rules/autoconsent/isidewith.com.json +38 -0
- package/rules/autoconsent/landgate.json +10 -0
- package/rules/autoconsent/pakamera.json +19 -0
- package/rules/autoconsent/purecookie-cosmetic.json +13 -0
- package/rules/autoconsent/random-org.json +41 -0
- package/rules/autoconsent/tallink.json +13 -0
- package/rules/autoconsent/tealium.json +4 -1
- package/rules/autoconsent/typo3-cookieconsent.json +9 -0
- package/rules/autoconsent/vinnies-org-au.json +29 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/scripts/build-heuristic-literals.ts +24 -0
- package/scripts/required-literals.ts +177 -0
- package/tests/binogi.spec.ts +3 -0
- package/tests/bokio.spec.ts +6 -0
- package/tests/botble-cookie-consent.spec.ts +11 -0
- package/tests/calcolo-tools.spec.ts +3 -0
- package/tests/consilium-europa-eu.spec.ts +3 -0
- package/tests/dtu-findit.spec.ts +3 -0
- package/tests/hikvision.com.spec.ts +3 -0
- package/tests/hurra-consent.spec.ts +8 -0
- package/tests/isidewith.com.spec.ts +3 -0
- package/tests/landgate.spec.ts +3 -0
- package/tests/pakamera.spec.ts +5 -0
- package/tests/purecookie-cosmetic.spec.ts +8 -0
- package/tests/random-org.spec.ts +3 -0
- package/tests/tallink.spec.ts +3 -0
- package/tests/typo3-cookieconsent.spec.ts +10 -0
- package/tests/vinnies-org-au.spec.ts +3 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +222 -8
- package/tests-wtr/heuristics/regex-syntax.test.ts +81 -0
- package/rules/generated/auto_NL_bonprix.nl_ovi.json +0 -40
- package/tests/generated/auto_NL_bonprix.nl_ovi.spec.ts +0 -2
package/dist/heuristics.mjs
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
// lib/heuristic-patterns.ts
|
|
2
|
+
var patternOf = (p) => p instanceof RegExp ? p : p.pattern;
|
|
3
|
+
var BY_CONTINUING_PRIVACY = /(?:by continuing.{0,100}privacy)|(?:privacy.{0,100}by continuing)/gi;
|
|
4
|
+
var ACCEPT_ALL = /accept all/gi;
|
|
5
|
+
var USE_OF_COOKIES = /use of cookies/gi;
|
|
6
|
+
var UTILISATION_DES_COOKIES = /utilisation.{0,100}des.{0,100}cookies/gi;
|
|
7
|
+
var ACCEPTEZ_UTILISATION = /acceptez.{0,100}l.{0,100}utilisation/gi;
|
|
8
|
+
var VERWENDUNG_VON_COOKIES = /verwendung.{0,100}von.{0,100}cookies/gi;
|
|
9
|
+
var DE_COOKIE_VERB = /\b(?:nutzen|nutzt|verwenden|verwendet|setzen|setzt|benutzen|benutzt|speichert|platzieren)\b(?: \S+){0,4} cookies\b/gi;
|
|
10
|
+
var GEBRUIK_VAN_COOKIES = /gebruik.{0,100}van.{0,100}cookies/gi;
|
|
2
11
|
var DETECT_PATTERNS = [
|
|
3
12
|
/accept cookies/gi,
|
|
4
|
-
|
|
13
|
+
ACCEPT_ALL,
|
|
5
14
|
/reject all/gi,
|
|
6
15
|
/only necessary cookies/gi,
|
|
7
16
|
// "only necessary" is probably too broad
|
|
8
17
|
/(?:by continuing.{0,100}cookie)|(?:cookie.{0,100}by continuing)/gi,
|
|
9
|
-
|
|
18
|
+
BY_CONTINUING_PRIVACY,
|
|
10
19
|
// up to two qualifiers are common: "optional", "essential", "analytics", "google analytics", "third party", ...
|
|
11
20
|
/we (?:use|serve)(?: \w+){0,2} cookies/gi,
|
|
12
21
|
/we are using cookies/gi,
|
|
13
|
-
|
|
22
|
+
USE_OF_COOKIES,
|
|
14
23
|
/website uses cookies to enhance your browsing experience/gi,
|
|
15
24
|
/(?:this|our) (?:web)?site.{0,100}cookies/gi,
|
|
16
25
|
/cookies (?:and|or) .{0,100} technologies/gi,
|
|
@@ -21,6 +30,33 @@ var DETECT_PATTERNS = [
|
|
|
21
30
|
/we.{0,100}store.{0,100}information.{0,100}such as.{0,100}cookies/gi,
|
|
22
31
|
/store and\/or access information.{0,100}on a device/gi,
|
|
23
32
|
/personalised ads and content, ad and content measurement/gi,
|
|
33
|
+
// TCF wording: "store and/or access information", "and our partners ask for your consent", "we and our N partners"
|
|
34
|
+
/\b(?:store|stores|storing) and\/or access(?:ing)? information\b/gi,
|
|
35
|
+
/\band our partners ask for your consent\b/gi,
|
|
36
|
+
/\bwe and (?:our|up to) (?:\d+ )?(?:partners|vendors)\b/gi,
|
|
37
|
+
// a partner count, in each language: "our 186 partners", "unseren 107 Partnern", "nuestros 1064 socios"
|
|
38
|
+
/\b(?:our|unseren|onze|nos|nuestros|i nostri) \d{2,4} (?:partners|partnern|partner|partenaires|socios|vendors|fornitori)\b/gi,
|
|
39
|
+
/\b\d{2,4} iab[- ]partner/gi,
|
|
40
|
+
// "technologies like cookies", in each language
|
|
41
|
+
/\btechnolog(?:ies|ien|ieën|ías|ie) (?:like|such as|wie|zoals|como(?: las)?|telles que(?: les)?|come(?: i)?) cookies?\b/gi,
|
|
42
|
+
/\buses (?:\S+ ){0,2}cookies\b/gi,
|
|
43
|
+
/\b(?:like|want) to (?:use|set) (?:\S+ ){0,2}cookies\b/gi,
|
|
44
|
+
/\b(?:optional|additional|non-essential) cookies\b/gi,
|
|
45
|
+
/\bstoring of cookies\b|\bplaced cookies\b/gi,
|
|
46
|
+
/\b(?:store|stores) and access (?:data|information) on your device\b|\baccess and store (?:data|information) on your device\b/gi,
|
|
47
|
+
/\bwe use (?:\S+ ){1,4}cookies\b/gi,
|
|
48
|
+
// US privacy notices: opt-out sentences, not the footer link labels
|
|
49
|
+
/\byou (?:can|may) opt[- ]out of (?:the |this )?(?:sale|sharing|use|selling)\b/gi,
|
|
50
|
+
/\b(?:if you wish to|to) opt[- ]out of the sale\b/gi,
|
|
51
|
+
/\bthis website or its third[- ]party tools (?:process|use)\b/gi,
|
|
52
|
+
/["“]?(?:share|sell)["”]? or ["“]?(?:sell|share)["”]? (?:your )?(?:personal )?information\b/gi,
|
|
53
|
+
/\bresidents have (?:certain )?rights with regard to the sale\b/gi,
|
|
54
|
+
/\bwe use technologies (?:on this website )?(?:that may )?(?:to )?collect\b/gi,
|
|
55
|
+
// pay-or-consent walls
|
|
56
|
+
/\bcontinue reading with advertising\b|\b(?:with|mit) (?:advertising|werbung) (?:and|und) tracking\b/gi,
|
|
57
|
+
/\bconsent and continue\b/gi,
|
|
58
|
+
// preference centres are often in the page but hidden, so popup text only
|
|
59
|
+
{ pattern: /\bstore or retrieve information on your browser\b|\bstockées dans votre navigateur ou récupérées\b/gi, input: "popup" },
|
|
24
60
|
// it might be tempting to add the patterns below, but they cause too many false positives. Don't do it :)
|
|
25
61
|
// /cookies? settings/i,
|
|
26
62
|
// /cookies? preferences/i,
|
|
@@ -36,26 +72,32 @@ var DETECT_PATTERNS = [
|
|
|
36
72
|
/consentement.{0,100}à.{0,100}tout.{0,100}moment/gi,
|
|
37
73
|
/votre.{0,100}consentement/gi,
|
|
38
74
|
/accepter.{0,100}tout/gi,
|
|
39
|
-
|
|
75
|
+
UTILISATION_DES_COOKIES,
|
|
40
76
|
/cookies.{0,100}ou.{0,100}technologies/gi,
|
|
41
|
-
|
|
77
|
+
ACCEPTEZ_UTILISATION,
|
|
42
78
|
/continuer sans accepter/gi,
|
|
43
79
|
/tout refuser/gi,
|
|
44
80
|
/(?:refuser|rejeter) tous les cookies/gi,
|
|
45
|
-
|
|
81
|
+
// not "je refuse d'…" in a headline
|
|
82
|
+
/je refuse(?! d['’e])/gi,
|
|
46
83
|
/refuser et continuer/gi,
|
|
47
84
|
/refuser les cookies/gi,
|
|
48
85
|
/seulement nécessaires/gi,
|
|
49
86
|
/je désactive les finalités non essentielles/gi,
|
|
50
87
|
/cookies essentiels uniquement/gi,
|
|
51
88
|
/nécessaires uniquement/gi,
|
|
89
|
+
/\b(?:stocker|stockons) et\/ou (?:accéder|accédons)\b/gi,
|
|
90
|
+
/\bnos partenaires demandent votre consentement\b/gi,
|
|
91
|
+
/\bconsentez à l.utilisation (?:de |des )?cookies\b|\bdépôt (?:de|des) cookies\b/gi,
|
|
92
|
+
/\bles cookies nous permettent\b|\bnos partenaires et nous(?:-mêmes)?\b/gi,
|
|
93
|
+
/\baccepter (?:&|et) fermer\b/gi,
|
|
52
94
|
// DE
|
|
53
95
|
/wir.{0,100}verwenden.{0,100}cookies/gi,
|
|
54
96
|
/wir.{0,100}und.{0,100}unsere.{0,100}partner/gi,
|
|
55
|
-
/zugriff
|
|
97
|
+
/zugriff auf informationen auf/gi,
|
|
56
98
|
/inhalte.{0,100}messung.{0,100}von.{0,100}werbeleistung.{0,100}und/gi,
|
|
57
99
|
/cookies.{0,100}und.{0,100}andere/gi,
|
|
58
|
-
|
|
100
|
+
VERWENDUNG_VON_COOKIES,
|
|
59
101
|
/wir.{0,100}nutzen.{0,100}cookies/gi,
|
|
60
102
|
/verwendet.{0,100}cookies/gi,
|
|
61
103
|
/sie.{0,100}können.{0,100}ihre.{0,100}auswahl/gi,
|
|
@@ -68,8 +110,20 @@ var DETECT_PATTERNS = [
|
|
|
68
110
|
/nur funktionale cookies akzeptieren/gi,
|
|
69
111
|
/optionale ablehnen/gi,
|
|
70
112
|
/zustimmung verweigern/gi,
|
|
113
|
+
/\bspeichern und\/oder (?:zugreifen|abrufen)\b/gi,
|
|
114
|
+
/\bunsere partner bitten um ihre zustimmung\b/gi,
|
|
115
|
+
DE_COOKIE_VERB,
|
|
116
|
+
/\b(?:werden|wird) (?:\S+ ){0,3}cookies (?:verwendet|eingesetzt|gesetzt|genutzt)\b/gi,
|
|
117
|
+
/\bcookies? zum einsatz\b|\beinsatz von cookies\b/gi,
|
|
118
|
+
/\beinverstanden\b.{0,60}\bcookies\b|\bcookies\b.{0,80}\beinverstanden\b/gi,
|
|
119
|
+
/\b(?:alle|alles) (?:cookies |optionalen \S+ )?(?:akzeptieren|zulassen|erlauben|zustimmen)\b/gi,
|
|
120
|
+
/\bzustimmen und weiter\b|\bweiter,? ohne zu (?:akzeptieren|zustimmen)\b/gi,
|
|
121
|
+
/\b(?:einwilligung|zustimmung) (?:zu|zur|in die) (?:\S+ )?cookies\b|\bcookie-(?:zustimmung|einwilligung)\b/gi,
|
|
122
|
+
/\btracking-technologien\b/gi,
|
|
123
|
+
/\bakzeptier\w* (?:du |sie )?(?:die )?verwendung (?:\S+ )?cookies\b/gi,
|
|
124
|
+
/\bmit werbetracking weiterlesen\b|\bweiter mit werbung\b|\bcon tracking e annunci\b/gi,
|
|
71
125
|
// NL
|
|
72
|
-
|
|
126
|
+
GEBRUIK_VAN_COOKIES,
|
|
73
127
|
/(?:we|wij).{0,100}gebruiken.{0,100}cookies.{0,100}om/gi,
|
|
74
128
|
/cookies.{0,100}en.{0,100}vergelijkbare/gi,
|
|
75
129
|
/(?:alles|cookies).{0,100}(?:afwijzen|weigeren|verwerpen)/gi,
|
|
@@ -79,6 +133,13 @@ var DETECT_PATTERNS = [
|
|
|
79
133
|
/doorgaan zonder (?:te accepteren|akkoord te gaan)/gi,
|
|
80
134
|
/alleen.{0,100}(?:optionele|functionele|functioneel|noodzakelijke|essentiële).{0,100}cookies/gi,
|
|
81
135
|
/wijs alles af/gi,
|
|
136
|
+
/\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,
|
|
137
|
+
/\bonze partners vragen om (?:jouw|uw|je) toestemming\b/gi,
|
|
138
|
+
/\bwij en onze (?:\d+ )?partners\b/gi,
|
|
139
|
+
/\b(?:gebruiken|gebruikt|plaatsen|plaatst)\b(?: \S+){0,3} cookies\b/gi,
|
|
140
|
+
/\baccepteer (?:alles|alle cookies)\b/gi,
|
|
141
|
+
// Dutch words only: "tracking cookies" and "marketing cookies" are also English prose and footer links
|
|
142
|
+
/\b(?:analytische|functionele|essentiële|noodzakelijke) cookies\b/gi,
|
|
82
143
|
// Spanish (ES)
|
|
83
144
|
/(si|al) contin[úu]a[sr]?( navegando)?.{0,100} cookie/gi,
|
|
84
145
|
/(usamos|utilizar?|utilizamos)( (tanto|las))?.{0,20}cookie/gi,
|
|
@@ -95,6 +156,15 @@ var DETECT_PATTERNS = [
|
|
|
95
156
|
/nosotros y nuestros( \d+)? (socios|proveedores).{0,180} cookies/gi,
|
|
96
157
|
/recopilamos y almacenamos datos de usted y de su dispositivo/gi,
|
|
97
158
|
/utilizamos tecnolog[ií]as como las cookies/gi,
|
|
159
|
+
/\b(?:almacenar|almacenamos) y\/o (?:acceder|accedemos)\b/gi,
|
|
160
|
+
/\bnuestros socios solicitan su consentimiento\b/gi,
|
|
161
|
+
/\b(?:tanto nosotros como|nosotros y) nuestros (?:\d+ )?socios\b/gi,
|
|
162
|
+
/\b(?:aceptar|rechazar) todas\b|\bcontinuar sin aceptar\b|\bsolo las necesarias\b/gi,
|
|
163
|
+
/\bacept\w* (?:\S+ ){0,3}uso de (?:las )?cookies\b/gi,
|
|
164
|
+
/\bcookies (?:técnicas|analíticas|propias|de terceros|opcionales|necesarias)\b/gi,
|
|
165
|
+
/\blas cookies nos (?:ayudan|permiten)\b/gi,
|
|
166
|
+
/\b(?:instalamos|empleamos)\b(?: \S+){0,4} cookies\b/gi,
|
|
167
|
+
/\bacept(?:a|ar|as)? (?:el uso de |las )?(?:\S+ )?cookies\b|\bnecesitamos usar cookies\b/gi,
|
|
98
168
|
// Polish (PL)
|
|
99
169
|
// examples:
|
|
100
170
|
// wykorzystuje pliki cookie (uses cookies)
|
|
@@ -123,10 +193,11 @@ var DETECT_PATTERNS = [
|
|
|
123
193
|
// Catalan (CA)
|
|
124
194
|
/cookies pròpies i de tercers/gi,
|
|
125
195
|
/utilitzem galetes/gi,
|
|
126
|
-
|
|
196
|
+
/únicament utilitza galetes pròpies amb finalitat tècnica\b/gi,
|
|
127
197
|
/este lloc web utilitza només cookies tècniques necessàries per al seu funcionament/gi,
|
|
128
198
|
/utilitza cookies tècniques,\s*de personalització i anàlisi/gi,
|
|
129
199
|
/utilitzem cookies i altres tecnologies/gi,
|
|
200
|
+
/\b(?:utilitz\w*|fa servir|fem servir|usem)\b(?: \S+){0,3} (?:cookies|galetes)\b/gi,
|
|
130
201
|
// Basque (EU)
|
|
131
202
|
/cookie propio eta hirugarrenenak helburu teknikoarekin erabiltzen ditu/gi,
|
|
132
203
|
/cookie propioak eta hirugarrenen cookieak erabiltzen ditugu/gi,
|
|
@@ -156,7 +227,18 @@ var DETECT_PATTERNS = [
|
|
|
156
227
|
/(?:usiamo|utilizziamo).{0,20}cookie/gi,
|
|
157
228
|
/sito.{0,50}(?:usa|utilizza).{0,20}cookie/gi,
|
|
158
229
|
/noi e i nostri.{0,20}partner.{0,100}cookie/gi,
|
|
159
|
-
|
|
230
|
+
/\b(?:utilizziamo|usiamo|impieghiamo|installiamo)\b(?: \S+){0,3} cookies?\b/gi,
|
|
231
|
+
/\b(?:utilizza|utilizzano|usa|usano|impiega|installa|fa uso di)\b(?: \S+){0,3} cookies?\b/gi,
|
|
232
|
+
/\bcookies? (?:tecnici|di profilazione|di terze parti|analitici|statistici|di marketing)\b/gi,
|
|
233
|
+
/\b(?:acconsent|accett)\w*\b.{0,40}\b(?:uso|utilizzo|installazione)\b.{0,15}\bcookies?\b/gi,
|
|
234
|
+
/\b(?:continuando|proseguendo)(?: la| nella)? navigazione\b.{0,80}\b(?:accett|acconsent)\w*/gi,
|
|
235
|
+
/\b(?:accetta|accetto|accettare|rifiuta|rifiuto|rifiutare)(?: tutti| tutto)\b/gi,
|
|
236
|
+
/\b(?:continua|prosegui|chiudi) senza accettare\b/gi,
|
|
237
|
+
/\brifiuta e abbonati\b/gi,
|
|
238
|
+
/\bconsenso (?:all.(?:uso|utilizzo) (?:dei |di )?)?cookies?\b/gi,
|
|
239
|
+
/\b(?:insieme ai|con i) nostri (?:\d+ )?partner\b/gi,
|
|
240
|
+
/\bterze parti selezionate\b/gi,
|
|
241
|
+
/\b(?:archiviare|archiviamo|memorizzare|memorizziamo) e\/o (?:accedere|accediamo)\b/gi,
|
|
160
242
|
// Swedish (SV)
|
|
161
243
|
// e.g. "vi använder cookies", "vi använder spårningstekniker såsom cookies", "webbplatsen använder kakor"
|
|
162
244
|
/(?:vi|webbplatsen|webbplats|sajten|sidan)\s+använder.{0,60}(?:cookies|kakor)/gi,
|
|
@@ -411,26 +493,12 @@ var BUTTON_NEVER_MATCH_PATTERNS = [
|
|
|
411
493
|
// Russian (RU): paywall/subscription wording, e.g. "отказаться от подписки", "оплатить"
|
|
412
494
|
/подписатьс|подписк|оплатит|оплачива/is
|
|
413
495
|
];
|
|
414
|
-
var DETECT_NEVER_MATCH_PATTERNS = [
|
|
415
|
-
// e.g. "age verification", "age confirmation", "age check", "age gate", "age restriction"
|
|
416
|
-
/age\s+(?:verification|confirmation|check|gate|restriction)/i,
|
|
417
|
-
// e.g. "over 18 years", "at least 21 years", "older than 21", "18+"
|
|
418
|
-
/(?:over|above|at\s*least|minimum|older\s+than)\s*(?:18|21)\s*(?:years|yo|y\.?o\.?|\+)?/i,
|
|
419
|
-
// e.g. "18 years of age", "18+ years old", "21 years or older"
|
|
420
|
-
/(?:18|21)\s*(?:\+|years?)\s*(?:of\s*age|or\s*older|or\s*above)/i,
|
|
421
|
-
// e.g. "I am 18+", "I am over 18", "I'm 21 or older"
|
|
422
|
-
/(?:i'?m|i\s*am)\s*(?:over|above|at\s*least)?\s*(?:18|21)(?:\+|\s*(?:or\s*older|years))?/i,
|
|
423
|
-
// e.g. "you must be 18", "users must be at least 21", "visitors must be over 18"
|
|
424
|
-
/(?:you|users?|visitors?)\s+must\s+be\s+(?:over|above|at\s*least)?\s*(?:18|21)/i,
|
|
425
|
-
// e.g. "adult oriented material", "adult content", "adult-only website"
|
|
426
|
-
/adult[\s-]+(?:oriented|only|content|material|websites?)/i
|
|
427
|
-
];
|
|
428
496
|
var SETTINGS_PATTERNS = [
|
|
429
497
|
// Multilingual "open customization" patterns: a customization verb next to a
|
|
430
498
|
// cookie/preference/settings/options/details/purposes noun (both word orders).
|
|
431
499
|
// The negative lookahead avoids policy links and save/confirm/accept phrases (those are accept/acknowledge/other).
|
|
432
|
-
/^(?!.*\b(policy|policies|notice|statement|impressum|\w*richtlinie\w*|\w*erklärung|page|beschrijving|privacy$|beleid|politique|política|polityk|speichern|guardar|opslaan|zapisz|enregistrer|sauvegarder|bevestig|bestätig|confirm|save|submit|akzeptier|accept|zaakcept)\b)(customi[sz]e|manage|adjust|configure|personali[sz]e|let me choose|edit|change|set|select|view|see|review|update|open|show|choose|anpassen|verwalten|konfigurieren|bearbeiten|öffnen|anzeigen|einblenden|einstellen|festlegen|auswählen|wählen|aanpassen|beheren|instellen|wijzig\w*|personaliseren|personaliseer|kies|bekijk|toon|personnaliser|paramétrer|gérer|configurer|choisir|afficher|définir|modifier|configurar|personalizar|gestionar|administrar|ajustar|seleccionar|modificar|establecer|dostosuj|zarządzaj|personalizuj|ustaw\w*|zmień|pokaż|wybierz)
|
|
433
|
-
/^(?!.*\b(policy|policies|notice|statement|impressum|\w*richtlinie\w*|\w*erklärung|page|beschrijving|privacy$|beleid|politique|política|polityk|speichern|guardar|opslaan|zapisz|enregistrer|sauvegarder|bevestig|bestätig|confirm|save|submit|akzeptier|accept|zaakcept)\b)(cookies?|preferences?|settings?|options?|choices?|controls?|details?|purposes?|services?|consent|einstellung\w*|optionen|präferenzen|einzelheiten|zwecke|dienste|datenschutz\w*|auswahl|voorkeur\w*|instelling\w*|opties|diensten|préférences|paramètres|réglages|choix|détails|finalités|témoins|preferencia\w*|opciones|ajustes|configuraci\w*|detalles|servicios|elección|preferencj\w*|ustawie\w*|opcje|szczegół\w*|cele|galetes)\b(.{0,14}\W)?(customi[sz]e|manage|adjust|configure|personali[sz]e|let me choose|edit|change|set|select|view|see|review|update|open|show|choose|anpassen|verwalten|konfigurieren|bearbeiten|öffnen|anzeigen|einblenden|einstellen|festlegen|auswählen|wählen|aanpassen|beheren|instellen|wijzig\w*|personaliseren|personaliseer|kies|bekijk|toon|personnaliser|paramétrer|gérer|configurer|choisir|afficher|définir|modifier|configurar|personalizar|gestionar|administrar|ajustar|seleccionar|modificar|establecer|dostosuj|zarządzaj|personalizuj|ustaw\w*|zmień|pokaż|wybierz)
|
|
500
|
+
/^(?!.*\b(policy|policies|notice|statement|impressum|\w*richtlinie\w*|\w*erklärung|page|beschrijving|privacy$|beleid|politique|política|polityk|speichern|guardar|opslaan|zapisz|enregistrer|sauvegarder|bevestig|bestätig|confirm|save|submit|akzeptier|accept|zaakcept)\b)(customi[sz]e|manage|adjust|configure|personali[sz]e|let me choose|edit|change|set|select|view|see|review|update|open|show|choose|anpassen|verwalten|konfigurieren|bearbeiten|öffnen|anzeigen|einblenden|einstellen|festlegen|auswählen|wählen|aanpassen|beheren|instellen|wijzig\w*|personaliseren|personaliseer|kies|bekijk|toon|personnaliser|paramétrer|gérer|configurer|choisir|afficher|définir|modifier|configurar|personalizar|gestionar|administrar|ajustar|seleccionar|modificar|establecer|dostosuj|zarządzaj|personalizuj|ustaw\w*|zmień|pokaż|wybierz)(?!\w).{0,20}(cookies?|preferences?|settings?|options?|choices?|controls?|details?|purposes?|services?|consent|einstellung\w*|optionen|präferenzen|einzelheiten|zwecke|dienste|datenschutz\w*|auswahl|voorkeur\w*|instelling\w*|opties|diensten|préférences|paramètres|réglages|choix|détails|finalités|témoins|preferencia\w*|opciones|ajustes|configuraci\w*|detalles|servicios|elección|preferencj\w*|ustawie\w*|opcje|szczegół\w*|cele|galetes)\b/is,
|
|
501
|
+
/^(?!.*\b(policy|policies|notice|statement|impressum|\w*richtlinie\w*|\w*erklärung|page|beschrijving|privacy$|beleid|politique|política|polityk|speichern|guardar|opslaan|zapisz|enregistrer|sauvegarder|bevestig|bestätig|confirm|save|submit|akzeptier|accept|zaakcept)\b)(cookies?|preferences?|settings?|options?|choices?|controls?|details?|purposes?|services?|consent|einstellung\w*|optionen|präferenzen|einzelheiten|zwecke|dienste|datenschutz\w*|auswahl|voorkeur\w*|instelling\w*|opties|diensten|préférences|paramètres|réglages|choix|détails|finalités|témoins|preferencia\w*|opciones|ajustes|configuraci\w*|detalles|servicios|elección|preferencj\w*|ustawie\w*|opcje|szczegół\w*|cele|galetes)\b(.{0,14}\W)?(customi[sz]e|manage|adjust|configure|personali[sz]e|let me choose|edit|change|set|select|view|see|review|update|open|show|choose|anpassen|verwalten|konfigurieren|bearbeiten|öffnen|anzeigen|einblenden|einstellen|festlegen|auswählen|wählen|aanpassen|beheren|instellen|wijzig\w*|personaliseren|personaliseer|kies|bekijk|toon|personnaliser|paramétrer|gérer|configurer|choisir|afficher|définir|modifier|configurar|personalizar|gestionar|administrar|ajustar|seleccionar|modificar|establecer|dostosuj|zarządzaj|personalizuj|ustaw\w*|zmień|pokaż|wybierz)(?!\w)/is,
|
|
434
502
|
// settings noun + cookies, e.g. "paramètres des cookies", "ajustes de cookies", "instellingen voor cookies en diensten"
|
|
435
503
|
/^(paramètres|préférences|réglages|ajustes|opciones|elección|preferencias|instellingen)( (de|des|les|voor|van))? cookies( (et des|en|y) (services|diensten|servicios))?$/is,
|
|
436
504
|
"settings",
|
|
@@ -786,41 +854,522 @@ var ACKNOWLEDGE_PATTERNS = [
|
|
|
786
854
|
"\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"
|
|
787
855
|
];
|
|
788
856
|
|
|
789
|
-
// lib/heuristic-
|
|
857
|
+
// lib/heuristic-negatives.ts
|
|
858
|
+
var COOKIE_CHOICE = [
|
|
859
|
+
"\\b(?:accept|reject|decline|refuse|deny|allow|manage|customi[sz]e)\\b[^\\n]{0,25}\\bcookies?\\b",
|
|
860
|
+
"\\b(?:reject|decline|deny|refuse) all\\b",
|
|
861
|
+
"\\b(?:essential|necessary|required) (?:cookies )?only\\b|\\bonly (?:essential|necessary|required)\\b",
|
|
862
|
+
"\\bcookies? (?:notice|settings|preferences|banner)\\b",
|
|
863
|
+
"\\b(?:alle )?(?:cookies )?ablehnen\\b",
|
|
864
|
+
"\\b(?:alles |alle cookies )?(?:weigeren|weiger|afwijzen)\\b",
|
|
865
|
+
"\\b(?:tout )?refuser\\b",
|
|
866
|
+
"\\brechazar(?: todas?)?\\b",
|
|
867
|
+
"\\brifiuta(?: tutti)?\\b",
|
|
868
|
+
// purposes and vendors as a button or heading line: some consent dialogs ask "under 18?"
|
|
869
|
+
"^[^\\n]{0,40}\\b(?:purposes|finalit\xE9s|prop\xF3sitos|zwecke|doeleinden|finalit\xE0|vendors|fournisseurs|proveedores|leveranciers|fornitori)(?!\\w)[^\\n]{0,10}$",
|
|
870
|
+
"\\b(?:legitimate (?:business )?interest|int\xE9r\xEAt l\xE9gitime|inter\xE9s leg\xEDtimo|berechtigtes interesse|gerechtvaardigd belang|legittimo interesse)\\b",
|
|
871
|
+
"\\b(?:we|nous|wir|wij|noi|nosotros) (?:and|et|und|en|e|y) (?:our|nos|unsere|onze|i nostri|nuestros) (?:\\d+ )?(?:partners|partenaires|partner|socios)\\b"
|
|
872
|
+
].join("|");
|
|
873
|
+
var BARE_ACCEPT = [
|
|
874
|
+
"\\b(?:accept|allow) all\\b",
|
|
875
|
+
"\\b(?:alle )?(?:cookies )?(?:akzeptieren|erlauben|zulassen)\\b",
|
|
876
|
+
"\\b(?:alles |alle cookies )?(?:accepteren|accepteer|toestaan)\\b",
|
|
877
|
+
"\\b(?:tout )?accepter\\b",
|
|
878
|
+
"\\baceptar(?: todas?)?\\b",
|
|
879
|
+
"\\baccetta(?: tutti)?\\b"
|
|
880
|
+
].join("|");
|
|
881
|
+
var COOKIE_CHOICE_RE = new RegExp(COOKIE_CHOICE, "im");
|
|
882
|
+
var CONSENT_CHOICE = new RegExp(`${COOKIE_CHOICE}|${BARE_ACCEPT}`, "im");
|
|
883
|
+
var AGE_WORDING = new RegExp(
|
|
884
|
+
[
|
|
885
|
+
"\\b(?:over|above|at least|older than|minimum(?: age of)?)\\s*(?:18|21|eighteen)\\b",
|
|
886
|
+
// "18+" only with age words after it: a bare "18+" also appears in cookie banners on adult sites
|
|
887
|
+
"\\b(?:18|21)\\+?\\s*(?:years?(?: of age| old)?|yo|or older|or over)\\b",
|
|
888
|
+
"\\b(?:you|users?|visitors?) must be (?:over |above |at least )?(?:18|21)\\b",
|
|
889
|
+
"\\b(?:i'?m|i am) (?:over |at least )?(?:18|21)\\b",
|
|
890
|
+
"\\bage (?:verification|confirmation|check|gate|restriction)\\b",
|
|
891
|
+
"\\b(?:adults? only|adult[\\s-](?:oriented|content|material|website)|legal age|age of majority|not a minor|minors)\\b",
|
|
892
|
+
"\\b(?:18|21) jahre\\b",
|
|
893
|
+
"\\balters(?:beschr\xE4nkung|best\xE4tigung|verifikation|pr\xFCfung|kontrolle)",
|
|
894
|
+
"\\b(?:vollj\xE4hrig|f\xFCr erwachsene|minderj\xE4hrige)\\b",
|
|
895
|
+
"\\b(?:18|21) jaar\\b",
|
|
896
|
+
"\\b(?:volwassenen|meerderjarig|minderjarigen|leeftijdsverificatie)\\b",
|
|
897
|
+
"\\b(?:18|21) ans\\b",
|
|
898
|
+
// no \\b before an accented letter: without the u flag it is not a word character
|
|
899
|
+
"\\b(?:pour adultes|v\xE9rification de l.\xE2ge|mineurs)\\b|\xE2ge l\xE9gal\\b",
|
|
900
|
+
"\\b(?:18|21) a\xF1os\\b",
|
|
901
|
+
"\\b(?:mayor(?:es)? de edad|menores de edad|para adultos|verificaci\xF3n de edad)\\b",
|
|
902
|
+
"\\b(?:18|21) anni\\b",
|
|
903
|
+
"\\b(?:maggiorenne|minorenni|per adulti)\\b|\\bverifica dell.et\xE0(?!\\w)"
|
|
904
|
+
].join("|"),
|
|
905
|
+
"i"
|
|
906
|
+
);
|
|
907
|
+
var DISMISS_LINE = /^\s*(?:(?:yes,? )?(?:i )?(?:ok(?:ay)?|accept|agree|allow|decline|deny|reject|refuse|understand|acknowledge(?: the use of cookies)?|got it|understood)(?: all)?(?:,? (?:and|&) (?:continue|close))?(?: non-essential)?|close|dismiss|akzeptieren|zustimmen|verstanden|einverstanden|ablehnen|accepteren|akkoord|weigeren|accepter|j.accepte|d.accord|refuser|fermer|aceptar|acepto|rechazar|entendido|accetto|accetta|rifiuta|ho capito|chiudi)\s*[!.]?\s*$/im;
|
|
908
|
+
var DISMISS_END = /[.!?]\s+(?:ok(?:ay)?|got it|i agree|accept)\s*!?\s*$|\[\s*[x×]\s*\]|^\s*[x×✕]\s*$/im;
|
|
909
|
+
var NOTICE_CONTROL = new RegExp(`${CONSENT_CHOICE.source}|${DISMISS_LINE.source}|${DISMISS_END.source}`, "im");
|
|
910
|
+
var LEAVE_LINE = /^\s*(?:(?:no,? )?(?:i )?(?:want to )?(?:leave|exit|verlassen|quitter|sortir|salir|abandonar|esci|uscire|verlaten)\b[^\n]{0,30}|no,? take me away|(?:seite|hier) verlassen|(?:i am|i'm|ich bin|ik ben|je suis|soy|sono) (?:under|unter|onder|jonger dan|menor de(?: edad)?|minorenne|mineur)\b[^\n]{0,10})\s*[!.]?\s*$/im;
|
|
911
|
+
var NOTICE_OWN_CONTROL = new RegExp(
|
|
912
|
+
[
|
|
913
|
+
"\\bcookies? verwalten\\b|\\bcookie-?(?:einstellungen|pr\xE4ferenzen)\\b|\\beinstellungen verwalten\\b",
|
|
914
|
+
"\\bconfigura(?:r|ci\xF3n de)(?: las)? cookies\\b|\\bgestionar(?: las)? cookies\\b|\\bpersonalizar(?: las)? cookies\\b",
|
|
915
|
+
"\\bparam[\xE9e]trer(?: les)? cookies\\b|\\bparam[\xE8e]tres(?: des)? cookies\\b|\\bg[\xE9e]rer(?: les)? cookies\\b|\\bpersonnaliser(?: les)? cookies\\b",
|
|
916
|
+
"\\bgestisci(?: i)? cookie|\\bimpostazioni(?: dei| sui)? cookie|\\bpersonalizza(?: i)? cookie",
|
|
917
|
+
"\\bcookie-?instellingen\\b|\\bcookies? beheren\\b|\\bvoorkeuren (?:beheren|aanpassen)\\b",
|
|
918
|
+
"^\\s*(?:customi[sz]e|personnaliser|param\xE9trer|personalizar|configurar|personalizza|anpassen|aanpassen|meer opties|more options|weitere optionen|plus d.options|m\xE1s opciones|altre opzioni|manage (?:options|preferences|choices))\\s*$",
|
|
919
|
+
"^\\s*close (?:this|the) (?:popup|banner|notice|message)\\s*$"
|
|
920
|
+
].join("|"),
|
|
921
|
+
"im"
|
|
922
|
+
);
|
|
923
|
+
var ageGateUnless = (control) => (text) => !LEAVE_LINE.test(text) && (control.test(text) || NOTICE_OWN_CONTROL.test(text));
|
|
924
|
+
var CONSENT_WORDS = /cookie|consent|track|partner|personali[sz]|advertis|analytic|privacy (?:options|choices|settings|rights)|do not sell|opt[- ]out/i;
|
|
925
|
+
var LEGAL_AGREEMENT = /\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;
|
|
926
|
+
var DETECT_CONTEXT_NEGATIVES = [
|
|
927
|
+
// popups with their own age confirmation are age gates, even when they mention cookies; a bare accept doesn't count
|
|
928
|
+
// as a cookie choice here, since it may confirm the age
|
|
929
|
+
{ name: "age-gate-popup", pattern: AGE_WORDING, unless: ageGateUnless(COOKIE_CHOICE_RE), whole: true, input: "popup" },
|
|
930
|
+
// a license or terms agreement may mention cookies, and its decline button must not be clicked as a cookie reject
|
|
931
|
+
{ name: "legal-agreement", pattern: LEGAL_AGREEMENT, whole: true, input: "popup" },
|
|
932
|
+
// page text next to an age gate, unless a consent control is there too
|
|
933
|
+
{ name: "age-gate", pattern: AGE_WORDING, unless: ageGateUnless(NOTICE_CONTROL), lines: [4, 5], input: "page" },
|
|
934
|
+
// terms of use need cookie or consent wording; a privacy-policy-only notice needs that or a button
|
|
935
|
+
{
|
|
936
|
+
name: "terms-without-consent",
|
|
937
|
+
pattern: /\bterms\b|\bconditions\b/i,
|
|
938
|
+
unless: CONSENT_WORDS,
|
|
939
|
+
appliesTo: [BY_CONTINUING_PRIVACY]
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
name: "privacy-without-control",
|
|
943
|
+
unless: new RegExp(`${CONSENT_WORDS.source}|${DISMISS_LINE.source}`, "im"),
|
|
944
|
+
appliesTo: [BY_CONTINUING_PRIVACY]
|
|
945
|
+
},
|
|
946
|
+
// a cookie policy link among short footer link lines
|
|
947
|
+
{
|
|
948
|
+
name: "footer-link",
|
|
949
|
+
pattern: /^[^.!?:\n]{0,60}\n[\s]*\n?[^.!?:\s][^.!?:\n]{0,59}(?:\n|$)/,
|
|
950
|
+
unless: NOTICE_CONTROL,
|
|
951
|
+
lines: [0, 2],
|
|
952
|
+
input: "page",
|
|
953
|
+
appliesTo: [USE_OF_COOKIES, VERWENDUNG_VON_COOKIES, UTILISATION_DES_COOKIES, GEBRUIK_VAN_COOKIES]
|
|
954
|
+
},
|
|
955
|
+
// "accept all" in prose; case-sensitive since button labels run together in innerText
|
|
956
|
+
{
|
|
957
|
+
name: "accept-all-prose",
|
|
958
|
+
pattern: /\baccept all [a-z]|\baccept All[a-z]/,
|
|
959
|
+
unless: /accept all (?:cookies|and|&)/i,
|
|
960
|
+
window: 15,
|
|
961
|
+
appliesTo: [ACCEPT_ALL]
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
name: "acceptez-terms",
|
|
965
|
+
pattern: /conditions (?:générales )?d.utilisation|\bcgu\b/i,
|
|
966
|
+
unless: /cookie|témoin|traceur|partenaire/i,
|
|
967
|
+
appliesTo: [ACCEPTEZ_UTILISATION]
|
|
968
|
+
},
|
|
969
|
+
// the same sentence is also a footer line with only a "learn more" link
|
|
970
|
+
{ name: "de-cookie-verb-needs-control", unless: NOTICE_CONTROL, lines: [1, 6], input: "page", appliesTo: [DE_COOKIE_VERB] }
|
|
971
|
+
];
|
|
972
|
+
|
|
973
|
+
// lib/heuristic-literals.ts
|
|
974
|
+
var DETECT_PATTERN_LITERALS = [
|
|
975
|
+
["accept cookies"],
|
|
976
|
+
["accept all"],
|
|
977
|
+
["reject all"],
|
|
978
|
+
["only necessary cookies"],
|
|
979
|
+
[],
|
|
980
|
+
[],
|
|
981
|
+
[" cookies"],
|
|
982
|
+
["we are using cookies"],
|
|
983
|
+
["use of cookies"],
|
|
984
|
+
["website uses cookies to enhance your browsing experience"],
|
|
985
|
+
["cookies"],
|
|
986
|
+
[" technologies"],
|
|
987
|
+
["such as cookies"],
|
|
988
|
+
["read more about"],
|
|
989
|
+
["consent to"],
|
|
990
|
+
["we and our partners"],
|
|
991
|
+
["information"],
|
|
992
|
+
["store and/or access information"],
|
|
993
|
+
["personalised ads and content, ad and content measurement"],
|
|
994
|
+
[" and/or access"],
|
|
995
|
+
["and our partners ask for your consent"],
|
|
996
|
+
["we and "],
|
|
997
|
+
["partners", "partnern", "partner", "partenaires", "socios", "vendors", "fornitori"],
|
|
998
|
+
["partner"],
|
|
999
|
+
["technolog"],
|
|
1000
|
+
["cookies"],
|
|
1001
|
+
["cookies"],
|
|
1002
|
+
["optional", "additional", "non-essential"],
|
|
1003
|
+
["storing of cookies", "placed cookies"],
|
|
1004
|
+
[" on your device", "access and store "],
|
|
1005
|
+
["we use "],
|
|
1006
|
+
["out of "],
|
|
1007
|
+
["out of the sale"],
|
|
1008
|
+
["this website or its third"],
|
|
1009
|
+
["information"],
|
|
1010
|
+
["rights with regard to the sale"],
|
|
1011
|
+
["we use technologies "],
|
|
1012
|
+
["continue reading with advertising", " tracking"],
|
|
1013
|
+
["consent and continue"],
|
|
1014
|
+
["store or retrieve information on your browser", "stock\xE9es dans votre navigateur ou r\xE9cup\xE9r\xE9es"],
|
|
1015
|
+
["utilisons"],
|
|
1016
|
+
["cookies"],
|
|
1017
|
+
["consentement"],
|
|
1018
|
+
["partenaires"],
|
|
1019
|
+
["publicit\xE9s"],
|
|
1020
|
+
["utilise"],
|
|
1021
|
+
["utilisent"],
|
|
1022
|
+
["stocker"],
|
|
1023
|
+
["consentement"],
|
|
1024
|
+
["consentement"],
|
|
1025
|
+
["accepter"],
|
|
1026
|
+
["utilisation"],
|
|
1027
|
+
["technologies"],
|
|
1028
|
+
["utilisation"],
|
|
1029
|
+
["continuer sans accepter"],
|
|
1030
|
+
["tout refuser"],
|
|
1031
|
+
[" tous les cookies"],
|
|
1032
|
+
["je refuse"],
|
|
1033
|
+
["refuser et continuer"],
|
|
1034
|
+
["refuser les cookies"],
|
|
1035
|
+
["seulement n\xE9cessaires"],
|
|
1036
|
+
["je d\xE9sactive les finalit\xE9s non essentielles"],
|
|
1037
|
+
["cookies essentiels uniquement"],
|
|
1038
|
+
["n\xE9cessaires uniquement"],
|
|
1039
|
+
["stocker", "stockons"],
|
|
1040
|
+
["nos partenaires demandent votre consentement"],
|
|
1041
|
+
["consentez \xE0 l", " cookies"],
|
|
1042
|
+
["les cookies nous permettent", "nos partenaires et nous"],
|
|
1043
|
+
["accepter "],
|
|
1044
|
+
["verwenden"],
|
|
1045
|
+
["partner"],
|
|
1046
|
+
["zugriff auf informationen auf"],
|
|
1047
|
+
["werbeleistung"],
|
|
1048
|
+
["cookies"],
|
|
1049
|
+
["verwendung"],
|
|
1050
|
+
["cookies"],
|
|
1051
|
+
["verwendet"],
|
|
1052
|
+
["auswahl"],
|
|
1053
|
+
["technologien"],
|
|
1054
|
+
["verwenden"],
|
|
1055
|
+
["ablehnen"],
|
|
1056
|
+
["zus\xE4tzliche", "essenzielle", "funktionale", "notwendige", "erforderliche"],
|
|
1057
|
+
["einwilligung", "zustimmung", "cookies"],
|
|
1058
|
+
["ablehnen"],
|
|
1059
|
+
["nur funktionale cookies akzeptieren"],
|
|
1060
|
+
["optionale ablehnen"],
|
|
1061
|
+
["zustimmung verweigern"],
|
|
1062
|
+
["speichern und/oder "],
|
|
1063
|
+
["unsere partner bitten um ihre zustimmung"],
|
|
1064
|
+
[" cookies"],
|
|
1065
|
+
["cookies "],
|
|
1066
|
+
[" zum einsatz", "einsatz von cookies"],
|
|
1067
|
+
["einverstanden", "einverstanden"],
|
|
1068
|
+
["akzeptieren", "zulassen", "erlauben", "zustimmen"],
|
|
1069
|
+
["zustimmen und weiter", " ohne zu "],
|
|
1070
|
+
["einwilligung", "zustimmung", "zustimmung", "einwilligung"],
|
|
1071
|
+
["tracking-technologien"],
|
|
1072
|
+
["verwendung "],
|
|
1073
|
+
["mit werbetracking weiterlesen", "weiter mit werbung", "con tracking e annunci"],
|
|
1074
|
+
["gebruik"],
|
|
1075
|
+
["gebruiken"],
|
|
1076
|
+
["vergelijkbare"],
|
|
1077
|
+
["afwijzen", "weigeren", "verwerpen"],
|
|
1078
|
+
["noodzakelijk"],
|
|
1079
|
+
["cookies weigeren"],
|
|
1080
|
+
["weiger"],
|
|
1081
|
+
["doorgaan zonder "],
|
|
1082
|
+
["optionele", "functionele", "functioneel", "noodzakelijke", "essenti\xEBle"],
|
|
1083
|
+
["wijs alles af"],
|
|
1084
|
+
[],
|
|
1085
|
+
["onze partners vragen om "],
|
|
1086
|
+
["wij en onze "],
|
|
1087
|
+
[" cookies"],
|
|
1088
|
+
["accepteer "],
|
|
1089
|
+
["analytische", "functionele", "essenti\xEBle", "noodzakelijke"],
|
|
1090
|
+
[" contin"],
|
|
1091
|
+
["cookie"],
|
|
1092
|
+
[" uso de cookies"],
|
|
1093
|
+
["usa cookies de google"],
|
|
1094
|
+
[" uso de cookies"],
|
|
1095
|
+
["al utilizar nuestro sitio web"],
|
|
1096
|
+
["almacenar la informaci\xF3n en un dispositivo y"],
|
|
1097
|
+
[" utiliza"],
|
|
1098
|
+
["cookies propias y de"],
|
|
1099
|
+
["son necesarias"],
|
|
1100
|
+
[" cookie"],
|
|
1101
|
+
["navegando"],
|
|
1102
|
+
["nosotros y nuestros"],
|
|
1103
|
+
["recopilamos y almacenamos datos de usted y de su dispositivo"],
|
|
1104
|
+
["utilizamos tecnolog"],
|
|
1105
|
+
["almacenar", "almacenamos"],
|
|
1106
|
+
["nuestros socios solicitan su consentimiento"],
|
|
1107
|
+
["tanto nosotros como", "nosotros y"],
|
|
1108
|
+
["aceptar", "rechazar", "continuar sin aceptar", "solo las necesarias"],
|
|
1109
|
+
["uso de "],
|
|
1110
|
+
["cookies "],
|
|
1111
|
+
["las cookies nos "],
|
|
1112
|
+
["instalamos", "empleamos"],
|
|
1113
|
+
["cookies", "necesitamos usar cookies"],
|
|
1114
|
+
[" cookie"],
|
|
1115
|
+
["u\u017Cywa\u0107", "u\u017Cywamy"],
|
|
1116
|
+
["cele przetwarzania twoich danych przez zaufanych partner\xF3w iab"],
|
|
1117
|
+
["dzi\u0119ki "],
|
|
1118
|
+
[" plik\xF3w cookie"],
|
|
1119
|
+
["korzystamy z technologii, takich jak pliki cookie"],
|
|
1120
|
+
["korzystamy"],
|
|
1121
|
+
["niekt\xF3re pliki cookies"],
|
|
1122
|
+
["pliki cookies i pokrewne im technologie umo\u017Cliwiaj\u0105 poprawne dzia\u0142anie strony i pomagaj\u0105 nam dostosowa\u0107 ofert\u0119 do twoich potrzeb"],
|
|
1123
|
+
["przechowywanie informacji na urz\u0105dzeniu lub dost\u0119p do nich"],
|
|
1124
|
+
["przechowywanie plik\xF3w cookie na swoim urz\u0105dzeniu"],
|
|
1125
|
+
["przechowywa\u0107 i uzyskiwa\u0107 dost\u0119p do informacji na twoich urz\u0105dzeniach"],
|
|
1126
|
+
["przetwarzamy"],
|
|
1127
|
+
[" u\u017Cywa "],
|
|
1128
|
+
["ta strona korzysta z ciasteczek"],
|
|
1129
|
+
["uzyskujemy dost\u0119p i przechowujemy informacje na urz\u0105dzeniu"],
|
|
1130
|
+
["u\u017Cywa plik"],
|
|
1131
|
+
["u\u017Cywamy plik\xF3w"],
|
|
1132
|
+
["wykorzystuj\u0105 "],
|
|
1133
|
+
["za pomoc\u0105 plik\xF3w cookies"],
|
|
1134
|
+
["zgod\u0105 my i nasi partnerzy mo\u017Cemy wykorzystywa\u0107 precyzyjne dane geolokalizacyjne i identyfikacj\u0119"],
|
|
1135
|
+
["cookies pr\xF2pies i de tercers"],
|
|
1136
|
+
["utilitzem galetes"],
|
|
1137
|
+
["\xFAnicament utilitza galetes pr\xF2pies amb finalitat t\xE8cnica"],
|
|
1138
|
+
["este lloc web utilitza nom\xE9s cookies t\xE8cniques necess\xE0ries per al seu funcionament"],
|
|
1139
|
+
["de personalitzaci\xF3 i an\xE0lisi"],
|
|
1140
|
+
["utilitzem cookies i altres tecnologies"],
|
|
1141
|
+
["cookies", "galetes"],
|
|
1142
|
+
["cookie propio eta hirugarrenenak helburu teknikoarekin erabiltzen ditu"],
|
|
1143
|
+
["cookie propioak eta hirugarrenen cookieak erabiltzen ditugu"],
|
|
1144
|
+
["cookie propioak eta hirugarrenenak helburu teknikoarekin erabiltzen ditu"],
|
|
1145
|
+
["ak erabiltzen ditu"],
|
|
1146
|
+
["cookieak erabiltzen ditu"],
|
|
1147
|
+
[" bazkideek cookieak eta identifikadoreak erabiltzen ditugu"],
|
|
1148
|
+
["norberaren eta hirugarrenen cookie"],
|
|
1149
|
+
["web orri honek cookieak erabiltzen ditu"],
|
|
1150
|
+
["webgune honek cookie propioak eta hirugarrenen cookie-fitxategiak erabiltzen ditu"],
|
|
1151
|
+
["empregamos cookies propias"],
|
|
1152
|
+
["este portal emprega cookies propias ou de terceiros con fins anal\xEDticos"],
|
|
1153
|
+
["\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443"],
|
|
1154
|
+
["\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443"],
|
|
1155
|
+
["cookie", "\u043A\u0443\u043A\u0438"],
|
|
1156
|
+
["\u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438"],
|
|
1157
|
+
["cookie", "\u043A\u0443\u043A\u0438"],
|
|
1158
|
+
[],
|
|
1159
|
+
["usiamo", "utilizziamo"],
|
|
1160
|
+
["cookie"],
|
|
1161
|
+
["noi e i nostri"],
|
|
1162
|
+
[" cookie"],
|
|
1163
|
+
[" cookie"],
|
|
1164
|
+
["tecnici", "di profilazione", "di terze parti", "analitici", "statistici", "di marketing"],
|
|
1165
|
+
["acconsent", "accett"],
|
|
1166
|
+
[" navigazione"],
|
|
1167
|
+
["accetta", "accetto", "accettare", "rifiuta", "rifiuto", "rifiutare"],
|
|
1168
|
+
[" senza accettare"],
|
|
1169
|
+
["rifiuta e abbonati"],
|
|
1170
|
+
["consenso "],
|
|
1171
|
+
[" nostri "],
|
|
1172
|
+
["terze parti selezionate"],
|
|
1173
|
+
["archiviare", "archiviamo", "memorizzare", "memorizziamo"],
|
|
1174
|
+
["anv\xE4nder"],
|
|
1175
|
+
["cookie", "\u30AF\u30C3\u30AD\u30FC"],
|
|
1176
|
+
["bruger cookies"],
|
|
1177
|
+
["informasjonskapsler", "cookies"]
|
|
1178
|
+
];
|
|
1179
|
+
|
|
1180
|
+
// lib/heuristic-prefilter.ts
|
|
1181
|
+
function literalIndex(all) {
|
|
1182
|
+
const distinct = [...new Set(all)].sort((a, b) => b.length - a.length);
|
|
1183
|
+
if (distinct.length === 0) {
|
|
1184
|
+
return { present: () => /* @__PURE__ */ new Set() };
|
|
1185
|
+
}
|
|
1186
|
+
const escape = (l) => l.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
|
|
1187
|
+
const any = new RegExp(`(?=(${distinct.map(escape).join("|")}))`, "g");
|
|
1188
|
+
const implies = /* @__PURE__ */ new Map();
|
|
1189
|
+
const impliedBy = (m) => {
|
|
1190
|
+
let list = implies.get(m);
|
|
1191
|
+
if (!list) {
|
|
1192
|
+
list = distinct.filter((l) => m.startsWith(l));
|
|
1193
|
+
implies.set(m, list);
|
|
1194
|
+
}
|
|
1195
|
+
return list;
|
|
1196
|
+
};
|
|
1197
|
+
return {
|
|
1198
|
+
present(lower) {
|
|
1199
|
+
const found = /* @__PURE__ */ new Set();
|
|
1200
|
+
for (const m of lower.matchAll(any)) {
|
|
1201
|
+
if (!found.has(m[1])) {
|
|
1202
|
+
impliedBy(m[1]).forEach((l) => found.add(l));
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
return found;
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
// lib/heuristic-detect.ts
|
|
790
1211
|
var TEXT_LIMIT = 1e5;
|
|
791
|
-
|
|
792
|
-
|
|
1212
|
+
var DEFAULT_WINDOW = 150;
|
|
1213
|
+
var builtinLiterals;
|
|
1214
|
+
function literalsOf(pattern) {
|
|
1215
|
+
if (!builtinLiterals) {
|
|
1216
|
+
const fresh = DETECT_PATTERN_LITERALS.length === DETECT_PATTERNS.length;
|
|
1217
|
+
builtinLiterals = new Map(fresh ? DETECT_PATTERNS.map((p, i) => [patternOf(p), DETECT_PATTERN_LITERALS[i]]) : []);
|
|
1218
|
+
}
|
|
1219
|
+
return builtinLiterals.get(pattern) ?? [];
|
|
1220
|
+
}
|
|
1221
|
+
var index;
|
|
1222
|
+
var literalsIn = (lower) => (index ??= literalIndex(DETECT_PATTERN_LITERALS.flat())).present(lower);
|
|
1223
|
+
var truncate = (text) => (text || "").slice(0, TEXT_LIMIT);
|
|
1224
|
+
var forInput = (scoped, input) => !scoped.input || scoped.input === input;
|
|
1225
|
+
var stateless = (re) => new RegExp(re.source, re.flags.replace(/[gy]/g, ""));
|
|
1226
|
+
function toPredicate(test) {
|
|
1227
|
+
if (typeof test === "function") {
|
|
1228
|
+
return test;
|
|
1229
|
+
}
|
|
1230
|
+
const re = stateless(test);
|
|
1231
|
+
return (text) => re.test(text);
|
|
1232
|
+
}
|
|
1233
|
+
var compiledPatterns = /* @__PURE__ */ new WeakMap();
|
|
1234
|
+
var compiledNegatives = /* @__PURE__ */ new WeakMap();
|
|
1235
|
+
function compilePatterns(detectPatterns) {
|
|
1236
|
+
let compiled = compiledPatterns.get(detectPatterns);
|
|
1237
|
+
if (!compiled) {
|
|
1238
|
+
compiled = detectPatterns.map((p) => {
|
|
1239
|
+
const pattern = patternOf(p);
|
|
1240
|
+
const input = p instanceof RegExp ? void 0 : p.input;
|
|
1241
|
+
const global = pattern.flags.includes("g") ? pattern : new RegExp(pattern.source, `${pattern.flags}g`);
|
|
1242
|
+
return { id: pattern.toString(), pattern, global, input, literals: literalsOf(pattern) };
|
|
1243
|
+
});
|
|
1244
|
+
compiledPatterns.set(detectPatterns, compiled);
|
|
1245
|
+
}
|
|
1246
|
+
return compiled;
|
|
1247
|
+
}
|
|
1248
|
+
function compileNegatives(negatives) {
|
|
1249
|
+
let compiled = compiledNegatives.get(negatives);
|
|
1250
|
+
if (!compiled) {
|
|
1251
|
+
compiled = negatives.map((n) => {
|
|
1252
|
+
const pattern = n.pattern ? stateless(n.pattern) : null;
|
|
1253
|
+
const unless = n.unless ? toPredicate(n.unless) : null;
|
|
1254
|
+
return {
|
|
1255
|
+
...n,
|
|
1256
|
+
hits: (context) => (!pattern || pattern.test(context)) && !(unless && unless(context)),
|
|
1257
|
+
applies: n.appliesTo ? new Set(n.appliesTo.map(String)) : null
|
|
1258
|
+
};
|
|
1259
|
+
});
|
|
1260
|
+
compiledNegatives.set(negatives, compiled);
|
|
1261
|
+
}
|
|
1262
|
+
return compiled;
|
|
1263
|
+
}
|
|
1264
|
+
function negativeContext(text, start, end, negative) {
|
|
1265
|
+
if (negative.whole) {
|
|
1266
|
+
return text;
|
|
1267
|
+
}
|
|
1268
|
+
if (negative.lines === void 0) {
|
|
1269
|
+
const w = negative.window ?? DEFAULT_WINDOW;
|
|
1270
|
+
return text.slice(Math.max(0, start - w), end + w);
|
|
1271
|
+
}
|
|
1272
|
+
const lineEnd = (i) => {
|
|
1273
|
+
const next = text.indexOf("\n", i);
|
|
1274
|
+
return next === -1 ? text.length : next;
|
|
1275
|
+
};
|
|
1276
|
+
const [before, after] = Array.isArray(negative.lines) ? negative.lines : [negative.lines, negative.lines];
|
|
1277
|
+
let from = start > 0 ? text.lastIndexOf("\n", start - 1) + 1 : 0;
|
|
1278
|
+
let to = lineEnd(end);
|
|
1279
|
+
for (let i = 0; i < before; i++) {
|
|
1280
|
+
from = from >= 2 ? text.lastIndexOf("\n", from - 2) + 1 : 0;
|
|
1281
|
+
}
|
|
1282
|
+
for (let i = 0; i < after; i++) {
|
|
1283
|
+
to = to < text.length ? lineEnd(to + 1) : to;
|
|
1284
|
+
}
|
|
1285
|
+
return text.slice(from, to);
|
|
1286
|
+
}
|
|
1287
|
+
function checkHeuristicPatterns(allText, input, options = {}) {
|
|
1288
|
+
return matchHeuristicPatterns(allText, input, options, false);
|
|
1289
|
+
}
|
|
1290
|
+
function hasHeuristicPatterns(allText, input, options = {}) {
|
|
1291
|
+
return matchHeuristicPatterns(allText, input, options, true).patterns.length > 0;
|
|
1292
|
+
}
|
|
1293
|
+
function matchHeuristicPatterns(allText, input, { patterns: detectPatterns = DETECT_PATTERNS, negatives = DETECT_CONTEXT_NEGATIVES }, firstOnly) {
|
|
1294
|
+
if (input !== void 0 && input !== "popup" && input !== "page") {
|
|
1295
|
+
const got = Array.isArray(input) ? "a pattern list (pass it as the `patterns` option)" : JSON.stringify(input);
|
|
1296
|
+
throw new TypeError(`heuristic input must be 'popup', 'page' or undefined, got ${got}`);
|
|
1297
|
+
}
|
|
1298
|
+
allText = truncate(allText);
|
|
793
1299
|
const patterns = [];
|
|
794
1300
|
const snippets = [];
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
1301
|
+
const suppressed = [];
|
|
1302
|
+
const applicable = compileNegatives(negatives).filter((n) => forInput(n, input));
|
|
1303
|
+
let present;
|
|
1304
|
+
const wholeHits = /* @__PURE__ */ new Map();
|
|
1305
|
+
const hitsAt = (n, start, end) => {
|
|
1306
|
+
if (!n.whole) {
|
|
1307
|
+
return n.hits(negativeContext(allText, start, end, n));
|
|
1308
|
+
}
|
|
1309
|
+
let hit = wholeHits.get(n);
|
|
1310
|
+
if (hit === void 0) {
|
|
1311
|
+
hit = n.hits(allText);
|
|
1312
|
+
wholeHits.set(n, hit);
|
|
1313
|
+
}
|
|
1314
|
+
return hit;
|
|
1315
|
+
};
|
|
1316
|
+
for (const d of compilePatterns(detectPatterns)) {
|
|
1317
|
+
if (!forInput(d, input)) {
|
|
1318
|
+
continue;
|
|
1319
|
+
}
|
|
1320
|
+
if (d.literals.length) {
|
|
1321
|
+
const inText = present ??= literalsIn(allText.toLowerCase());
|
|
1322
|
+
if (!d.literals.some((l) => inText.has(l))) {
|
|
1323
|
+
continue;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
const own = applicable.filter((n) => !n.applies || n.applies.has(d.id));
|
|
1327
|
+
const matched = [];
|
|
1328
|
+
const dropped = /* @__PURE__ */ new Set();
|
|
1329
|
+
let found = false;
|
|
1330
|
+
let kept = own.length === 0;
|
|
1331
|
+
for (const m of allText.matchAll(d.global)) {
|
|
1332
|
+
found = true;
|
|
1333
|
+
if (!kept) {
|
|
1334
|
+
const start = m.index ?? 0;
|
|
1335
|
+
const hit = own.find((n) => hitsAt(n, start, start + m[0].length));
|
|
1336
|
+
if (hit) {
|
|
1337
|
+
dropped.add(hit.name);
|
|
1338
|
+
} else {
|
|
1339
|
+
kept = true;
|
|
802
1340
|
}
|
|
803
1341
|
}
|
|
1342
|
+
if (kept && firstOnly) {
|
|
1343
|
+
break;
|
|
1344
|
+
}
|
|
1345
|
+
matched.push(m[0].substring(0, 200));
|
|
1346
|
+
}
|
|
1347
|
+
if (!found) {
|
|
1348
|
+
continue;
|
|
1349
|
+
}
|
|
1350
|
+
if (!kept) {
|
|
1351
|
+
dropped.forEach((negative) => suppressed.push({ pattern: d.id, negative }));
|
|
1352
|
+
continue;
|
|
1353
|
+
}
|
|
1354
|
+
patterns.push(d.id);
|
|
1355
|
+
if (firstOnly) {
|
|
1356
|
+
break;
|
|
804
1357
|
}
|
|
1358
|
+
snippets.push(...matched);
|
|
805
1359
|
}
|
|
806
|
-
return { patterns, snippets };
|
|
1360
|
+
return { patterns, snippets, suppressed };
|
|
807
1361
|
}
|
|
808
|
-
function
|
|
809
|
-
const
|
|
810
|
-
return
|
|
1362
|
+
function excludedBy(text, input, negatives = DETECT_CONTEXT_NEGATIVES) {
|
|
1363
|
+
const truncated = truncate(text);
|
|
1364
|
+
return compileNegatives(negatives).filter((n) => n.whole && forInput(n, input) && n.hits(truncated)).map((n) => n.name);
|
|
811
1365
|
}
|
|
1366
|
+
|
|
1367
|
+
// lib/heuristic-classify.ts
|
|
812
1368
|
function classifyButtons(buttons) {
|
|
813
1369
|
for (const button of buttons) {
|
|
814
1370
|
button.regexClassification = classifyButtonTextRegex(button.text);
|
|
815
1371
|
}
|
|
816
1372
|
}
|
|
817
|
-
function isExcludedPopup(popupText, excludePatterns = DETECT_NEVER_MATCH_PATTERNS) {
|
|
818
|
-
if (!popupText) {
|
|
819
|
-
return false;
|
|
820
|
-
}
|
|
821
|
-
const truncated = popupText.slice(0, TEXT_LIMIT);
|
|
822
|
-
return excludePatterns.some((p) => p.test(truncated));
|
|
823
|
-
}
|
|
824
1373
|
function classifyPopup(buttons) {
|
|
825
1374
|
const { reject, settings, accept, acknowledge } = buttons.reduce(
|
|
826
1375
|
(acc, button) => {
|
|
@@ -880,18 +1429,28 @@ function classifyButtonTextRegex(buttonText) {
|
|
|
880
1429
|
return "other";
|
|
881
1430
|
}
|
|
882
1431
|
export {
|
|
1432
|
+
ACCEPTEZ_UTILISATION,
|
|
1433
|
+
ACCEPT_ALL,
|
|
883
1434
|
ACCEPT_PATTERNS,
|
|
884
1435
|
ACKNOWLEDGE_PATTERNS,
|
|
885
1436
|
BUTTON_NEVER_MATCH_PATTERNS,
|
|
886
|
-
|
|
1437
|
+
BY_CONTINUING_PRIVACY,
|
|
1438
|
+
DETECT_CONTEXT_NEGATIVES,
|
|
887
1439
|
DETECT_PATTERNS,
|
|
1440
|
+
DE_COOKIE_VERB,
|
|
1441
|
+
GEBRUIK_VAN_COOKIES,
|
|
888
1442
|
REJECT_PATTERNS,
|
|
889
1443
|
SETTINGS_PATTERNS,
|
|
1444
|
+
USE_OF_COOKIES,
|
|
1445
|
+
UTILISATION_DES_COOKIES,
|
|
1446
|
+
VERWENDUNG_VON_COOKIES,
|
|
890
1447
|
checkHeuristicPatterns,
|
|
891
1448
|
classifyButtonTextRegex,
|
|
892
1449
|
classifyButtons,
|
|
893
1450
|
classifyPopup,
|
|
894
1451
|
cleanButtonText,
|
|
1452
|
+
excludedBy,
|
|
895
1453
|
hasHeuristicPatterns,
|
|
896
|
-
|
|
1454
|
+
negativeContext,
|
|
1455
|
+
patternOf
|
|
897
1456
|
};
|