@duckduckgo/autoconsent 1.0.8 → 2.1.1
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/.eslintrc.cjs +14 -0
- package/.vscode/.idea/.vscode.iml +9 -0
- package/.vscode/.idea/modules.xml +8 -0
- package/.vscode/.idea/workspace.xml +28 -0
- package/.vscode/settings.json +7 -0
- package/Jenkinsfile +68 -39
- package/api.md +104 -0
- package/dist/addon-firefox/background.bundle.js +1 -0
- package/dist/addon-firefox/content.bundle.js +1 -0
- package/dist/addon-firefox/icons/cog.png +0 -0
- package/dist/addon-firefox/icons/cookie-idle.png +0 -0
- package/dist/addon-firefox/icons/cookie.png +0 -0
- package/dist/addon-firefox/icons/party.png +0 -0
- package/dist/addon-firefox/icons/tick.png +0 -0
- package/dist/addon-firefox/icons/verified.png +0 -0
- package/dist/addon-firefox/manifest.json +32 -0
- package/dist/addon-firefox/rules.json +4167 -0
- package/dist/addon-mv3/background.bundle.js +1 -0
- package/dist/addon-mv3/content.bundle.js +1 -0
- package/dist/addon-mv3/icons/cog.png +0 -0
- package/dist/addon-mv3/icons/cookie-idle.png +0 -0
- package/dist/addon-mv3/icons/cookie.png +0 -0
- package/dist/addon-mv3/icons/party.png +0 -0
- package/dist/addon-mv3/icons/tick.png +0 -0
- package/dist/addon-mv3/icons/verified.png +0 -0
- package/dist/addon-mv3/manifest.json +34 -0
- package/dist/addon-mv3/rules.json +4167 -0
- package/dist/autoconsent.cjs.js +1 -1387
- package/dist/autoconsent.esm.js +1 -1379
- package/dist/autoconsent.playwright.js +1 -0
- package/lib/cmps/all.ts +15 -10
- package/lib/cmps/base.ts +95 -90
- package/lib/cmps/consentmanager.ts +31 -19
- package/lib/cmps/consentomatic.ts +89 -0
- package/lib/cmps/cookiebot.ts +58 -55
- package/lib/cmps/evidon.ts +29 -18
- package/lib/cmps/onetrust.ts +32 -20
- package/lib/cmps/sourcepoint-frame.ts +104 -0
- package/lib/cmps/sourcepoint-top.ts +47 -0
- package/lib/cmps/trustarc-frame.ts +115 -0
- package/lib/cmps/trustarc-top.ts +97 -0
- package/lib/consentomatic/index.ts +233 -70
- package/lib/{web/consentomatic → consentomatic}/tools.ts +0 -0
- package/lib/eval-handler.ts +58 -0
- package/lib/index.ts +0 -2
- package/lib/messages.ts +100 -0
- package/lib/rule-executors.ts +108 -0
- package/lib/rules.ts +82 -0
- package/lib/types.ts +35 -0
- package/lib/utils.ts +64 -0
- package/lib/web.ts +288 -74
- package/package.json +20 -16
- package/playwright/content.ts +21 -0
- package/playwright/runner.ts +162 -0
- package/playwright.config.ts +7 -0
- package/readme.md +61 -47
- package/rollup.config.js +38 -16
- package/rules/autoconsent/ausopen.json +2 -1
- package/rules/autoconsent/baden-wuerttemberg-de.json +7 -3
- package/rules/autoconsent/bundesregierung-de.json +5 -1
- package/rules/autoconsent/cc-banner.json +0 -1
- package/rules/autoconsent/cookie-law-info.json +1 -1
- package/rules/autoconsent/cookie-notice.json +1 -2
- package/rules/autoconsent/cookieconsent.json +5 -6
- package/rules/autoconsent/destatis-de.json +2 -2
- package/rules/autoconsent/dunelm.json +1 -1
- package/rules/autoconsent/etsy.json +4 -3
- package/rules/autoconsent/eu-cookie-compliance.json +0 -1
- package/rules/autoconsent/hl-co-uk.json +8 -9
- package/rules/autoconsent/johnlewis.json +5 -2
- package/rules/autoconsent/marksandspencer.json +2 -1
- package/rules/autoconsent/mediamarkt-de.json +1 -1
- package/rules/autoconsent/microsoft.json +1 -1
- package/rules/autoconsent/notice-cookie.json +0 -1
- package/rules/autoconsent/osano.json +4 -2
- package/rules/autoconsent/snigel.json +2 -1
- package/rules/autoconsent/tealium.json +4 -5
- package/rules/autoconsent/thefreedictionary.json +1 -1
- package/rules/rules.json +79 -45
- package/tests/192.spec.ts +1 -1
- package/tests/arzt-auskunft.spec.ts +1 -1
- package/tests/asus.spec.ts +1 -1
- package/tests/ausopen.spec.ts +1 -1
- package/tests/aws.amazon.spec.ts +1 -1
- package/tests/baden-wuerttemberg.spec.ts +1 -1
- package/tests/borlabs.spec.ts +1 -1
- package/tests/bundesregierung.spec.ts +5 -2
- package/tests/ccbanner.spec.ts +1 -1
- package/tests/consentmanager.spec.ts +3 -3
- package/tests/cookiebot.spec.ts +8 -2
- package/tests/cookieconsent.spec.ts +1 -1
- package/tests/cookielawinfo.spec.ts +1 -1
- package/tests/cookienotice.spec.ts +1 -1
- package/tests/corona-in-zahlen.spec.ts +1 -1
- package/tests/deepl.spec.ts +1 -1
- package/tests/destatis.spec.ts +1 -1
- package/tests/didomi.spec.ts +7 -3
- package/tests/drupal.spec.ts +8 -0
- package/tests/dunelm.spec.ts +1 -1
- package/tests/etsy.spec.ts +1 -1
- package/tests/eu-cookie-compliance-banner.spec.ts +1 -1
- package/tests/evidon.spec.ts +7 -2
- package/tests/fundingchoices.spec.ts +2 -1
- package/tests/gov-uk.spec.ts +1 -1
- package/tests/hl-co-uk.spec.ts +1 -1
- package/tests/hubspot.spec.ts +1 -1
- package/tests/ionos.spec.ts +1 -1
- package/tests/johnlewis.spec.ts +2 -2
- package/tests/klaro.spec.ts +1 -1
- package/tests/marksandspencer.spec.ts +1 -1
- package/tests/mediamarkt.spec.ts +1 -1
- package/tests/metoffice-gov-uk.spec.ts +1 -1
- package/tests/microsoft.spec.ts +1 -1
- package/tests/moneysavingexpert.spec.ts +1 -1
- package/tests/motor-talk.spec.ts +1 -1
- package/tests/national-lottery.spec.ts +1 -1
- package/tests/netflix.spec.ts +1 -1
- package/tests/nhs.spec.ts +1 -1
- package/tests/notice-cookie.spec.ts +1 -1
- package/tests/obi.spec.ts +1 -1
- package/tests/oil.spec.ts +2 -2
- package/tests/onetrust.spec.ts +27 -2
- package/tests/osano.spec.ts +1 -1
- package/tests/otto.spec.ts +1 -1
- package/tests/paypal.spec.ts +1 -1
- package/tests/quantcast.spec.ts +5 -2
- package/tests/snigel.spec.ts +1 -1
- package/tests/sourcepoint.spec.ts +8 -8
- package/tests/springer.spec.ts +2 -2
- package/tests/steampowered.spec.ts +1 -1
- package/tests/tealium.spec.ts +1 -1
- package/tests/testcmp.spec.ts +1 -1
- package/tests/thalia.spec.ts +1 -1
- package/tests/thefreedictionary.spec.ts +1 -1
- package/tests/trustarc.spec.ts +26 -4
- package/tests/usercentrics-1.spec.ts +1 -1
- package/tests/uswitch.spec.ts +1 -1
- package/tests/vodafone.spec.ts +1 -1
- package/tests/waitrose.spec.ts +1 -1
- package/tests/wetransfer.spec.ts +1 -1
- package/tests/wordpressgdpr.spec.ts +2 -2
- package/tests/xing.spec.ts +1 -1
- package/tsconfig.json +2 -2
- package/update_version.js +10 -6
- package/.eslintrc +0 -12
- package/cosmetics/rules.json +0 -110
- package/dist/autoconsent.puppet.js +0 -1078
- package/lib/cmps/all.js +0 -19
- package/lib/cmps/base.js +0 -174
- package/lib/cmps/consentmanager.js +0 -31
- package/lib/cmps/cookiebot.js +0 -77
- package/lib/cmps/evidon.js +0 -26
- package/lib/cmps/onetrust.js +0 -34
- package/lib/cmps/sourcepoint.js +0 -82
- package/lib/cmps/sourcepoint.ts +0 -95
- package/lib/cmps/trustarc.js +0 -106
- package/lib/cmps/trustarc.ts +0 -147
- package/lib/config.js +0 -1
- package/lib/consentomatic/index.js +0 -52
- package/lib/detector.js +0 -33
- package/lib/detector.ts +0 -34
- package/lib/hider.js +0 -13
- package/lib/hider.ts +0 -16
- package/lib/index.js +0 -4
- package/lib/messages.d.ts +0 -61
- package/lib/node.js +0 -35
- package/lib/node.ts +0 -43
- package/lib/puppet/tab.js +0 -121
- package/lib/puppet/tab.ts +0 -146
- package/lib/rules.d.ts +0 -80
- package/lib/tabwrapper.js +0 -67
- package/lib/tabwrapper.ts +0 -74
- package/lib/types.d.ts +0 -61
- package/lib/web/consentomatic/index.ts +0 -249
- package/lib/web/content-utils.js +0 -29
- package/lib/web/content-utils.ts +0 -31
- package/lib/web/content.js +0 -89
- package/lib/web/content.ts +0 -80
- package/lib/web/tab.js +0 -112
- package/lib/web/tab.ts +0 -178
- package/lib/web.js +0 -95
- package/tests/runner.ts +0 -61
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
"detectCmp": [{"exists": "div[aria-labelledby^=pwa-consent-layer-title]"}],
|
|
8
8
|
"detectPopup": [{"exists": "div[aria-labelledby^=pwa-consent-layer-title]"}],
|
|
9
9
|
"optOut": [{"click": "button[data-test^=pwa-consent-layer-deny-all]"}],
|
|
10
|
-
"optIn": [{"click": "
|
|
10
|
+
"optIn": [{"click": "button[data-test^=pwa-consent-layer-accept-all"}]
|
|
11
11
|
}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
"detectCmp": [{ "exists": "#wcpConsentBannerCtrl" }],
|
|
5
5
|
"detectPopup": [{ "exists": "#wcpConsentBannerCtrl" }],
|
|
6
6
|
"optOut": [{ "eval": "Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Reject|Ablehnen'))[0].click() || true" }],
|
|
7
|
-
"optIn": [{ "eval": "Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Accept|Annehmen'))[0].click()" }],
|
|
7
|
+
"optIn": [{ "eval": "Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Accept|Annehmen'))[0].click() || true" }],
|
|
8
8
|
"test": [{ "eval": "!!document.cookie.match('MSCC')"}]
|
|
9
9
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "osano",
|
|
3
3
|
"prehideSelectors": [".osano-cm-window"],
|
|
4
|
-
"isHidingRule": true,
|
|
5
4
|
"detectCmp": [{ "exists": ".osano-cm-window" }],
|
|
6
5
|
"detectPopup": [{ "visible": ".osano-cm-dialog" }],
|
|
7
|
-
"optIn": [{
|
|
6
|
+
"optIn": [{
|
|
7
|
+
"click": ".osano-cm-accept-all",
|
|
8
|
+
"optional": true
|
|
9
|
+
}],
|
|
8
10
|
"optOut": [
|
|
9
11
|
{ "hide": [".osano-cm-window"] }
|
|
10
12
|
]
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
"detectCmp": [{ "exists": ".snigel-cmp-framework" }],
|
|
4
4
|
"detectPopup": [{ "visible": ".snigel-cmp-framework" }],
|
|
5
5
|
"optOut": [{ "click": "#sn-b-custom" }, {"click": "#sn-b-save"}],
|
|
6
|
-
"test": [{ "eval": "!!document.cookie.match('snconsent')"}]
|
|
6
|
+
"test": [{ "eval": "!!document.cookie.match('snconsent')"}],
|
|
7
|
+
"optIn": [{ "click": ".snigel-cmp-framework #accept-choices" }]
|
|
7
8
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Tealium",
|
|
3
3
|
"prehideSelectors": ["#__tealiumGDPRecModal,#__tealiumGDPRcpPrefs,#consent-layer"],
|
|
4
|
-
"
|
|
5
|
-
"detectCmp": [{ "exists": "#__tealiumGDPRecModal" }, { "eval": "window.utag && typeof utag.gdpr === 'object'" }],
|
|
4
|
+
"detectCmp": [{ "visible": "#__tealiumGDPRecModal" }, { "eval": "typeof window.utag !== 'undefined' && typeof utag.gdpr === 'object'" }],
|
|
6
5
|
"detectPopup": [{ "visible": "#__tealiumGDPRecModal" }],
|
|
7
6
|
"optOut": [
|
|
8
7
|
{ "hide": ["#__tealiumGDPRecModal", "#__tealiumGDPRcpPrefs", "#consent-layer"] },
|
|
9
|
-
{ "
|
|
8
|
+
{ "waitForThenClick": "#cm-acceptNone,.js-accept-essential-cookies", "timeout": 1000 },
|
|
9
|
+
{ "eval": "utag.gdpr.setConsentValue(false) || true" }
|
|
10
10
|
],
|
|
11
11
|
"optIn": [
|
|
12
12
|
{ "hide": ["#__tealiumGDPRecModal"] },
|
|
13
|
-
{ "eval": "utag.gdpr.setConsentValue(true)" }
|
|
13
|
+
{ "eval": "utag.gdpr.setConsentValue(true) || true" }
|
|
14
14
|
],
|
|
15
15
|
"test": [
|
|
16
16
|
{ "eval": "utag.gdpr.getConsentState() !== 1" }
|
|
17
17
|
]
|
|
18
18
|
}
|
|
19
|
-
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"prehideSelectors": ["#cmpBanner"],
|
|
4
4
|
"detectCmp": [{ "exists": "#cmpBanner" }],
|
|
5
5
|
"detectPopup": [{ "visible": "#cmpBanner" }],
|
|
6
|
-
"optIn": [{ "eval": "cmpUi.allowAll()" }],
|
|
6
|
+
"optIn": [{ "eval": "cmpUi.allowAll() || true" }],
|
|
7
7
|
"optOut": [
|
|
8
8
|
{
|
|
9
9
|
"eval": "cmpUi.showPurposes() || cmpUi.rejectAll() || true"
|
package/rules/rules.json
CHANGED
|
@@ -102,6 +102,13 @@
|
|
|
102
102
|
".gdpr-popup__message"
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
|
+
],
|
|
106
|
+
"optIn": [
|
|
107
|
+
{
|
|
108
|
+
"click": [
|
|
109
|
+
".gdpr-popup__message button"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
105
112
|
]
|
|
106
113
|
},
|
|
107
114
|
{
|
|
@@ -141,7 +148,6 @@
|
|
|
141
148
|
},
|
|
142
149
|
{
|
|
143
150
|
"name": "baden-wuerttemberg.de",
|
|
144
|
-
"isHidingRule": true,
|
|
145
151
|
"prehideSelectors": [
|
|
146
152
|
".cookie-alert.t-dark"
|
|
147
153
|
],
|
|
@@ -157,10 +163,19 @@
|
|
|
157
163
|
],
|
|
158
164
|
"optIn": [
|
|
159
165
|
{
|
|
160
|
-
"click": ".cookie-
|
|
166
|
+
"click": ".cookie-alert__form input:not([disabled]):not([checked])"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"click": ".cookie-alert__button button"
|
|
161
170
|
}
|
|
162
171
|
],
|
|
163
|
-
"optOut": [
|
|
172
|
+
"optOut": [
|
|
173
|
+
{
|
|
174
|
+
"hide": [
|
|
175
|
+
".cookie-alert.t-dark"
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
]
|
|
164
179
|
},
|
|
165
180
|
{
|
|
166
181
|
"name": "bing.com",
|
|
@@ -244,7 +259,11 @@
|
|
|
244
259
|
],
|
|
245
260
|
"optOut": [
|
|
246
261
|
{
|
|
247
|
-
"
|
|
262
|
+
"wait": 500,
|
|
263
|
+
"comment": "click is not immediately recognized"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"waitForThenClick": ".bpa-close-button"
|
|
248
267
|
}
|
|
249
268
|
],
|
|
250
269
|
"test": [
|
|
@@ -258,7 +277,6 @@
|
|
|
258
277
|
"prehideSelectors": [
|
|
259
278
|
".cc_banner-wrapper"
|
|
260
279
|
],
|
|
261
|
-
"isHidingRule": true,
|
|
262
280
|
"detectCmp": [
|
|
263
281
|
{
|
|
264
282
|
"exists": ".cc_banner-wrapper"
|
|
@@ -299,7 +317,7 @@
|
|
|
299
317
|
],
|
|
300
318
|
"optIn": [
|
|
301
319
|
{
|
|
302
|
-
"click": "[data-cli_action=\"
|
|
320
|
+
"click": "[data-cli_action=\"accept_all\"]"
|
|
303
321
|
}
|
|
304
322
|
],
|
|
305
323
|
"optOut": [
|
|
@@ -323,7 +341,6 @@
|
|
|
323
341
|
"prehideSelectors": [
|
|
324
342
|
"#cookie-notice"
|
|
325
343
|
],
|
|
326
|
-
"isHidingRule": true,
|
|
327
344
|
"detectCmp": [
|
|
328
345
|
{
|
|
329
346
|
"exists": "#cookie-notice"
|
|
@@ -336,7 +353,7 @@
|
|
|
336
353
|
],
|
|
337
354
|
"optIn": [
|
|
338
355
|
{
|
|
339
|
-
"
|
|
356
|
+
"click": [
|
|
340
357
|
"#cn-accept-cookie"
|
|
341
358
|
]
|
|
342
359
|
}
|
|
@@ -352,17 +369,16 @@
|
|
|
352
369
|
{
|
|
353
370
|
"name": "cookieconsent",
|
|
354
371
|
"prehideSelectors": [
|
|
355
|
-
"[aria-label=\"cookieconsent\"]"
|
|
372
|
+
"[aria-label=\"cookieconsent\"][aria-describedby=\"cookieconsent:desc\"]"
|
|
356
373
|
],
|
|
357
|
-
"isHidingRule": true,
|
|
358
374
|
"detectCmp": [
|
|
359
375
|
{
|
|
360
|
-
"exists": "[aria-label=\"cookieconsent\"]"
|
|
376
|
+
"exists": "[aria-label=\"cookieconsent\"][aria-describedby=\"cookieconsent:desc\"]"
|
|
361
377
|
}
|
|
362
378
|
],
|
|
363
379
|
"detectPopup": [
|
|
364
380
|
{
|
|
365
|
-
"visible": "[aria-label=\"cookieconsent\"]"
|
|
381
|
+
"visible": "[aria-label=\"cookieconsent\"][aria-describedby=\"cookieconsent:desc\"]"
|
|
366
382
|
}
|
|
367
383
|
],
|
|
368
384
|
"optIn": [
|
|
@@ -373,7 +389,7 @@
|
|
|
373
389
|
"optOut": [
|
|
374
390
|
{
|
|
375
391
|
"hide": [
|
|
376
|
-
"[aria-label=\"cookieconsent\"]"
|
|
392
|
+
"[aria-label=\"cookieconsent\"][aria-describedby=\"cookieconsent:desc\"]"
|
|
377
393
|
]
|
|
378
394
|
}
|
|
379
395
|
]
|
|
@@ -438,7 +454,6 @@
|
|
|
438
454
|
"prehideSelectors": [
|
|
439
455
|
"div[aria-labelledby=cookiebannerhead]"
|
|
440
456
|
],
|
|
441
|
-
"isHidingRule": true,
|
|
442
457
|
"detectCmp": [
|
|
443
458
|
{
|
|
444
459
|
"exists": ".cookiebannerbox"
|
|
@@ -455,6 +470,13 @@
|
|
|
455
470
|
".cookiebannerbox"
|
|
456
471
|
]
|
|
457
472
|
}
|
|
473
|
+
],
|
|
474
|
+
"optIn": [
|
|
475
|
+
{
|
|
476
|
+
"click": [
|
|
477
|
+
".cookiebannerbox .close"
|
|
478
|
+
]
|
|
479
|
+
}
|
|
458
480
|
]
|
|
459
481
|
},
|
|
460
482
|
{
|
|
@@ -497,7 +519,7 @@
|
|
|
497
519
|
],
|
|
498
520
|
"optIn": [
|
|
499
521
|
{
|
|
500
|
-
"click": ""
|
|
522
|
+
"click": "[data-testid=\"cookie-consent-allow-all\"]"
|
|
501
523
|
}
|
|
502
524
|
],
|
|
503
525
|
"optOut": [
|
|
@@ -516,6 +538,10 @@
|
|
|
516
538
|
},
|
|
517
539
|
{
|
|
518
540
|
"name": "etsy",
|
|
541
|
+
"prehideSelectors": [
|
|
542
|
+
"#gdpr-single-choice-overlay",
|
|
543
|
+
"#gdpr-privacy-settings"
|
|
544
|
+
],
|
|
519
545
|
"detectCmp": [
|
|
520
546
|
{
|
|
521
547
|
"exists": "#gdpr-single-choice-overlay"
|
|
@@ -528,19 +554,17 @@
|
|
|
528
554
|
],
|
|
529
555
|
"optOut": [
|
|
530
556
|
{
|
|
531
|
-
"
|
|
532
|
-
"#gdpr-single-choice-overlay",
|
|
533
|
-
"#gdpr-privacy-settings"
|
|
534
|
-
]
|
|
557
|
+
"click": "button[data-gdpr-open-full-settings]"
|
|
535
558
|
},
|
|
536
559
|
{
|
|
537
|
-
"
|
|
560
|
+
"waitForVisible": ".gdpr-overlay-body input",
|
|
561
|
+
"timeout": 3000
|
|
538
562
|
},
|
|
539
563
|
{
|
|
540
|
-
"wait":
|
|
564
|
+
"wait": 1000
|
|
541
565
|
},
|
|
542
566
|
{
|
|
543
|
-
"eval": "document.querySelectorAll(
|
|
567
|
+
"eval": "document.querySelectorAll(\".gdpr-overlay-body input\").forEach(toggle => { toggle.checked = false; }) || true"
|
|
544
568
|
},
|
|
545
569
|
{
|
|
546
570
|
"eval": "document.querySelector('.gdpr-overlay-view button[data-wt-overlay-close]').click() || true"
|
|
@@ -554,7 +578,6 @@
|
|
|
554
578
|
},
|
|
555
579
|
{
|
|
556
580
|
"name": "eu-cookie-compliance-banner",
|
|
557
|
-
"isHidingRule": true,
|
|
558
581
|
"detectCmp": [
|
|
559
582
|
{
|
|
560
583
|
"exists": ".eu-cookie-compliance-banner-info"
|
|
@@ -680,19 +703,18 @@
|
|
|
680
703
|
]
|
|
681
704
|
},
|
|
682
705
|
{
|
|
683
|
-
"
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"click": "#AOCookieToggle"
|
|
706
|
+
"waitFor": "#AOCookieToggle"
|
|
687
707
|
},
|
|
688
708
|
{
|
|
689
|
-
"
|
|
709
|
+
"click": "#AOCookieToggle[aria-pressed=true]",
|
|
710
|
+
"optional": true
|
|
690
711
|
},
|
|
691
712
|
{
|
|
692
|
-
"
|
|
713
|
+
"waitFor": "#TPCookieToggle"
|
|
693
714
|
},
|
|
694
715
|
{
|
|
695
|
-
"
|
|
716
|
+
"click": "#TPCookieToggle[aria-pressed=true]",
|
|
717
|
+
"optional": true
|
|
696
718
|
},
|
|
697
719
|
{
|
|
698
720
|
"click": "#updateCookieButton"
|
|
@@ -775,12 +797,10 @@
|
|
|
775
797
|
"wait": "500"
|
|
776
798
|
},
|
|
777
799
|
{
|
|
778
|
-
"
|
|
800
|
+
"click": "label[data-test^=toggle][class*=checked]:not([class*=disabled])",
|
|
801
|
+
"all": true,
|
|
779
802
|
"optional": true
|
|
780
803
|
},
|
|
781
|
-
{
|
|
782
|
-
"eval": "Array.from(document.querySelectorAll('label[data-test^=toggle]')).filter(e => e.className.match('checked') && !e.className.match('disabled')).length === 0"
|
|
783
|
-
},
|
|
784
804
|
{
|
|
785
805
|
"click": "button[data-test=save-preferences]"
|
|
786
806
|
}
|
|
@@ -838,6 +858,13 @@
|
|
|
838
858
|
".navigation-cookiebbanner"
|
|
839
859
|
]
|
|
840
860
|
}
|
|
861
|
+
],
|
|
862
|
+
"optIn": [
|
|
863
|
+
{
|
|
864
|
+
"click": [
|
|
865
|
+
".navigation-cookiebbanner__submit"
|
|
866
|
+
]
|
|
867
|
+
}
|
|
841
868
|
]
|
|
842
869
|
},
|
|
843
870
|
{
|
|
@@ -863,7 +890,7 @@
|
|
|
863
890
|
],
|
|
864
891
|
"optIn": [
|
|
865
892
|
{
|
|
866
|
-
"click": "
|
|
893
|
+
"click": "button[data-test^=pwa-consent-layer-accept-all"
|
|
867
894
|
}
|
|
868
895
|
]
|
|
869
896
|
},
|
|
@@ -915,7 +942,7 @@
|
|
|
915
942
|
],
|
|
916
943
|
"optIn": [
|
|
917
944
|
{
|
|
918
|
-
"eval": "Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Accept|Annehmen'))[0].click()"
|
|
945
|
+
"eval": "Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Accept|Annehmen'))[0].click() || true"
|
|
919
946
|
}
|
|
920
947
|
],
|
|
921
948
|
"test": [
|
|
@@ -1066,7 +1093,6 @@
|
|
|
1066
1093
|
"prehideSelectors": [
|
|
1067
1094
|
".button--notice"
|
|
1068
1095
|
],
|
|
1069
|
-
"isHidingRule": true,
|
|
1070
1096
|
"detectCmp": [
|
|
1071
1097
|
{
|
|
1072
1098
|
"exists": ".notice--cookie"
|
|
@@ -1121,7 +1147,6 @@
|
|
|
1121
1147
|
"prehideSelectors": [
|
|
1122
1148
|
".osano-cm-window"
|
|
1123
1149
|
],
|
|
1124
|
-
"isHidingRule": true,
|
|
1125
1150
|
"detectCmp": [
|
|
1126
1151
|
{
|
|
1127
1152
|
"exists": ".osano-cm-window"
|
|
@@ -1134,7 +1159,8 @@
|
|
|
1134
1159
|
],
|
|
1135
1160
|
"optIn": [
|
|
1136
1161
|
{
|
|
1137
|
-
"click": ".osano-cm-accept-all"
|
|
1162
|
+
"click": ".osano-cm-accept-all",
|
|
1163
|
+
"optional": true
|
|
1138
1164
|
}
|
|
1139
1165
|
],
|
|
1140
1166
|
"optOut": [
|
|
@@ -1271,6 +1297,11 @@
|
|
|
1271
1297
|
{
|
|
1272
1298
|
"eval": "!!document.cookie.match('snconsent')"
|
|
1273
1299
|
}
|
|
1300
|
+
],
|
|
1301
|
+
"optIn": [
|
|
1302
|
+
{
|
|
1303
|
+
"click": ".snigel-cmp-framework #accept-choices"
|
|
1304
|
+
}
|
|
1274
1305
|
]
|
|
1275
1306
|
},
|
|
1276
1307
|
{
|
|
@@ -1312,13 +1343,12 @@
|
|
|
1312
1343
|
"prehideSelectors": [
|
|
1313
1344
|
"#__tealiumGDPRecModal,#__tealiumGDPRcpPrefs,#consent-layer"
|
|
1314
1345
|
],
|
|
1315
|
-
"isHidingRule": false,
|
|
1316
1346
|
"detectCmp": [
|
|
1317
1347
|
{
|
|
1318
|
-
"
|
|
1348
|
+
"visible": "#__tealiumGDPRecModal"
|
|
1319
1349
|
},
|
|
1320
1350
|
{
|
|
1321
|
-
"eval": "window.utag && typeof utag.gdpr === 'object'"
|
|
1351
|
+
"eval": "typeof window.utag !== 'undefined' && typeof utag.gdpr === 'object'"
|
|
1322
1352
|
}
|
|
1323
1353
|
],
|
|
1324
1354
|
"detectPopup": [
|
|
@@ -1335,7 +1365,11 @@
|
|
|
1335
1365
|
]
|
|
1336
1366
|
},
|
|
1337
1367
|
{
|
|
1338
|
-
"
|
|
1368
|
+
"waitForThenClick": "#cm-acceptNone,.js-accept-essential-cookies",
|
|
1369
|
+
"timeout": 1000
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"eval": "utag.gdpr.setConsentValue(false) || true"
|
|
1339
1373
|
}
|
|
1340
1374
|
],
|
|
1341
1375
|
"optIn": [
|
|
@@ -1345,7 +1379,7 @@
|
|
|
1345
1379
|
]
|
|
1346
1380
|
},
|
|
1347
1381
|
{
|
|
1348
|
-
"eval": "utag.gdpr.setConsentValue(true)"
|
|
1382
|
+
"eval": "utag.gdpr.setConsentValue(true) || true"
|
|
1349
1383
|
}
|
|
1350
1384
|
],
|
|
1351
1385
|
"test": [
|
|
@@ -1431,7 +1465,7 @@
|
|
|
1431
1465
|
],
|
|
1432
1466
|
"optIn": [
|
|
1433
1467
|
{
|
|
1434
|
-
"eval": "cmpUi.allowAll()"
|
|
1468
|
+
"eval": "cmpUi.allowAll() || true"
|
|
1435
1469
|
}
|
|
1436
1470
|
],
|
|
1437
1471
|
"optOut": [
|
package/tests/192.spec.ts
CHANGED
package/tests/asus.spec.ts
CHANGED
package/tests/ausopen.spec.ts
CHANGED
package/tests/aws.amazon.spec.ts
CHANGED
package/tests/borlabs.spec.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import generateCMPTests from "
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
3
|
generateCMPTests('bundesregierung.de', [
|
|
4
4
|
'https://bundesregierung.de'], {
|
|
5
|
-
skipRegions: [
|
|
5
|
+
skipRegions: [
|
|
6
|
+
"US", "FR", "GB",
|
|
7
|
+
"DE" // our crawler proxy hits a bot wall, but it still passes locally
|
|
8
|
+
]
|
|
6
9
|
}
|
|
7
10
|
);
|
package/tests/ccbanner.spec.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import generateCMPTests from "
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
3
|
generateCMPTests('consentmanager.net',
|
|
4
4
|
[
|
|
5
|
-
'https://sourceforge.net/',
|
|
6
|
-
'https://www.dastelefonbuch.de/',
|
|
5
|
+
// 'https://sourceforge.net/', // disabled because of a botwall
|
|
6
|
+
// 'https://www.dastelefonbuch.de/', // disabled due to Playwright bug in WebKit: https://github.com/microsoft/playwright/issues/14745
|
|
7
7
|
'https://www.history.de/',
|
|
8
8
|
]
|
|
9
9
|
, {
|
package/tests/cookiebot.spec.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import generateCMPTests from "
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
3
|
generateCMPTests('Cybotcookiebot', [
|
|
4
4
|
'https://www.wohnen.de/',
|
|
5
5
|
'https://www.zwilling.com/de/',
|
|
6
6
|
'https://forums.cpanel.net/',
|
|
7
|
-
'https://tfl.gov.uk'
|
|
7
|
+
'https://tfl.gov.uk',
|
|
8
|
+
|
|
9
|
+
// "https://www.ab-in-den-urlaub.de/", // often blocked by botwall
|
|
10
|
+
|
|
11
|
+
"https://www.centralpoint.nl/",
|
|
12
|
+
"https://www.vatera.hu/",
|
|
13
|
+
"https://www.smartsheet.com/",
|
|
8
14
|
], {
|
|
9
15
|
skipRegions: ['US']
|
|
10
16
|
});
|
package/tests/deepl.spec.ts
CHANGED
package/tests/destatis.spec.ts
CHANGED
package/tests/didomi.spec.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import generateCMPTests from "
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
3
|
generateCMPTests('com_didomi.io', [
|
|
4
|
-
'https://www.ghacks.net/'
|
|
4
|
+
'https://www.ghacks.net/',
|
|
5
|
+
"https://www.20minutes.fr/",
|
|
6
|
+
"https://www.planet.fr/",
|
|
7
|
+
"http://www.allocine.fr/",
|
|
8
|
+
"https://www.boursorama.com/",
|
|
5
9
|
], {
|
|
6
|
-
|
|
10
|
+
testOptIn: false,
|
|
7
11
|
testSelfTest: false,
|
|
8
12
|
skipRegions: ["US"],
|
|
9
13
|
});
|
package/tests/dunelm.spec.ts
CHANGED
package/tests/etsy.spec.ts
CHANGED
package/tests/evidon.spec.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import generateCMPTests from "
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
3
|
generateCMPTests('Evidon', [
|
|
4
|
-
'https://www.kia.com/us/en',
|
|
5
4
|
'https://www.fujitsu.com/global/'
|
|
6
5
|
]);
|
|
6
|
+
|
|
7
|
+
generateCMPTests('Evidon', [
|
|
8
|
+
'https://www.kia.com/us/en', // "I agree" button is actually a decline button
|
|
9
|
+
], {
|
|
10
|
+
testOptIn: false,
|
|
11
|
+
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import generateCMPTests from "
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
3
|
generateCMPTests('funding-choices', [
|
|
4
4
|
'https://www.schulferien.org/',
|
|
5
5
|
'https://www.bbc.com/',
|
|
6
6
|
'https://www.accuweather.com/',
|
|
7
7
|
'https://hbr.org/',
|
|
8
|
+
"https://www.dinarguru.com/",
|
|
8
9
|
], {
|
|
9
10
|
skipRegions: ["US", "GB"]
|
|
10
11
|
});
|