@duckduckgo/autoconsent 18.1.0 → 18.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +68 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +167 -32
- 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 +167 -32
- 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 +167 -32
- package/dist/autoconsent.esm.js +167 -32
- package/dist/autoconsent.playwright.js +167 -32
- package/dist/autoconsent.standalone.js +168 -33
- package/dist/heuristics.cjs.js +175 -32
- package/dist/heuristics.mjs +171 -32
- package/dist/types/heuristic-patterns.d.ts +4 -0
- package/docs/heuristic-detection.md +1 -0
- package/lib/heuristic-literals.ts +52 -5
- package/lib/heuristic-negatives.ts +15 -1
- package/lib/heuristic-patterns.ts +101 -21
- package/package.json +1 -1
- package/rules/autoconsent/aa-cookie-banner.json +2 -2
- package/rules/autoconsent/acconsento.json +45 -0
- 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/bgk-pl.json +18 -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/c-cookie-message.json +9 -0
- package/rules/autoconsent/cookie-agree-banner.json +9 -0
- package/rules/autoconsent/cookie-box-notice.json +41 -0
- package/rules/autoconsent/cookieinfo.json +1 -1
- package/rules/autoconsent/cookies-and-content-security-policy.json +45 -0
- package/rules/autoconsent/dfactory-cookie-notice.json +13 -1
- package/rules/autoconsent/didomi.json +7 -1
- package/rules/autoconsent/facebook.json +16 -6
- 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/imyfone.json +25 -0
- package/rules/autoconsent/interface-medien-gebaeck.json +33 -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/loescher.json +44 -0
- package/rules/autoconsent/meowdb.json +65 -0
- package/rules/autoconsent/monex-co-jp.json +34 -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/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/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/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/sda-it.json +37 -0
- package/rules/autoconsent/seria-group.json +35 -0
- package/rules/autoconsent/shoper.json +10 -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/tcl.json +50 -0
- package/rules/autoconsent/tuki-cookieterms.json +20 -0
- package/rules/autoconsent/weblegal.json +10 -0
- package/rules/autoconsent/weblication.json +38 -0
- package/rules/autoconsent/x28-privacy-settings.json +18 -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/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/bgk-pl.spec.ts +5 -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/c-cookie-message.spec.ts +9 -0
- package/tests/cookie-agree-banner.spec.ts +3 -0
- package/tests/cookie-box-notice.spec.ts +10 -0
- package/tests/cookies-and-content-security-policy.spec.ts +16 -0
- package/tests/didomi.spec.ts +8 -0
- package/tests/facebook.spec.ts +1 -1
- 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/imyfone.spec.ts +9 -0
- package/tests/interface-medien-gebaeck.spec.ts +13 -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/loescher.spec.ts +5 -0
- package/tests/meowdb.spec.ts +3 -0
- package/tests/monex-co-jp.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/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/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/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/sda-it.spec.ts +7 -0
- package/tests/seria-group.spec.ts +3 -0
- package/tests/shoper.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/tcl.spec.ts +9 -0
- package/tests/tuki-cookieterms.spec.ts +8 -0
- package/tests/weblegal.spec.ts +8 -0
- package/tests/weblication.spec.ts +9 -0
- package/tests/x28-privacy-settings.spec.ts +4 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +275 -0
|
@@ -9,6 +9,8 @@ import {
|
|
|
9
9
|
ACCEPT_ALL,
|
|
10
10
|
BY_CONTINUING_PRIVACY,
|
|
11
11
|
DE_COOKIE_VERB,
|
|
12
|
+
DE_SITE_USES_COOKIES,
|
|
13
|
+
DE_THIS_SITE_COOKIES,
|
|
12
14
|
GEBRUIK_VAN_COOKIES,
|
|
13
15
|
USE_OF_COOKIES,
|
|
14
16
|
UTILISATION_DES_COOKIES,
|
|
@@ -124,6 +126,10 @@ const CONSENT_WORDS =
|
|
|
124
126
|
const LEGAL_AGREEMENT =
|
|
125
127
|
/\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
128
|
|
|
129
|
+
// investor eligibility gates on fund managers' sites: their accept/decline confirms investor status, not cookies
|
|
130
|
+
const INVESTOR_GATE =
|
|
131
|
+
/\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;
|
|
132
|
+
|
|
127
133
|
// drop single matches whose context shows the text isn't a consent notice, or whole popups that aren't one
|
|
128
134
|
export const DETECT_CONTEXT_NEGATIVES: ContextNegative[] = [
|
|
129
135
|
// popups with their own age confirmation are age gates, even when they mention cookies; a bare accept doesn't count
|
|
@@ -131,6 +137,8 @@ export const DETECT_CONTEXT_NEGATIVES: ContextNegative[] = [
|
|
|
131
137
|
{ name: 'age-gate-popup', pattern: AGE_WORDING, unless: ageGateUnless(COOKIE_CHOICE_RE), whole: true, input: 'popup' },
|
|
132
138
|
// a license or terms agreement may mention cookies, and its decline button must not be clicked as a cookie reject
|
|
133
139
|
{ name: 'legal-agreement', pattern: LEGAL_AGREEMENT, whole: true, input: 'popup' },
|
|
140
|
+
// an investor eligibility gate may mention cookies, and its decline button must not be clicked as a cookie reject
|
|
141
|
+
{ name: 'investor-gate', pattern: INVESTOR_GATE, whole: true, input: 'popup' },
|
|
134
142
|
// page text next to an age gate, unless a consent control is there too
|
|
135
143
|
{ name: 'age-gate', pattern: AGE_WORDING, unless: ageGateUnless(NOTICE_CONTROL), lines: [4, 5], input: 'page' },
|
|
136
144
|
// terms of use need cookie or consent wording; a privacy-policy-only notice needs that or a button
|
|
@@ -169,5 +177,11 @@ export const DETECT_CONTEXT_NEGATIVES: ContextNegative[] = [
|
|
|
169
177
|
appliesTo: [ACCEPTEZ_UTILISATION],
|
|
170
178
|
},
|
|
171
179
|
// the same sentence is also a footer line with only a "learn more" link
|
|
172
|
-
{
|
|
180
|
+
{
|
|
181
|
+
name: 'de-cookie-verb-needs-control',
|
|
182
|
+
unless: NOTICE_CONTROL,
|
|
183
|
+
lines: [1, 6],
|
|
184
|
+
input: 'page',
|
|
185
|
+
appliesTo: [DE_COOKIE_VERB, DE_THIS_SITE_COOKIES, DE_SITE_USES_COOKIES],
|
|
186
|
+
},
|
|
173
187
|
];
|
|
@@ -14,6 +14,10 @@ export const VERWENDUNG_VON_COOKIES = /verwendung.{0,100}von.{0,100}cookies/gi;
|
|
|
14
14
|
export const DE_COOKIE_VERB =
|
|
15
15
|
/\b(?:nutzen|nutzt|verwenden|verwendet|setzen|setzt|benutzen|benutzt|speichert|platzieren)\b(?: \S+){0,4} cookies\b/gi;
|
|
16
16
|
export const GEBRUIK_VAN_COOKIES = /gebruik.{0,100}van.{0,100}cookies/gi;
|
|
17
|
+
export const USO_DEI_COOKIE = /\b(?:uso|utilizzo) dei cookies?\b/gi;
|
|
18
|
+
export const ANVANDNING_AV_COOKIES = /\b(?:användning|användningen|användandet) av (?:\S+ )?(?:cookies|kakor)\b/gi;
|
|
19
|
+
export const DE_THIS_SITE_COOKIES = /\b(?:unsere|diese)[rs]? (?:web)?(?:seite|site)\b.{0,100}cookies/gi;
|
|
20
|
+
export const DE_SITE_USES_COOKIES = /\b(?:seite|site)\b.{0,100}\b(?:nutzt|benutzt)\b.{0,100}cookies/gi;
|
|
17
21
|
|
|
18
22
|
// TODO: check for false positive detections per pattern
|
|
19
23
|
// these patterns are matched against popup-like elements or full document text to detect unknown cookie popups
|
|
@@ -23,9 +27,15 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
23
27
|
/reject all/gi,
|
|
24
28
|
/only necessary cookies/gi, // "only necessary" is probably too broad
|
|
25
29
|
/(?:by continuing.{0,100}cookie)|(?:cookie.{0,100}by continuing)/gi,
|
|
30
|
+
/\bby using (?:this|our) (?:web)?site\b.{0,100}cookie/gi,
|
|
26
31
|
BY_CONTINUING_PRIVACY,
|
|
27
32
|
// up to two qualifiers are common: "optional", "essential", "analytics", "google analytics", "third party", ...
|
|
28
|
-
|
|
33
|
+
// singular too, but not "cookie-free"
|
|
34
|
+
/we (?:also )?(?:use|serve)(?: \w+){0,2} cookies?\b(?!-)/gi,
|
|
35
|
+
/\bwe use (?:\S+ )?cookie files\b/gi,
|
|
36
|
+
// consent asked as a question: "can I use cookies to …?", "allow analytics cookies?"
|
|
37
|
+
/\b(?:can|may) (?:i|we) use (?:\S+ ){0,2}cookies\b/gi,
|
|
38
|
+
/\ballow (?:\S+ )?cookies\?/gi,
|
|
29
39
|
/we are using cookies/gi,
|
|
30
40
|
USE_OF_COOKIES,
|
|
31
41
|
/website uses cookies to enhance your browsing experience/gi,
|
|
@@ -34,7 +44,7 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
34
44
|
/such as cookies/gi,
|
|
35
45
|
/read more about.{0,100}cookies/gi,
|
|
36
46
|
/consent to.{0,100}cookies/gi,
|
|
37
|
-
/we and our partners.{0,100}cookies/gi,
|
|
47
|
+
/we and our (?:\w+ )?partners.{0,100}cookies/gi,
|
|
38
48
|
/we.{0,100}store.{0,100}information.{0,100}such as.{0,100}cookies/gi,
|
|
39
49
|
/store and\/or access information.{0,100}on a device/gi,
|
|
40
50
|
/personalised ads and content, ad and content measurement/gi,
|
|
@@ -60,11 +70,17 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
60
70
|
/["“]?(?:share|sell)["”]? or ["“]?(?:sell|share)["”]? (?:your )?(?:personal )?information\b/gi,
|
|
61
71
|
/\bresidents have (?:certain )?rights with regard to the sale\b/gi,
|
|
62
72
|
/\bwe use technologies (?:on this website )?(?:that may )?(?:to )?collect\b/gi,
|
|
73
|
+
/\bwe use third[- ]party tools to collect information\b/gi,
|
|
63
74
|
// pay-or-consent walls
|
|
64
75
|
/\bcontinue reading with advertising\b|\b(?:with|mit) (?:advertising|werbung) (?:and|und) tracking\b/gi,
|
|
65
76
|
/\bconsent and continue\b/gi,
|
|
66
77
|
// preference centres are often in the page but hidden, so popup text only
|
|
67
78
|
{ pattern: /\bstore or retrieve information on your browser\b|\bstockées dans votre navigateur ou récupérées\b/gi, input: 'popup' },
|
|
79
|
+
/\bwe have cookies\b/gi,
|
|
80
|
+
/\b(?:revoke|withdraw) your consent at any time\b|\beinwilligung jederzeit widerrufen\b/gi,
|
|
81
|
+
/\bwe use (?:[\w-]+ )?analytics (?:to|for)\b|\bwe use google analytics\b.{0,100}\bcookie/gi,
|
|
82
|
+
/\b(?:con|senza) il (?:tuo|vostro) consenso\b/gi,
|
|
83
|
+
/\baccept or (?:reject|decline) (?:all |optional |non-essential )?cookies\b/gi,
|
|
68
84
|
|
|
69
85
|
// it might be tempting to add the patterns below, but they cause too many false positives. Don't do it :)
|
|
70
86
|
// /cookies? settings/i,
|
|
@@ -101,6 +117,10 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
101
117
|
/\bconsentez à l.utilisation (?:de |des )?cookies\b|\bdépôt (?:de|des) cookies\b/gi,
|
|
102
118
|
/\bles cookies nous permettent\b|\bnos partenaires et nous(?:-mêmes)?\b/gi,
|
|
103
119
|
/\baccepter (?:&|et) fermer\b/gi,
|
|
120
|
+
/\b(?:on utilise|nous utilisons)(?: \S+)? cookies\b/gi,
|
|
121
|
+
/\ben (?:naviguant|poursuivant)\b.{0,100}cookies/gi,
|
|
122
|
+
/(?:en continuant.{0,100}cookie)|(?:cookie.{0,100}en continuant)/gi,
|
|
123
|
+
/\ben (?:naviguant|poursuivant|continuant)\b.{0,100}confidentialité/gi,
|
|
104
124
|
|
|
105
125
|
// DE
|
|
106
126
|
/wir.{0,100}verwenden.{0,100}cookies/gi,
|
|
@@ -132,8 +152,20 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
132
152
|
/\bzustimmen und weiter\b|\bweiter,? ohne zu (?:akzeptieren|zustimmen)\b/gi,
|
|
133
153
|
/\b(?:einwilligung|zustimmung) (?:zu|zur|in die) (?:\S+ )?cookies\b|\bcookie-(?:zustimmung|einwilligung)\b/gi,
|
|
134
154
|
/\btracking-technologien\b/gi,
|
|
155
|
+
DE_SITE_USES_COOKIES,
|
|
156
|
+
// verb before the subject: "Für die Analyse nutzen wir Cookies"
|
|
157
|
+
/\b(?:verwenden|nutzen|benutzen|setzen) wir\b.{0,100}cookies/gi,
|
|
158
|
+
/\bwir\b.{0,100}\bsetzen\b.{0,100}cookies/gi,
|
|
159
|
+
/\bbenutz(?:t|en)\b.{0,100}cookies/gi,
|
|
160
|
+
/\bdurch die (?:weitere )?nutzung (?:unserer|dieser) (?:webseite|website|seite)\b.{0,100}datenschutz/gi,
|
|
135
161
|
/\bakzeptier\w* (?:du |sie )?(?:die )?verwendung (?:\S+ )?cookies\b/gi,
|
|
136
162
|
/\bmit werbetracking weiterlesen\b|\bweiter mit werbung\b|\bcon tracking e annunci\b/gi,
|
|
163
|
+
// in page text, a footer line such as "Diese Website verwendet Cookies. Mehr erfahren" needs a consent control nearby (see heuristic-negatives.ts)
|
|
164
|
+
DE_THIS_SITE_COOKIES,
|
|
165
|
+
/(?:durch die weitere nutzung.{0,100}cookie)|(?:cookie.{0,100}durch die weitere nutzung)/gi,
|
|
166
|
+
/\b(?:analyse|statistik)-?cookies\b/gi,
|
|
167
|
+
/\b(?:marketing|tracking)-?cookies\b/gi,
|
|
168
|
+
/\bcookies oder (?:andere|ähnliche)/gi,
|
|
137
169
|
|
|
138
170
|
// NL
|
|
139
171
|
GEBRUIK_VAN_COOKIES,
|
|
@@ -145,7 +177,7 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
145
177
|
/cookies weigeren/gi,
|
|
146
178
|
/weiger.{0,100}(?:cookies|alles)/gi,
|
|
147
179
|
/doorgaan zonder (?:te accepteren|akkoord te gaan)/gi,
|
|
148
|
-
/alleen.{0,100}(?:optionele|functionele|functioneel|noodzakelijke|essentiële).{0,100}cookies/gi,
|
|
180
|
+
/alleen.{0,100}(?:optionele|functionele|functioneel|noodzakelijke|essentiële|standaard).{0,100}cookies/gi,
|
|
149
181
|
/wijs alles af/gi,
|
|
150
182
|
/\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
183
|
/\bonze partners vragen om (?:jouw|uw|je) toestemming\b/gi,
|
|
@@ -154,6 +186,12 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
154
186
|
/\baccepteer (?:alles|alle cookies)\b/gi,
|
|
155
187
|
// Dutch words only: "tracking cookies" and "marketing cookies" are also English prose and footer links
|
|
156
188
|
/\b(?:analytische|functionele|essentiële|noodzakelijke) cookies\b/gi,
|
|
189
|
+
/(?:te blijven gebruiken.{0,100}cookie)|(?:cookie.{0,100}te blijven gebruiken)/gi,
|
|
190
|
+
/cookies.{0,100}beste? (?:mogelijke )?(?:ervaring|gebruikerservaring)/gi,
|
|
191
|
+
/\b(?:we|wij) (?:gebruiken|plaatsen)\b.{0,100}cookies/gi,
|
|
192
|
+
/\bgebruiken (?:we|wij) cookies\b/gi,
|
|
193
|
+
/\bplaatsen van\b.{0,50}cookies/gi,
|
|
194
|
+
/\bte blijven gebruiken\b.{0,100}privacy/gi,
|
|
157
195
|
|
|
158
196
|
// Spanish (ES)
|
|
159
197
|
/(si|al) contin[úu]a[sr]?( navegando)?.{0,100} cookie/gi,
|
|
@@ -185,7 +223,7 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
185
223
|
// examples:
|
|
186
224
|
// wykorzystuje pliki cookie (uses cookies)
|
|
187
225
|
// 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,
|
|
226
|
+
/(używamy|stosujemy|stosuje|wykorzystujemy|wykorzyst(uje|ywane))( są)?.{0,20} plik(i|ów|ach) [„"]?cookie/gi,
|
|
189
227
|
/(używać|używamy).{0,80} (ciasteczek|cookie)/gi,
|
|
190
228
|
/cele przetwarzania twoich danych przez zaufanych partnerów iab/gi,
|
|
191
229
|
/dzięki (plikom cookie|ciasteczkom|cookie)/gi,
|
|
@@ -236,12 +274,14 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
236
274
|
// note: \w does not match Cyrillic, so these use explicit character ranges
|
|
237
275
|
/использу[а-яё]*.{0,40}(?:файл[а-яё]*[\s-]+)?(?:cookie|куки)/gi,
|
|
238
276
|
/(?:cookie|куки).{0,40}использу[а-яё]*/gi,
|
|
239
|
-
/(?:использовани[а-яё]
|
|
277
|
+
/(?:использовани[а-яё]*|обраб(?:отк|атыва)[а-яё]*|хранени[а-яё]*).{0,20}(?:файл(?:ов|ы)[\s-]+)?(?:cookie|куки)/gi,
|
|
240
278
|
/технологи[а-яё]*\s+(?:cookie|куки)/gi,
|
|
241
279
|
// e.g. "сайт собирает cookie", "мы применяем файлы cookie", "сохраняем куки на вашем устройстве"
|
|
242
280
|
/(?:собира[а-яё]*|сбор|применя[а-яё]*|сохраня[а-яё]*|размеща[а-яё]*|устанавлива[а-яё]*).{0,30}(?:файл[а-яё]*[\s-]+)?(?:cookie|куки)/gi,
|
|
243
281
|
// "файлы cookie" / "cookie-файлы" / "куки-файлы" in any phrasing
|
|
244
282
|
/(?:файл[а-яё]*[\s-]+(?:cookie|куки)|(?:cookie|куки)[\s-]+файл[а-яё]*)/gi,
|
|
283
|
+
// cookies described without the word: "файлов, сохраняемых в браузере пользователя"
|
|
284
|
+
/файл[а-яё]*,?\s+(?:сохраня[а-яё]*|хран[а-яё]*)[а-яё\s]{0,30}браузер/gi,
|
|
245
285
|
|
|
246
286
|
// Italian (IT)
|
|
247
287
|
// e.g. "usiamo i cookie", "utilizziamo cookie tecnici", "questo sito utilizza i cookie", "noi e i nostri partner utilizziamo i cookie"
|
|
@@ -260,39 +300,62 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
260
300
|
/\b(?:insieme ai|con i) nostri (?:\d+ )?partner\b/gi,
|
|
261
301
|
/\bterze parti selezionate\b/gi,
|
|
262
302
|
/\b(?:archiviare|archiviamo|memorizzare|memorizziamo) e\/o (?:accedere|accediamo)\b/gi,
|
|
303
|
+
USO_DEI_COOKIE,
|
|
304
|
+
/\butilizz\w*\b.{0,30}cookie/gi,
|
|
305
|
+
/\b(?:questo|il nostro) sito\b.{0,100}cookie/gi,
|
|
306
|
+
/\bcookie\b.{0,30}\btecnologie (?:simili|analoghe)\b/gi,
|
|
263
307
|
|
|
264
308
|
// Swedish (SV)
|
|
265
309
|
// e.g. "vi använder cookies", "vi använder spårningstekniker såsom cookies", "webbplatsen använder kakor"
|
|
266
310
|
/(?:vi|webbplatsen|webbplats|sajten|sidan)\s+använder.{0,60}(?:cookies|kakor)/gi,
|
|
311
|
+
// any subject and inverted order: "Svenska kraftnät använder kakor", "använder vi också cookies", "vill använda cookies",
|
|
312
|
+
// "vi sätter inga egna cookies"
|
|
313
|
+
/\b(?:använd(?:er|a)|sätter|nyttjar) (?:vi |sig av |oss av )?(?:\S+ ){0,3}(?:cookies|kakor)\b/gi,
|
|
314
|
+
// passive: "på webbplatsen används kakor", "kakor används för att …"
|
|
315
|
+
/\banvänds (?:\S+ ){0,2}(?:cookies|kakor)\b|\b(?:cookies|kakor)\b.{0,60}\banvänds\b/gi,
|
|
316
|
+
ANVANDNING_AV_COOKIES,
|
|
317
|
+
/\b(?:godkänn|accepter|tillåt)\S* (?:\S+ ){0,4}(?:cookies|kakor)\b|\b(?:cookies|kakor) (?:som )?du tillåter\b/gi,
|
|
318
|
+
// a button or "… nödvändiga kakor", not "endast nödvändiga resurser"
|
|
319
|
+
/\b(?:endast|bara|enbart) nödvändiga(?: (?:cookies|kakor))?(?![ \t]*[\wåäö])/gi,
|
|
320
|
+
/\bavvisa alla\b/gi,
|
|
321
|
+
// TCF wording
|
|
322
|
+
/\blagra och\/eller (?:få åtkomst till|komma åt) information\b/gi,
|
|
323
|
+
/\b(?:dess|våra) partners?\b.{0,100}\b(?:cookies|kakor)\b/gi,
|
|
324
|
+
/\btekniker (?:såsom|som) (?:cookies|kakor)\b/gi,
|
|
267
325
|
|
|
268
326
|
// Japanese (JA)
|
|
269
327
|
// e.g. "当サイトはCookieを使用しています", "クッキー(Cookie)を利用しています"
|
|
270
|
-
/(?:cookie|クッキー).{0,
|
|
328
|
+
/(?:cookie|クッキー).{0,20}を(?:使用|利用)/gi,
|
|
329
|
+
// e.g. "閲覧履歴を外部サービスに送信"
|
|
330
|
+
/(?:閲覧履歴|端末情報|利用者情報).{0,30}を外部(?:サービス|事業者|に|へ)/gi,
|
|
271
331
|
|
|
272
332
|
// Danish (DA)
|
|
273
333
|
// e.g. "vi bruger cookies", "hjemmesiden bruger cookies til at ..."
|
|
274
|
-
|
|
334
|
+
/\b(?:bruger|anvender|benytter) cookies\b/gi,
|
|
275
335
|
|
|
276
336
|
// Norwegian (NO)
|
|
277
337
|
// e.g. "vi bruker informasjonskapsler", "kan vi bruke valgfrie informasjonskapsler", "nettstedet bruker cookies"
|
|
278
338
|
/\b(?:vi|nettstedet|nettsiden|siden)\s+bruker?\s.{0,60}?(?:informasjonskapsler|cookies)/gi,
|
|
339
|
+
/\bvi benytter(?: \S+)? (?:cookies|informasjonskapsler)\b/gi,
|
|
340
|
+
/\bbruk av (?:cookies|informasjonskapsler)\b/gi,
|
|
279
341
|
];
|
|
280
342
|
|
|
281
343
|
const REJECT_PATTERNS_ENGLISH = [
|
|
282
|
-
// e.g. "reject", "reject all", "reject all cookies", "deny all", "refuse cookies", "decline",
|
|
344
|
+
// e.g. "reject", "reject all", "reject all cookies", "reject cookie", "deny all", "refuse cookies", "decline", "disallow cookies",
|
|
283
345
|
// "reject non-essential cookies", "reject unnecessary cookies", "reject all but necessary", "reject all and close"
|
|
284
346
|
// 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,
|
|
347
|
+
/^\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
348
|
|
|
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,
|
|
349
|
+
// e.g. "i do not accept", "do not accept cookies", "i do not accept the use of cookies", "do not allow cookies", "dont allow"
|
|
350
|
+
/^\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
351
|
|
|
290
352
|
// e.g. "continue without accepting", "continue without agreeing", "continue without agreeing →"
|
|
291
353
|
/^\s*(continue|proceed|continue\s+browsing)\s+without\s+(accepting|agreeing|consent|cookies|tracking)(\s*→)?\s*$/is,
|
|
292
354
|
|
|
293
355
|
// 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
|
-
|
|
356
|
+
// "allow necessary cookies continue", "use essential cookies only", "functional only", "essential only cookies", "i confirm necessary",
|
|
357
|
+
// "proceed with necessary cookies only"
|
|
358
|
+
/^\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
359
|
/^\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
360
|
/^\s*(strictly\s+)?(necessary|essential|essentials|functional|required|minimal)\s+((cookies\s+)?only|only\s+cookies)\s*$/is,
|
|
298
361
|
|
|
@@ -311,6 +374,9 @@ const REJECT_PATTERNS_ENGLISH = [
|
|
|
311
374
|
|
|
312
375
|
'no',
|
|
313
376
|
/^no,? thank(s| you)$/is,
|
|
377
|
+
// e.g. "no cookies", "no cookies for me, thanks", "rather not", "no, rather not"
|
|
378
|
+
/^no,?\s+cookies(\s+for\s+me)?(,?\s*thank(s| you))?$/is,
|
|
379
|
+
/^(no,?\s+)?rather not$/is,
|
|
314
380
|
/^opt[ -]out$/is,
|
|
315
381
|
'dont enable',
|
|
316
382
|
'i do not agree',
|
|
@@ -342,6 +408,8 @@ const REJECT_PATTERNS_DUTCH = [
|
|
|
342
408
|
'geen cookies toestaan',
|
|
343
409
|
'liever geen cookies',
|
|
344
410
|
'functioneel altijd actief',
|
|
411
|
+
// e.g. "ik accepteer geen cookies", "nee, ik wil geen optimale cookies"
|
|
412
|
+
/^(nee,?\s+)?(ik\s+)?(wil|accepteer|aanvaard)\s+geen\s+(\S+\s+)?cookies$/is,
|
|
345
413
|
];
|
|
346
414
|
|
|
347
415
|
const REJECT_PATTERNS_FRENCH = [
|
|
@@ -463,13 +531,14 @@ const REJECT_PATTERNS_DANISH = [
|
|
|
463
531
|
// (accept/allow) only necessary cookies
|
|
464
532
|
/^(accepter\s+|tillad\s+)?(kun|udelukkende)\s+(strengt\s+)?nødvendige( cookies)?$/is,
|
|
465
533
|
|
|
466
|
-
// "nej tak" (no thanks)
|
|
534
|
+
// "nej tak" (no thanks), e.g. "du kan sige nej tak til statistik"
|
|
467
535
|
/^nej(,?\s+tak)?$/is,
|
|
536
|
+
/^(du kan )?(sige )?nej,? tak til \S+$/is,
|
|
468
537
|
];
|
|
469
538
|
|
|
470
539
|
const REJECT_PATTERNS_NORWEGIAN = [
|
|
471
|
-
// avvis / avslå (reject verbs)
|
|
472
|
-
/(^|\s)(avvis|avslå)/is,
|
|
540
|
+
// avvis / avslå (reject verbs), not the status "avslått" (rejected)
|
|
541
|
+
/(^|\s)(avvis|avslå)(\s|$)/is,
|
|
473
542
|
|
|
474
543
|
// (accept/allow/use) only necessary cookies
|
|
475
544
|
/^(godta\s+|tillat\s+|aksepter\s+|bruk\s+)?(kun|bare)\s+(strengt\s+)?nødvendige( (informasjonskapsler|cookies))?$/is,
|
|
@@ -610,7 +679,7 @@ export const SETTINGS_PATTERNS = [
|
|
|
610
679
|
'preferences',
|
|
611
680
|
/customi(s|z)e/is,
|
|
612
681
|
'more options',
|
|
613
|
-
|
|
682
|
+
/^(?!.*\b(polic(y|ies)|notice|statement|privacy page)\b).*(manage|configure) (my|your) (preferences|choices|cookies)/is,
|
|
614
683
|
/(cookie )?preference center/is,
|
|
615
684
|
'configure',
|
|
616
685
|
'cookie manager',
|
|
@@ -620,7 +689,7 @@ export const SETTINGS_PATTERNS = [
|
|
|
620
689
|
/privacy choices/is,
|
|
621
690
|
/^(privacy|cookie|custom) settings$/is,
|
|
622
691
|
/^cookies? (settings|preferences|setting)(?!.*\bdo not\b)/is,
|
|
623
|
-
/^(?!.*\
|
|
692
|
+
/^(?!.*\b(polic(y|ies)|notice|statement|privacy page)\b).*(manage|customize|customise|opt-out|edit).*(cookies|preferences|settings|options)/is,
|
|
624
693
|
'cookie consent options',
|
|
625
694
|
'privacy controls',
|
|
626
695
|
// German
|
|
@@ -938,7 +1007,7 @@ export const ACCEPT_PATTERNS = [
|
|
|
938
1007
|
export const ACKNOWLEDGE_PATTERNS = [
|
|
939
1008
|
// close / dismiss the banner/dialog/message (multilingual). The negative lookahead avoids
|
|
940
1009
|
// 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,
|
|
1010
|
+
/^(?!.*\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
1011
|
|
|
943
1012
|
// "ok" / "okay" / "oké" (optionally followed by a short acknowledgement)
|
|
944
1013
|
/^(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 +1019,18 @@ export const ACKNOWLEDGE_PATTERNS = [
|
|
|
950
1019
|
/^(confirm|bestätigen|bevestigen|confirmar|potwierdź)[ !.]*$/is,
|
|
951
1020
|
|
|
952
1021
|
// neutral "continue" without accept/reject wording
|
|
953
|
-
/^(continuer|doorgaan|ga verder)$/is,
|
|
1022
|
+
/^(continuer|poursuivre|doorgaan|ga verder)$/is,
|
|
1023
|
+
// e.g. "continue browsing", "continue to browse the site"
|
|
1024
|
+
/^continue (to )?brows(e|ing)( (the|our) (site|website))?$/is,
|
|
1025
|
+
// German "hide", e.g. "ausblenden", "hinweis ausblenden", "ok. ausblenden."
|
|
1026
|
+
/^(ok[ .!,]*)?(hinweis )?ausblenden[ .!]*$/is,
|
|
954
1027
|
|
|
955
1028
|
'continue',
|
|
956
1029
|
'x',
|
|
957
1030
|
/^got it!?$/,
|
|
958
1031
|
'acknowledge',
|
|
1032
|
+
// notice-only banner with no choice
|
|
1033
|
+
'i agree, dismiss this banner',
|
|
959
1034
|
/^close (banner|cookie notification)$/is,
|
|
960
1035
|
/understood$/is,
|
|
961
1036
|
'confirm my choices',
|
|
@@ -993,7 +1068,7 @@ export const ACKNOWLEDGE_PATTERNS = [
|
|
|
993
1068
|
|
|
994
1069
|
// Russian (RU)
|
|
995
1070
|
// e.g. "понятно", "всё понятно", "хорошо", "ясно"; \w does not match Cyrillic
|
|
996
|
-
/^\s*(
|
|
1071
|
+
/^\s*(ок|окей|хорошо|ясно|(вс[её]\s+)?(понятно|понял[аи]?))[!.]*\s*$/is,
|
|
997
1072
|
// e.g. "закрыть", "закрыть уведомление о cookie"
|
|
998
1073
|
/^\s*закрыть([\s-]+(это|эту|баннер|уведомлени[а-яё]*|окно|сообщени[а-яё]*|плашк[а-яё]*|информаци[а-яё]*)){0,2}([\s-]+(о|об)[\s-]+(cookie|куки[а-яё]*|файл[а-яё]*[\s-]+cookie))?\s*$/is,
|
|
999
1074
|
// e.g. "больше не показывать", "не показывать снова"
|
|
@@ -1001,4 +1076,9 @@ export const ACKNOWLEDGE_PATTERNS = [
|
|
|
1001
1076
|
// e.g. "подтвердить", "подтверждаю выбор", "сохранить настройки", "сохранить и закрыть"
|
|
1002
1077
|
/^\s*(подтвер(дить|ждаю|ждени[а-яё]*)|сохран(ить|яю|ение))([\s-]+(мой|мои|моё|свой|свои|своё)?[\s-]*(выбор[а-яё]*|настройк[а-яё]*|парамет[а-яё]*|предпочтени[а-яё]*|согласи[а-яё]*))?([\s-]+и[\s-]+(закрыть|продолжить))?\s*$/is,
|
|
1003
1078
|
'продолжить',
|
|
1079
|
+
|
|
1080
|
+
// Japanese (JA)
|
|
1081
|
+
// e.g. "閉じる" (close), "確認" / "確認しました" (confirmed), "了解" (understood), "確認して閉じる";
|
|
1082
|
+
// not "同意して閉じる" (agree and close) or the verb "確認する" (confirm)
|
|
1083
|
+
/^(確認|了解)(しました)?$|^((確認|了解)して)?閉じる$/,
|
|
1004
1084
|
];
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aa-cookie-banner",
|
|
3
|
-
"vendorUrl": "https://www.
|
|
3
|
+
"vendorUrl": "https://www.envoyair.com/",
|
|
4
4
|
"runContext": {
|
|
5
|
-
"urlPattern": "^https://(www\\.)?(
|
|
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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "AppConsent",
|
|
3
|
-
"prehideSelectors": ["iframe[
|
|
3
|
+
"prehideSelectors": ["iframe[srcdoc*='cdn.appconsent.io/tcf2-clear/']"],
|
|
4
4
|
"detectCmp": [
|
|
5
5
|
{
|
|
6
6
|
"exists": "script[src*='cdn.appconsent.io/tcf2-clear/'][src*='core.bundle.js']"
|
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
],
|
|
9
9
|
"detectPopup": [
|
|
10
10
|
{
|
|
11
|
-
"visible": "iframe[
|
|
11
|
+
"visible": "iframe[srcdoc*='cdn.appconsent.io/tcf2-clear/']"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"optIn": [
|
|
15
15
|
{
|
|
16
|
-
"waitForThenClick": ["iframe[
|
|
16
|
+
"waitForThenClick": ["iframe[srcdoc*='cdn.appconsent.io/tcf2-clear/']", ".button__acceptAll"]
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"optOut": [
|
|
20
20
|
{
|
|
21
|
-
"waitFor": ["iframe[
|
|
21
|
+
"waitFor": ["iframe[srcdoc*='cdn.appconsent.io/tcf2-clear/']", ".button__refuseAll, .button__skip"]
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"if": { "exists": ["iframe[
|
|
25
|
-
"then": [{ "click": ["iframe[
|
|
26
|
-
"else": [{ "click": ["iframe[
|
|
24
|
+
"if": { "exists": ["iframe[srcdoc*='cdn.appconsent.io/tcf2-clear/']", ".button__refuseAll"] },
|
|
25
|
+
"then": [{ "click": ["iframe[srcdoc*='cdn.appconsent.io/tcf2-clear/']", ".button__refuseAll"] }],
|
|
26
|
+
"else": [{ "click": ["iframe[srcdoc*='cdn.appconsent.io/tcf2-clear/']", ".button__skip"] }]
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
"test": [
|
|
30
30
|
{
|
|
31
|
-
"waitForVisible": "iframe[
|
|
31
|
+
"waitForVisible": "iframe[srcdoc*='cdn.appconsent.io/tcf2-clear/']",
|
|
32
32
|
"timeout": 1000,
|
|
33
33
|
"check": "none"
|
|
34
34
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "askas",
|
|
3
|
+
"vendorUrl": "https://www.askas.se/",
|
|
4
|
+
"prehideSelectors": ["#cookie_consent"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{ "exists": "#cookie_consent" },
|
|
7
|
+
{ "exists": "#cookie_consent_manage_rec" },
|
|
8
|
+
{ "exists": "#cookie_consent_manager_confirm" }
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [{ "visible": "#cookie_consent" }],
|
|
11
|
+
"optIn": [{ "waitForThenClick": "#cookie_consent_manage_rec" }],
|
|
12
|
+
"optOut": [
|
|
13
|
+
{
|
|
14
|
+
"if": { "exists": ".cookie_consent_manager_accept_req" },
|
|
15
|
+
"then": [
|
|
16
|
+
{
|
|
17
|
+
"if": { "visible": ".cookie_consent_manager_accept_req", "check": "none" },
|
|
18
|
+
"then": [
|
|
19
|
+
{ "click": "#cookie_consent_manage" },
|
|
20
|
+
{ "waitForVisible": ".cookie_consent_manager_accept_req", "timeout": 2000, "optional": true }
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{ "click": ".cookie_consent_manager_accept_req" }
|
|
24
|
+
],
|
|
25
|
+
"else": [
|
|
26
|
+
{
|
|
27
|
+
"if": { "visible": "#cookie_consent_manager_confirm", "check": "none" },
|
|
28
|
+
"then": [
|
|
29
|
+
{ "click": "#cookie_consent_manage" },
|
|
30
|
+
{ "waitForVisible": "#cookie_consent_manager_confirm", "timeout": 2000 }
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{ "click": "#cookie_consent_manager input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
|
|
34
|
+
{ "click": "#cookie_consent_manager_confirm" }
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"test": [{ "cookieContains": "air_cookie_consent=" }, { "cookieContains": "false}" }]
|
|
39
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "atomstore",
|
|
3
|
+
"vendorUrl": "https://www.atomstore.pl/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"main": true,
|
|
7
|
+
"frame": false
|
|
8
|
+
},
|
|
9
|
+
"prehideSelectors": ["#RodoCookiesInfoFirst", "#RodoCookiesInit"],
|
|
10
|
+
"detectCmp": [
|
|
11
|
+
{
|
|
12
|
+
"exists": "#RodoCookiesInfoFirst [data-type=\"disable-cookies-button\"], #RodoCookiesInit [data-type=\"disable-cookies-button\"], #RodoCookiesInfo [data-type=\"disable-cookies-button\"]"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"detectPopup": [{ "visible": "#RodoCookiesInfoFirst.in, #RodoCookiesInit.in, #RodoCookiesInfo.in", "check": "any" }],
|
|
16
|
+
"optIn": [
|
|
17
|
+
{
|
|
18
|
+
"if": { "exists": "#RodoCookiesInfoFirst.in" },
|
|
19
|
+
"then": [{ "waitForThenClick": "#RodoCookiesInfoFirst [data-type=\"accept-cookies-button\"]" }],
|
|
20
|
+
"else": [
|
|
21
|
+
{
|
|
22
|
+
"if": { "exists": "#RodoCookiesInit.in" },
|
|
23
|
+
"then": [{ "waitForThenClick": "#RodoCookiesInit [data-type=\"accept-cookies-button\"]" }],
|
|
24
|
+
"else": [{ "waitForThenClick": "#RodoCookiesInfo [data-type=\"accept-cookies-button\"]" }]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"optOut": [
|
|
30
|
+
{
|
|
31
|
+
"if": { "exists": "#RodoCookiesInfoFirst.in" },
|
|
32
|
+
"then": [{ "waitForThenClick": "#RodoCookiesInfoFirst [data-type=\"disable-cookies-button\"]" }],
|
|
33
|
+
"else": [
|
|
34
|
+
{
|
|
35
|
+
"if": { "exists": "#RodoCookiesInit.in" },
|
|
36
|
+
"then": [{ "waitForThenClick": "#RodoCookiesInit [data-type=\"disable-cookies-button\"]" }],
|
|
37
|
+
"else": [{ "waitForThenClick": "#RodoCookiesInfo [data-type=\"disable-cookies-button\"]" }]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{ "waitForVisible": "#RodoCookiesInfoFirst.in, #RodoCookiesInit.in, #RodoCookiesInfo.in", "check": "none" }
|
|
42
|
+
],
|
|
43
|
+
"test": [{ "cookieContains": "AtomStore[MARKETING_COOKIES_ACCEPTED]=0" }]
|
|
44
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "b1ng-cc",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(www\\.)?(giorni-festivi\\.it|feiertag\\.co|dia-festivo\\.es)/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#b1ng-cc"],
|
|
7
|
+
"detectCmp": [{ "exists": "#b1ng-cc .b1ng-cc-no" }],
|
|
8
|
+
"detectPopup": [{ "visible": "#b1ng-cc .b1ng-cc-no" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": "#b1ng-cc .b1ng-cc-yes" }],
|
|
10
|
+
"optOut": [
|
|
11
|
+
{ "waitForThenClick": "#b1ng-cc .b1ng-cc-no" },
|
|
12
|
+
{ "waitFor": ".fc-cta-do-not-consent,.fc-cta-manage-options,.fc-li-only-placeholder", "timeout": 5000, "optional": true },
|
|
13
|
+
{
|
|
14
|
+
"if": { "exists": ".fc-cta-do-not-consent,.fc-cta-manage-options,.fc-li-only-placeholder" },
|
|
15
|
+
"then": [
|
|
16
|
+
{ "click": ".fc-cta-do-not-consent,.fc-cta-manage-options", "optional": true },
|
|
17
|
+
{ "click": ".fc-preference-consent:checked,.fc-preference-legitimate-interest:checked", "all": true, "optional": true },
|
|
18
|
+
{ "click": ".fc-confirm-choices", "optional": true }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"test": [{ "cookieContains": "b1ng_consent=n" }]
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bgk.pl",
|
|
3
|
+
"vendorUrl": "https://www.bgk.pl/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?bgk\\.pl/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": [".cc-window[aria-describedby=\"cookieheading\"]"],
|
|
8
|
+
"detectCmp": [{ "exists": ".cc-window .dp--cookie-check" }],
|
|
9
|
+
"detectPopup": [{ "visible": ".cc-window:not(.cc-invisible) .cc-compliance" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": ".cc-window .cc-dismiss" }],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{ "waitForThenClick": ".cc-window .cc-settings", "retry": 3 },
|
|
13
|
+
{ "waitForVisible": ".cc-window .dp--cookie-check" },
|
|
14
|
+
{ "click": ".cc-window .dp--check-box:checked:not(:disabled)", "all": true, "optional": true },
|
|
15
|
+
{ "waitForThenClick": ".cc-window .cc-allow" }
|
|
16
|
+
],
|
|
17
|
+
"test": [{ "cookieContains": "\"dp--cookie-marketing\":false" }]
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "blogger-cookie-notice",
|
|
3
|
+
"vendorUrl": "https://www.blogger.com/go/blogspot-cookies",
|
|
4
|
+
"prehideSelectors": ["#cookieChoiceInfo.cookie-choices-info"],
|
|
5
|
+
"detectCmp": [{ "exists": "#cookieChoiceInfo.cookie-choices-info #cookieChoiceDismiss" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#cookieChoiceInfo.cookie-choices-info" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "#cookieChoiceInfo #cookieChoiceDismiss" }],
|
|
8
|
+
"optOut": [{ "waitForThenClick": "#cookieChoiceInfo #cookieChoiceDismiss" }],
|
|
9
|
+
"test": [{ "cookieContains": "displayCookieNotice=y" }]
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "brainshare",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://([\\w-]+\\.)?brainshare\\.pl/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["div.cookiePolicy"],
|
|
7
|
+
"detectCmp": [{ "exists": "div.cookiePolicy > span[href='#']" }],
|
|
8
|
+
"detectPopup": [{ "visible": "div.cookiePolicy" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": "div.cookiePolicy > span[href='#']" }],
|
|
10
|
+
"optOut": [{ "waitForThenClick": "div.cookiePolicy > span[href='#']" }],
|
|
11
|
+
"test": [{ "cookieContains": "cookiePol=1" }]
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "brandsforstudents.ch",
|
|
3
|
+
"runContext": { "urlPattern": "^https?://(www\\.)?brandsfor(students|employees)\\.ch/" },
|
|
4
|
+
"prehideSelectors": [".cookiebanner-container"],
|
|
5
|
+
"detectCmp": [{ "exists": ".cookiebanner-container [data-test=adjust-cookies]" }],
|
|
6
|
+
"detectPopup": [{ "visible": ".cookiebanner-container" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": ".cookiebanner-container .buttons-container button:not([data-test=adjust-cookies])" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{ "waitForThenClick": ".cookiebanner-container [data-test=adjust-cookies]" },
|
|
10
|
+
{ "waitFor": ".cookiebanner-container .checkbox-container" },
|
|
11
|
+
{
|
|
12
|
+
"click": ".cookiebanner-container .checkbox-container input[type=checkbox]:checked:not(:disabled)",
|
|
13
|
+
"all": true,
|
|
14
|
+
"optional": true
|
|
15
|
+
},
|
|
16
|
+
{ "waitForThenClick": ".cookiebanner-container .buttons-container button:not([data-test=adjust-cookies])" }
|
|
17
|
+
],
|
|
18
|
+
"test": [{ "cookieContains": "cookies-accepted=false" }]
|
|
19
|
+
}
|