@duckduckgo/autoconsent 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "dist/autoconsent.cjs.js",
6
6
  "module": "dist/autoconsent.esm.js",
@@ -25,7 +25,6 @@
25
25
  },
26
26
  "author": "Sam Macbeth",
27
27
  "license": "MPL-2.0",
28
- "dependencies": {},
29
28
  "devDependencies": {
30
29
  "@playwright/test": "^1.17.1",
31
30
  "@rollup/plugin-typescript": "^4.0.0",
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "arzt-auskunft",
3
+ "prehideSelectors": ["#cookiescript_injected"],
4
+ "detectCmp": [{"exists": "#cookiescript_injected"}],
5
+ "detectPopup": [{"visible": "#cookiescript_injected"}],
6
+ "optOut": [{"click": "#cookiescript_reject"}],
7
+ "optIn": [{"click": "#cookiescript_accept"}]
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "corona-in-zahlen-de",
3
+ "prehideSelectors": [".cookiealert"],
4
+ "detectCmp": [{ "exists": ".cookiealert" }],
5
+ "detectPopup": [{ "visible": ".cookiealert" }],
6
+ "optOut": [{"click": ".configurecookies"}, {"click": ".confirmcookies"}],
7
+ "optIn": [{ "click": ".acceptcookies"}]
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "deepl",
3
+ "prehideSelectors": [".dl_cookieBanner_container"],
4
+ "detectCmp": [{ "exists": ".dl_cookieBanner_container" }],
5
+ "detectPopup": [{ "visible": ".dl_cookieBanner_container" }],
6
+ "optOut": [{"click": ".dl_cookieBanner--buttonSelected"}],
7
+ "optIn": [{ "click": ".dl_cookieBanner--buttonAll"}]
8
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "hl-co-uk",
3
+ "prehideSelectors": [".cookieModalContent", "#cookie-banner-overlay"],
4
+ "detectCmp": [{ "exists": "#cookie-banner-overlay" }],
5
+ "detectPopup": [{ "exists": "#cookie-banner-overlay" }],
6
+ "optIn": [{ "click": "#acceptCookieButton" }],
7
+ "optOut": [
8
+ {
9
+ "click": "#manageCookie"
10
+ },
11
+ {
12
+ "hide": [".cookieSettingsModal"]
13
+ },
14
+ {
15
+ "wait": 500
16
+ },
17
+ {
18
+ "click": "#AOCookieToggle"
19
+ },
20
+ {
21
+ "eval": "document.querySelector('#AOCookieToggle').getAttribute('aria-pressed') === 'false'"
22
+ },
23
+ {
24
+ "click": "#TPCookieToggle"
25
+ },
26
+ {
27
+ "eval": "document.querySelector('#TPCookieToggle').getAttribute('aria-pressed') === 'false'"
28
+ },
29
+ {
30
+ "click": "#updateCookieButton"
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "johnlweis",
3
+ "prehideSelectors": ["div[class^=pecr-cookie-banner-]"],
4
+ "detectCmp": [{ "exists": "div[class^=pecr-cookie-banner-]" }],
5
+ "detectPopup": [{ "exists": "div[class^=pecr-cookie-banner-]" }],
6
+ "optOut": [
7
+ {"click": "button[data-test^=manage-cookies]"},
8
+ {"wait": "500"},
9
+ {"eval": "!!Array.from(document.querySelectorAll('label[data-test^=toggle]')).forEach(e => e.click())", "optional": true },
10
+ {"eval": "Array.from(document.querySelectorAll('label[data-test^=toggle]')).filter(e => e.className.match('checked') && !e.className.match('disabled')).length === 0"},
11
+ {"click": "button[data-test=save-preferences]"}
12
+ ],
13
+ "optIn": [{ "click": "button[data-test=allow-all]"}]
14
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "mediamarkt-de",
3
+ "prehideSelectors": [
4
+ "div[aria-labelledby^=pwa-consent-layer-title]",
5
+ "div[class^=StyledConsentLayerWrapper"
6
+ ],
7
+ "detectCmp": [{"exists": "div[aria-labelledby^=pwa-consent-layer-title]"}],
8
+ "detectPopup": [{"exists": "div[aria-labelledby^=pwa-consent-layer-title]"}],
9
+ "optOut": [{"click": "button[data-test^=pwa-consent-layer-deny-all]"}],
10
+ "optIn": [{"click": "'button[data-test^=pwa-consent-layer-accept-all'"}]
11
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "metoffice-gov-uk",
3
+ "prehideSelectors": ["#ccc-module"],
4
+ "detectCmp": [{"exists": "#ccc-module"}],
5
+ "detectPopup": [{"exists": "#ccc-module"}],
6
+ "optOut": [{"click": "#ccc-reject-settings"}],
7
+ "optIn": [{"click": "#ccc-recommended-settings"}]
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "microsoft",
3
+ "prehideSelectors": ["#wcpConsentBannerCtrl"],
4
+ "detectCmp": [{ "exists": "#wcpConsentBannerCtrl" }],
5
+ "detectPopup": [{ "exists": "#wcpConsentBannerCtrl" }],
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()" }],
8
+ "test": [{ "eval": "!!document.cookie.match('MSCC')"}]
9
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "moneysavingexpert",
3
+ "detectCmp": [{ "exists": "dialog[data-testid=accept-our-cookies-dialog]" }],
4
+ "detectPopup": [{ "visible": "dialog[data-testid=accept-our-cookies-dialog]" }],
5
+ "optIn": [{ "click": "#banner-accept" }],
6
+ "optOut": [
7
+ {
8
+ "click": "#banner-manage"
9
+ },
10
+ {
11
+ "click": "#pc-confirm"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "national-lottery-co-uk",
3
+ "prehideSelectors": [".cuk_cookie_consent"],
4
+ "detectCmp": [{"exists": ".cuk_cookie_consent"}],
5
+ "detectPopup": [{"visible": ".cuk_cookie_consent"}],
6
+ "optOut": [
7
+ {"click": ".cuk_cookie_consent_manage_pref"},
8
+ {"click": ".cuk_cookie_consent_save_pref"},
9
+ {"click": ".cuk_cookie_consent_close"}
10
+ ],
11
+ "optIn": [{"click": ".cuk_cookie_consent_accept_all"}]
12
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "nhs",
3
+ "prehideSelectors": ["#nhsuk-cookie-banner"],
4
+ "detectCmp": [{ "exists": "#nhsuk-cookie-banner" }],
5
+ "detectPopup": [{ "exists": "#nhsuk-cookie-banner" }],
6
+ "optOut": [{ "click": "#nhsuk-cookie-banner__link_accept"}],
7
+ "optIn": [{ "click": "#nhsuk-cookie-banner__link_accept_analytics"}]
8
+ }
@@ -2,8 +2,8 @@
2
2
  "name": "Onetrust",
3
3
  "prehideSelectors": ["#onetrust-banner-sdk,#onetrust-consent-sdk,.optanon-alert-box-wrapper,.onetrust-pc-dark-filter,.js-consent-banner"],
4
4
  "isHidingRule": true,
5
- "detectCmp": [{ "exists": "#onetrust-banner-sdk,.optanon-alert-box-wrapper" }],
6
- "detectPopup": [{ "visible": "#onetrust-banner-sdk,.optanon-alert-box-wrapper" }],
5
+ "detectCmp": [{ "exists": "#onetrust-banner-sdk,.optanon-alert-box-wrapper,#onetrust-pc-sdk" }],
6
+ "detectPopup": [{ "visible": "#onetrust-banner-sdk,.optanon-alert-box-wrapper,#onetrust-pc-sdk" }],
7
7
  "optOut": [
8
8
  { "click": "#onetrust-pc-btn-handler,.ot-sdk-show-settings,button.js-cookie-settings" },
9
9
  { "waitFor": "#onetrust-consent-sdk", "timeout": 2000 },
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "snigel",
3
+ "detectCmp": [{ "exists": ".snigel-cmp-framework" }],
4
+ "detectPopup": [{ "visible": ".snigel-cmp-framework" }],
5
+ "optOut": [{ "click": "#sn-b-custom" }, {"click": "#sn-b-save"}],
6
+ "test": [{ "eval": "!!document.cookie.match('snconsent')"}]
7
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "steampowered",
3
+ "detectCmp": [{ "exists": ".cookiepreferences_popup" }],
4
+ "detectPopup": [{ "visible": ".cookiepreferences_popup" }],
5
+ "optOut": [{ "click": "#rejectAllButton" }],
6
+ "optIn": [{ "click": "#acceptAllButton" }],
7
+ "test": [{ "eval": "!!document.cookie.match('cookieSettings')"}]
8
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "thefreedictionary",
3
+ "prehideSelectors": ["#cmpBanner"],
4
+ "detectCmp": [{ "exists": "#cmpBanner" }],
5
+ "detectPopup": [{ "visible": "#cmpBanner" }],
6
+ "optIn": [{ "eval": "cmpUi.allowAll()" }],
7
+ "optOut": [
8
+ {
9
+ "eval": "cmpUi.showPurposes() || cmpUi.rejectAll() || true"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "xing",
3
+ "detectCmp": [{ "exists": "div[class^=cookie-consent-CookieConsent]" }],
4
+ "detectPopup": [{ "exists": "div[class^=cookie-consent-CookieConsent]" }],
5
+ "optIn": [{ "click": "#consent-accept-button" }],
6
+ "optOut": [
7
+ {
8
+ "click": "#consent-settings-button"
9
+ },
10
+ {
11
+ "click": ".consent-banner-button-accept-overlay"
12
+ }
13
+ ],
14
+ "test": [{"eval": "document.cookie.includes('userConsent=%7B%22marketing%22%3Afalse'"}]
15
+ }
package/rules/rules.json CHANGED
@@ -1,5 +1,31 @@
1
1
  {
2
2
  "autoconsent": [
3
+ {
4
+ "name": "arzt-auskunft",
5
+ "prehideSelectors": [
6
+ "#cookiescript_injected"
7
+ ],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cookiescript_injected"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookiescript_injected"
16
+ }
17
+ ],
18
+ "optOut": [
19
+ {
20
+ "click": "#cookiescript_reject"
21
+ }
22
+ ],
23
+ "optIn": [
24
+ {
25
+ "click": "#cookiescript_accept"
26
+ }
27
+ ]
28
+ },
3
29
  {
4
30
  "name": "asus",
5
31
  "detectCmp": [
@@ -151,6 +177,61 @@
151
177
  }
152
178
  ]
153
179
  },
180
+ {
181
+ "name": "corona-in-zahlen-de",
182
+ "prehideSelectors": [
183
+ ".cookiealert"
184
+ ],
185
+ "detectCmp": [
186
+ {
187
+ "exists": ".cookiealert"
188
+ }
189
+ ],
190
+ "detectPopup": [
191
+ {
192
+ "visible": ".cookiealert"
193
+ }
194
+ ],
195
+ "optOut": [
196
+ {
197
+ "click": ".configurecookies"
198
+ },
199
+ {
200
+ "click": ".confirmcookies"
201
+ }
202
+ ],
203
+ "optIn": [
204
+ {
205
+ "click": ".acceptcookies"
206
+ }
207
+ ]
208
+ },
209
+ {
210
+ "name": "deepl",
211
+ "prehideSelectors": [
212
+ ".dl_cookieBanner_container"
213
+ ],
214
+ "detectCmp": [
215
+ {
216
+ "exists": ".dl_cookieBanner_container"
217
+ }
218
+ ],
219
+ "detectPopup": [
220
+ {
221
+ "visible": ".dl_cookieBanner_container"
222
+ }
223
+ ],
224
+ "optOut": [
225
+ {
226
+ "click": ".dl_cookieBanner--buttonSelected"
227
+ }
228
+ ],
229
+ "optIn": [
230
+ {
231
+ "click": ".dl_cookieBanner--buttonAll"
232
+ }
233
+ ]
234
+ },
154
235
  {
155
236
  "name": "Drupal",
156
237
  "detectCmp": [
@@ -245,6 +326,56 @@
245
326
  }
246
327
  ]
247
328
  },
329
+ {
330
+ "name": "hl-co-uk",
331
+ "prehideSelectors": [
332
+ ".cookieModalContent",
333
+ "#cookie-banner-overlay"
334
+ ],
335
+ "detectCmp": [
336
+ {
337
+ "exists": "#cookie-banner-overlay"
338
+ }
339
+ ],
340
+ "detectPopup": [
341
+ {
342
+ "exists": "#cookie-banner-overlay"
343
+ }
344
+ ],
345
+ "optIn": [
346
+ {
347
+ "click": "#acceptCookieButton"
348
+ }
349
+ ],
350
+ "optOut": [
351
+ {
352
+ "click": "#manageCookie"
353
+ },
354
+ {
355
+ "hide": [
356
+ ".cookieSettingsModal"
357
+ ]
358
+ },
359
+ {
360
+ "wait": 500
361
+ },
362
+ {
363
+ "click": "#AOCookieToggle"
364
+ },
365
+ {
366
+ "eval": "document.querySelector('#AOCookieToggle').getAttribute('aria-pressed') === 'false'"
367
+ },
368
+ {
369
+ "click": "#TPCookieToggle"
370
+ },
371
+ {
372
+ "eval": "document.querySelector('#TPCookieToggle').getAttribute('aria-pressed') === 'false'"
373
+ },
374
+ {
375
+ "click": "#updateCookieButton"
376
+ }
377
+ ]
378
+ },
248
379
  {
249
380
  "name": "hubspot",
250
381
  "detectCmp": [
@@ -268,6 +399,45 @@
268
399
  }
269
400
  ]
270
401
  },
402
+ {
403
+ "name": "johnlweis",
404
+ "prehideSelectors": [
405
+ "div[class^=pecr-cookie-banner-]"
406
+ ],
407
+ "detectCmp": [
408
+ {
409
+ "exists": "div[class^=pecr-cookie-banner-]"
410
+ }
411
+ ],
412
+ "detectPopup": [
413
+ {
414
+ "exists": "div[class^=pecr-cookie-banner-]"
415
+ }
416
+ ],
417
+ "optOut": [
418
+ {
419
+ "click": "button[data-test^=manage-cookies]"
420
+ },
421
+ {
422
+ "wait": "500"
423
+ },
424
+ {
425
+ "eval": "!!Array.from(document.querySelectorAll('label[data-test^=toggle]')).forEach(e => e.click())",
426
+ "optional": true
427
+ },
428
+ {
429
+ "eval": "Array.from(document.querySelectorAll('label[data-test^=toggle]')).filter(e => e.className.match('checked') && !e.className.match('disabled')).length === 0"
430
+ },
431
+ {
432
+ "click": "button[data-test=save-preferences]"
433
+ }
434
+ ],
435
+ "optIn": [
436
+ {
437
+ "click": "button[data-test=allow-all]"
438
+ }
439
+ ]
440
+ },
271
441
  {
272
442
  "name": "klaro",
273
443
  "detectCmp": [
@@ -296,6 +466,174 @@
296
466
  }
297
467
  ]
298
468
  },
469
+ {
470
+ "name": "mediamarkt-de",
471
+ "prehideSelectors": [
472
+ "div[aria-labelledby^=pwa-consent-layer-title]",
473
+ "div[class^=StyledConsentLayerWrapper"
474
+ ],
475
+ "detectCmp": [
476
+ {
477
+ "exists": "div[aria-labelledby^=pwa-consent-layer-title]"
478
+ }
479
+ ],
480
+ "detectPopup": [
481
+ {
482
+ "exists": "div[aria-labelledby^=pwa-consent-layer-title]"
483
+ }
484
+ ],
485
+ "optOut": [
486
+ {
487
+ "click": "button[data-test^=pwa-consent-layer-deny-all]"
488
+ }
489
+ ],
490
+ "optIn": [
491
+ {
492
+ "click": "'button[data-test^=pwa-consent-layer-accept-all'"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "name": "metoffice-gov-uk",
498
+ "prehideSelectors": [
499
+ "#ccc-module"
500
+ ],
501
+ "detectCmp": [
502
+ {
503
+ "exists": "#ccc-module"
504
+ }
505
+ ],
506
+ "detectPopup": [
507
+ {
508
+ "exists": "#ccc-module"
509
+ }
510
+ ],
511
+ "optOut": [
512
+ {
513
+ "click": "#ccc-reject-settings"
514
+ }
515
+ ],
516
+ "optIn": [
517
+ {
518
+ "click": "#ccc-recommended-settings"
519
+ }
520
+ ]
521
+ },
522
+ {
523
+ "name": "microsoft",
524
+ "prehideSelectors": [
525
+ "#wcpConsentBannerCtrl"
526
+ ],
527
+ "detectCmp": [
528
+ {
529
+ "exists": "#wcpConsentBannerCtrl"
530
+ }
531
+ ],
532
+ "detectPopup": [
533
+ {
534
+ "exists": "#wcpConsentBannerCtrl"
535
+ }
536
+ ],
537
+ "optOut": [
538
+ {
539
+ "eval": "Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Reject|Ablehnen'))[0].click() || true"
540
+ }
541
+ ],
542
+ "optIn": [
543
+ {
544
+ "eval": "Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Accept|Annehmen'))[0].click()"
545
+ }
546
+ ],
547
+ "test": [
548
+ {
549
+ "eval": "!!document.cookie.match('MSCC')"
550
+ }
551
+ ]
552
+ },
553
+ {
554
+ "name": "moneysavingexpert",
555
+ "detectCmp": [
556
+ {
557
+ "exists": "dialog[data-testid=accept-our-cookies-dialog]"
558
+ }
559
+ ],
560
+ "detectPopup": [
561
+ {
562
+ "visible": "dialog[data-testid=accept-our-cookies-dialog]"
563
+ }
564
+ ],
565
+ "optIn": [
566
+ {
567
+ "click": "#banner-accept"
568
+ }
569
+ ],
570
+ "optOut": [
571
+ {
572
+ "click": "#banner-manage"
573
+ },
574
+ {
575
+ "click": "#pc-confirm"
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ "name": "national-lottery-co-uk",
581
+ "prehideSelectors": [
582
+ ".cuk_cookie_consent"
583
+ ],
584
+ "detectCmp": [
585
+ {
586
+ "exists": ".cuk_cookie_consent"
587
+ }
588
+ ],
589
+ "detectPopup": [
590
+ {
591
+ "visible": ".cuk_cookie_consent"
592
+ }
593
+ ],
594
+ "optOut": [
595
+ {
596
+ "click": ".cuk_cookie_consent_manage_pref"
597
+ },
598
+ {
599
+ "click": ".cuk_cookie_consent_save_pref"
600
+ },
601
+ {
602
+ "click": ".cuk_cookie_consent_close"
603
+ }
604
+ ],
605
+ "optIn": [
606
+ {
607
+ "click": ".cuk_cookie_consent_accept_all"
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ "name": "nhs",
613
+ "prehideSelectors": [
614
+ "#nhsuk-cookie-banner"
615
+ ],
616
+ "detectCmp": [
617
+ {
618
+ "exists": "#nhsuk-cookie-banner"
619
+ }
620
+ ],
621
+ "detectPopup": [
622
+ {
623
+ "exists": "#nhsuk-cookie-banner"
624
+ }
625
+ ],
626
+ "optOut": [
627
+ {
628
+ "click": "#nhsuk-cookie-banner__link_accept"
629
+ }
630
+ ],
631
+ "optIn": [
632
+ {
633
+ "click": "#nhsuk-cookie-banner__link_accept_analytics"
634
+ }
635
+ ]
636
+ },
299
637
  {
300
638
  "name": "notice-cookie",
301
639
  "prehideSelectors": [
@@ -333,12 +671,12 @@
333
671
  "isHidingRule": true,
334
672
  "detectCmp": [
335
673
  {
336
- "exists": "#onetrust-banner-sdk,.optanon-alert-box-wrapper"
674
+ "exists": "#onetrust-banner-sdk,.optanon-alert-box-wrapper,#onetrust-pc-sdk"
337
675
  }
338
676
  ],
339
677
  "detectPopup": [
340
678
  {
341
- "visible": "#onetrust-banner-sdk,.optanon-alert-box-wrapper"
679
+ "visible": "#onetrust-banner-sdk,.optanon-alert-box-wrapper,#onetrust-pc-sdk"
342
680
  }
343
681
  ],
344
682
  "optOut": [
@@ -444,6 +782,60 @@
444
782
  }
445
783
  ]
446
784
  },
785
+ {
786
+ "name": "snigel",
787
+ "detectCmp": [
788
+ {
789
+ "exists": ".snigel-cmp-framework"
790
+ }
791
+ ],
792
+ "detectPopup": [
793
+ {
794
+ "visible": ".snigel-cmp-framework"
795
+ }
796
+ ],
797
+ "optOut": [
798
+ {
799
+ "click": "#sn-b-custom"
800
+ },
801
+ {
802
+ "click": "#sn-b-save"
803
+ }
804
+ ],
805
+ "test": [
806
+ {
807
+ "eval": "!!document.cookie.match('snconsent')"
808
+ }
809
+ ]
810
+ },
811
+ {
812
+ "name": "steampowered",
813
+ "detectCmp": [
814
+ {
815
+ "exists": ".cookiepreferences_popup"
816
+ }
817
+ ],
818
+ "detectPopup": [
819
+ {
820
+ "visible": ".cookiepreferences_popup"
821
+ }
822
+ ],
823
+ "optOut": [
824
+ {
825
+ "click": "#rejectAllButton"
826
+ }
827
+ ],
828
+ "optIn": [
829
+ {
830
+ "click": "#acceptAllButton"
831
+ }
832
+ ],
833
+ "test": [
834
+ {
835
+ "eval": "!!document.cookie.match('cookieSettings')"
836
+ }
837
+ ]
838
+ },
447
839
  {
448
840
  "name": "Tealium",
449
841
  "prehideSelectors": [
@@ -524,6 +916,63 @@
524
916
  "eval": "window.results.results[0] === 'button_clicked'"
525
917
  }
526
918
  ]
919
+ },
920
+ {
921
+ "name": "thefreedictionary",
922
+ "prehideSelectors": [
923
+ "#cmpBanner"
924
+ ],
925
+ "detectCmp": [
926
+ {
927
+ "exists": "#cmpBanner"
928
+ }
929
+ ],
930
+ "detectPopup": [
931
+ {
932
+ "visible": "#cmpBanner"
933
+ }
934
+ ],
935
+ "optIn": [
936
+ {
937
+ "eval": "cmpUi.allowAll()"
938
+ }
939
+ ],
940
+ "optOut": [
941
+ {
942
+ "eval": "cmpUi.showPurposes() || cmpUi.rejectAll() || true"
943
+ }
944
+ ]
945
+ },
946
+ {
947
+ "name": "xing",
948
+ "detectCmp": [
949
+ {
950
+ "exists": "div[class^=cookie-consent-CookieConsent]"
951
+ }
952
+ ],
953
+ "detectPopup": [
954
+ {
955
+ "exists": "div[class^=cookie-consent-CookieConsent]"
956
+ }
957
+ ],
958
+ "optIn": [
959
+ {
960
+ "click": "#consent-accept-button"
961
+ }
962
+ ],
963
+ "optOut": [
964
+ {
965
+ "click": "#consent-settings-button"
966
+ },
967
+ {
968
+ "click": ".consent-banner-button-accept-overlay"
969
+ }
970
+ ],
971
+ "test": [
972
+ {
973
+ "eval": "document.cookie.includes('userConsent=%7B%22marketing%22%3Afalse'"
974
+ }
975
+ ]
527
976
  }
528
977
  ],
529
978
  "consentomatic": {