@duckduckgo/autoconsent 1.0.3 → 1.0.6

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.
Files changed (103) hide show
  1. package/dist/autoconsent.cjs.js +85 -30
  2. package/dist/autoconsent.esm.js +85 -30
  3. package/dist/autoconsent.puppet.js +99 -7
  4. package/lib/cmps/all.js +2 -0
  5. package/lib/cmps/all.ts +2 -0
  6. package/lib/cmps/base.js +5 -1
  7. package/lib/cmps/base.ts +5 -1
  8. package/lib/cmps/onetrust.js +32 -0
  9. package/lib/cmps/onetrust.ts +41 -0
  10. package/lib/config.js +1 -0
  11. package/lib/config.ts +1 -0
  12. package/lib/detector.js +4 -0
  13. package/lib/detector.ts +4 -0
  14. package/lib/hider.js +1 -1
  15. package/lib/hider.ts +1 -1
  16. package/lib/messages.d.ts +3 -0
  17. package/lib/node.js +8 -3
  18. package/lib/node.ts +10 -5
  19. package/lib/puppet/tab.js +10 -3
  20. package/lib/puppet/tab.ts +13 -3
  21. package/lib/tabwrapper.js +6 -0
  22. package/lib/tabwrapper.ts +6 -0
  23. package/lib/types.d.ts +2 -2
  24. package/lib/web/content-utils.js +29 -0
  25. package/lib/web/content-utils.ts +31 -0
  26. package/lib/web/content.js +10 -22
  27. package/lib/web/content.ts +10 -22
  28. package/lib/web/tab.js +12 -6
  29. package/lib/web/tab.ts +13 -6
  30. package/lib/web.js +5 -0
  31. package/lib/web.ts +5 -0
  32. package/package.json +2 -1
  33. package/readme.md +1 -1
  34. package/rules/autoconsent/arzt-auskunft-de.json +1 -1
  35. package/rules/autoconsent/aws-amazon.json +18 -0
  36. package/rules/autoconsent/baden-wuerttemberg-de.json +9 -0
  37. package/rules/autoconsent/borlabs.json +12 -0
  38. package/rules/autoconsent/bundesregierung-de.json +15 -0
  39. package/rules/autoconsent/corona-in-zahlen-de.json +1 -1
  40. package/rules/autoconsent/deepl.json +1 -1
  41. package/rules/autoconsent/destatis-de.json +8 -0
  42. package/rules/autoconsent/etsy.json +13 -0
  43. package/rules/autoconsent/hl-co-uk.json +1 -1
  44. package/rules/autoconsent/ionos-de.json +15 -0
  45. package/rules/autoconsent/johnlewis.json +1 -1
  46. package/rules/autoconsent/mediamarkt-de.json +3 -3
  47. package/rules/autoconsent/metoffice-gov-uk.json +1 -1
  48. package/rules/autoconsent/microsoft.json +1 -1
  49. package/rules/autoconsent/moneysavingexpert.json +1 -1
  50. package/rules/autoconsent/motor-talk-de.json +24 -0
  51. package/rules/autoconsent/national-lottery-co-uk.json +2 -3
  52. package/rules/autoconsent/netflix-de.json +7 -0
  53. package/rules/autoconsent/nhs.json +1 -1
  54. package/rules/autoconsent/obi-de.json +12 -0
  55. package/rules/autoconsent/otto-de.json +12 -0
  56. package/rules/autoconsent/paypal-de.json +12 -0
  57. package/rules/autoconsent/steampowered.json +14 -7
  58. package/rules/autoconsent/thalia-de.json +24 -0
  59. package/rules/autoconsent/thefreedictionary.json +1 -1
  60. package/rules/autoconsent/usercentrics-1.json +19 -0
  61. package/rules/autoconsent/vodafone-de.json +13 -0
  62. package/rules/autoconsent/xing.json +2 -2
  63. package/rules/rules.json +435 -49
  64. package/tests/arzt-auskunft.spec.ts +7 -0
  65. package/tests/aws.amazon.spec.ts +7 -0
  66. package/tests/baden-wuerttemberg.spec.ts +7 -0
  67. package/tests/borlabs.spec.ts +7 -0
  68. package/tests/bundesregierung.spec.ts +7 -0
  69. package/tests/consentmanager.spec.ts +2 -1
  70. package/tests/cookiebot.spec.ts +3 -3
  71. package/tests/cookieconsent.spec.ts +2 -1
  72. package/tests/cookielawinfo.spec.ts +0 -1
  73. package/tests/corona-in-zahlen.spec.ts +7 -0
  74. package/tests/deepl.spec.ts +7 -0
  75. package/tests/destatis.spec.ts +7 -0
  76. package/tests/etsy.spec.ts +7 -0
  77. package/tests/eu-cookie-compliance-banner.spec.ts +0 -1
  78. package/tests/hl-co-uk.spec.ts +7 -0
  79. package/tests/ionos.spec.ts +7 -0
  80. package/tests/johnlewis.spec.ts +7 -0
  81. package/tests/mediamarkt.spec.ts +7 -0
  82. package/tests/metoffice-gov-uk.spec.ts +7 -0
  83. package/tests/microsoft.spec.ts +9 -0
  84. package/tests/moneysavingexpert.spec.ts +7 -0
  85. package/tests/motor-talk.spec.ts +7 -0
  86. package/tests/national-lottery.spec.ts +7 -0
  87. package/tests/netflix.spec.ts +7 -0
  88. package/tests/nhs.spec.ts +7 -0
  89. package/tests/obi.spec.ts +7 -0
  90. package/tests/onetrust.spec.ts +6 -1
  91. package/tests/otto.spec.ts +7 -0
  92. package/tests/paypal.spec.ts +7 -0
  93. package/tests/runner.ts +2 -2
  94. package/tests/snigel.spec.ts +7 -0
  95. package/tests/steampowered.spec.ts +7 -0
  96. package/tests/thalia.spec.ts +7 -0
  97. package/tests/thefreedictionary.spec.ts +7 -0
  98. package/tests/usercentrics-1.spec.ts +9 -0
  99. package/tests/vodafone.spec.ts +7 -0
  100. package/tests/wordpressgdpr.spec.ts +0 -1
  101. package/tests/xing.spec.ts +8 -0
  102. package/rules/autoconsent/onetrust.json +0 -24
  103. package/tests/optanon.spec.ts +0 -10
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "vodafone.de",
3
+ "prehideSelectors": [".dip-consent,.dip-consent-container"],
4
+ "detectCmp": [{ "exists": ".dip-consent-container" }],
5
+ "detectPopup": [{ "visible": ".dip-consent-content" }],
6
+ "optOut": [
7
+ { "click": ".dip-consent-btn.white-btn" },
8
+ {
9
+ "eval": "Array.from(document.querySelectorAll('.dip-consent-btn.red-btn')).filter(e => e.innerText === 'Auswahl bestätigen')[0].click() || true"
10
+ }
11
+ ],
12
+ "optIn": [{ "click": ".dip-consent-btn.red-btn" }]
13
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "xing",
2
+ "name": "xing.com",
3
3
  "detectCmp": [{ "exists": "div[class^=cookie-consent-CookieConsent]" }],
4
4
  "detectPopup": [{ "exists": "div[class^=cookie-consent-CookieConsent]" }],
5
5
  "optIn": [{ "click": "#consent-accept-button" }],
@@ -11,5 +11,5 @@
11
11
  "click": ".consent-banner-button-accept-overlay"
12
12
  }
13
13
  ],
14
- "test": [{"eval": "document.cookie.includes('userConsent=%7B%22marketing%22%3Afalse'"}]
14
+ "test": [{"eval": "document.cookie.includes('userConsent=%7B%22marketing%22%3Afalse')"}]
15
15
  }
package/rules/rules.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "autoconsent": [
3
3
  {
4
- "name": "arzt-auskunft",
4
+ "name": "arzt-auskunft.de",
5
5
  "prehideSelectors": [
6
6
  "#cookiescript_injected"
7
7
  ],
@@ -52,6 +52,119 @@
52
52
  }
53
53
  ]
54
54
  },
55
+ {
56
+ "name": "aws.amazon.com",
57
+ "prehideSelectors": [
58
+ "#awsccc-cb-content",
59
+ "#awsccc-cs-container-inner"
60
+ ],
61
+ "detectCmp": [
62
+ {
63
+ "exists": "#awsccc-cb-content"
64
+ }
65
+ ],
66
+ "detectPopup": [
67
+ {
68
+ "visible": "#awsccc-cb-content"
69
+ }
70
+ ],
71
+ "optIn": [
72
+ {
73
+ "click": "button[data-id=awsccc-cb-btn-accept"
74
+ }
75
+ ],
76
+ "optOut": [
77
+ {
78
+ "click": "button[data-id=awsccc-cb-btn-customize]"
79
+ },
80
+ {
81
+ "eval": "Array.from(document.querySelectorAll('input[aria-checked=true')).forEach(e => e.click()) || true"
82
+ },
83
+ {
84
+ "click": "button[data-id=awsccc-cs-btn-save]"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "name": "baden-wuerttemberg.de",
90
+ "isHidingRule": true,
91
+ "prehideSelectors": [
92
+ ".cookie-alert.t-dark"
93
+ ],
94
+ "detectCmp": [
95
+ {
96
+ "exists": ".cookie-alert.t-dark"
97
+ }
98
+ ],
99
+ "detectPopup": [
100
+ {
101
+ "visible": ".cookie-alert.t-dark"
102
+ }
103
+ ],
104
+ "optIn": [
105
+ {
106
+ "click": ".cookie-alert__button"
107
+ }
108
+ ],
109
+ "optOut": []
110
+ },
111
+ {
112
+ "name": "borlabs",
113
+ "prehideSelectors": [
114
+ "#BorlabsCookieBox"
115
+ ],
116
+ "detectCmp": [
117
+ {
118
+ "exists": "._brlbs-block-content"
119
+ }
120
+ ],
121
+ "detectPopup": [
122
+ {
123
+ "visible": "._brlbs-bar-wrap,._brlbs-box-wrap"
124
+ }
125
+ ],
126
+ "optIn": [
127
+ {
128
+ "click": "a[data-cookie-accept-all]"
129
+ }
130
+ ],
131
+ "optOut": [
132
+ {
133
+ "click": "a[data-cookie-refuse]"
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "name": "bundesregierung.de",
139
+ "prehideSelectors": [
140
+ ".bpa-cookie-banner"
141
+ ],
142
+ "detectCmp": [
143
+ {
144
+ "exists": ".bpa-cookie-banner"
145
+ }
146
+ ],
147
+ "detectPopup": [
148
+ {
149
+ "visible": ".bpa-module-full-hero"
150
+ }
151
+ ],
152
+ "optIn": [
153
+ {
154
+ "click": ".bpa-accept-all-button"
155
+ }
156
+ ],
157
+ "optOut": [
158
+ {
159
+ "click": ".bpa-close-button"
160
+ }
161
+ ],
162
+ "test": [
163
+ {
164
+ "eval": "document.cookie.match('cookie-allow-tracking=0')"
165
+ }
166
+ ]
167
+ },
55
168
  {
56
169
  "name": "cc_banner",
57
170
  "prehideSelectors": [
@@ -178,7 +291,7 @@
178
291
  ]
179
292
  },
180
293
  {
181
- "name": "corona-in-zahlen-de",
294
+ "name": "corona-in-zahlen.de",
182
295
  "prehideSelectors": [
183
296
  ".cookiealert"
184
297
  ],
@@ -207,7 +320,7 @@
207
320
  ]
208
321
  },
209
322
  {
210
- "name": "deepl",
323
+ "name": "deepl.com",
211
324
  "prehideSelectors": [
212
325
  ".dl_cookieBanner_container"
213
326
  ],
@@ -232,6 +345,30 @@
232
345
  }
233
346
  ]
234
347
  },
348
+ {
349
+ "name": "destatis.de",
350
+ "prehideSelectors": [
351
+ "div[aria-labelledby=cookiebannerhead]"
352
+ ],
353
+ "isHidingRule": true,
354
+ "detectCmp": [
355
+ {
356
+ "exists": ".cookiebannerbox"
357
+ }
358
+ ],
359
+ "detectPopup": [
360
+ {
361
+ "visible": ".cookiebannerbox"
362
+ }
363
+ ],
364
+ "optOut": [
365
+ {
366
+ "hide": [
367
+ ".cookiebannerbox"
368
+ ]
369
+ }
370
+ ]
371
+ },
235
372
  {
236
373
  "name": "Drupal",
237
374
  "detectCmp": [
@@ -255,6 +392,44 @@
255
392
  }
256
393
  ]
257
394
  },
395
+ {
396
+ "name": "etsy",
397
+ "detectCmp": [
398
+ {
399
+ "exists": "#gdpr-single-choice-overlay"
400
+ }
401
+ ],
402
+ "detectPopup": [
403
+ {
404
+ "visible": "#gdpr-single-choice-overlay"
405
+ }
406
+ ],
407
+ "optOut": [
408
+ {
409
+ "hide": [
410
+ "#gdpr-single-choice-overlay",
411
+ "#gdpr-privacy-settings"
412
+ ]
413
+ },
414
+ {
415
+ "click": "button[data-gdpr-open-full-settings]"
416
+ },
417
+ {
418
+ "wait": 500
419
+ },
420
+ {
421
+ "eval": "document.querySelectorAll('.gdpr-overlay-body input').forEach(toggle => { toggle.checked = false; }) || true"
422
+ },
423
+ {
424
+ "eval": "document.querySelector('.gdpr-overlay-view button[data-wt-overlay-close]').click() || true"
425
+ }
426
+ ],
427
+ "optIn": [
428
+ {
429
+ "click": "button[data-gdpr-single-choice-accept]"
430
+ }
431
+ ]
432
+ },
258
433
  {
259
434
  "name": "eu-cookie-compliance-banner",
260
435
  "isHidingRule": true,
@@ -327,7 +502,7 @@
327
502
  ]
328
503
  },
329
504
  {
330
- "name": "hl-co-uk",
505
+ "name": "hl.co.uk",
331
506
  "prehideSelectors": [
332
507
  ".cookieModalContent",
333
508
  "#cookie-banner-overlay"
@@ -400,7 +575,37 @@
400
575
  ]
401
576
  },
402
577
  {
403
- "name": "johnlweis",
578
+ "name": "ionos.de",
579
+ "prehideSelectors": [
580
+ ".privacy-consent--backdrop",
581
+ ".privacy-consent--modal"
582
+ ],
583
+ "detectCmp": [
584
+ {
585
+ "exists": ".privacy-consent--modal"
586
+ }
587
+ ],
588
+ "detectPopup": [
589
+ {
590
+ "visible": ".privacy-consent--modal"
591
+ }
592
+ ],
593
+ "optIn": [
594
+ {
595
+ "click": "#selectAll"
596
+ }
597
+ ],
598
+ "optOut": [
599
+ {
600
+ "click": ".footer-config-link"
601
+ },
602
+ {
603
+ "click": "#confirmSelection"
604
+ }
605
+ ]
606
+ },
607
+ {
608
+ "name": "johnlewis.com",
404
609
  "prehideSelectors": [
405
610
  "div[class^=pecr-cookie-banner-]"
406
611
  ],
@@ -467,10 +672,10 @@
467
672
  ]
468
673
  },
469
674
  {
470
- "name": "mediamarkt-de",
675
+ "name": "mediamarkt.de",
471
676
  "prehideSelectors": [
472
- "div[aria-labelledby^=pwa-consent-layer-title]",
473
- "div[class^=StyledConsentLayerWrapper"
677
+ "div[aria-labelledby=pwa-consent-layer-title]",
678
+ "div[class^=StyledConsentLayerWrapper-]"
474
679
  ],
475
680
  "detectCmp": [
476
681
  {
@@ -494,7 +699,7 @@
494
699
  ]
495
700
  },
496
701
  {
497
- "name": "metoffice-gov-uk",
702
+ "name": "metoffice.gov.uk",
498
703
  "prehideSelectors": [
499
704
  "#ccc-module"
500
705
  ],
@@ -520,7 +725,7 @@
520
725
  ]
521
726
  },
522
727
  {
523
- "name": "microsoft",
728
+ "name": "microsoft.com",
524
729
  "prehideSelectors": [
525
730
  "#wcpConsentBannerCtrl"
526
731
  ],
@@ -551,7 +756,7 @@
551
756
  ]
552
757
  },
553
758
  {
554
- "name": "moneysavingexpert",
759
+ "name": "moneysavingexpert.com",
555
760
  "detectCmp": [
556
761
  {
557
762
  "exists": "dialog[data-testid=accept-our-cookies-dialog]"
@@ -577,10 +782,33 @@
577
782
  ]
578
783
  },
579
784
  {
580
- "name": "national-lottery-co-uk",
785
+ "name": "motor-talk.de",
581
786
  "prehideSelectors": [
582
- ".cuk_cookie_consent"
787
+ ".mt-cc-bnnr__wrapper"
788
+ ],
789
+ "detectCmp": [
790
+ {
791
+ "exists": ".mt-cc-bnnr"
792
+ }
793
+ ],
794
+ "detectPopup": [
795
+ {
796
+ "visible": ".mt-cc-bnnr__wrapper"
797
+ }
798
+ ],
799
+ "optIn": [
800
+ {
801
+ "click": ".mt-cc-bnnr__button-main"
802
+ }
583
803
  ],
804
+ "optOut": [
805
+ {
806
+ "click": ".mt-cc-bnnr__decline-link"
807
+ }
808
+ ]
809
+ },
810
+ {
811
+ "name": "national-lottery.co.uk",
584
812
  "detectCmp": [
585
813
  {
586
814
  "exists": ".cuk_cookie_consent"
@@ -588,7 +816,8 @@
588
816
  ],
589
817
  "detectPopup": [
590
818
  {
591
- "visible": ".cuk_cookie_consent"
819
+ "visible": ".cuk_cookie_consent",
820
+ "check": "any"
592
821
  }
593
822
  ],
594
823
  "optOut": [
@@ -609,7 +838,36 @@
609
838
  ]
610
839
  },
611
840
  {
612
- "name": "nhs",
841
+ "name": "netflix.de",
842
+ "detectCmp": [
843
+ {
844
+ "exists": "#cookie-disclosure"
845
+ }
846
+ ],
847
+ "detectPopup": [
848
+ {
849
+ "visible": ".cookie-disclosure-message",
850
+ "check": "any"
851
+ }
852
+ ],
853
+ "optIn": [
854
+ {
855
+ "click": ".btn-accept"
856
+ }
857
+ ],
858
+ "optOut": [
859
+ {
860
+ "hide": [
861
+ "#cookie-disclosure"
862
+ ]
863
+ },
864
+ {
865
+ "click": ".btn-reject"
866
+ }
867
+ ]
868
+ },
869
+ {
870
+ "name": "nhs.uk",
613
871
  "prehideSelectors": [
614
872
  "#nhsuk-cookie-banner"
615
873
  ],
@@ -664,50 +922,28 @@
664
922
  ]
665
923
  },
666
924
  {
667
- "name": "Onetrust",
925
+ "name": "obi.de",
668
926
  "prehideSelectors": [
669
- "#onetrust-banner-sdk,#onetrust-consent-sdk,.optanon-alert-box-wrapper,.onetrust-pc-dark-filter,.js-consent-banner"
927
+ ".disc-cp--active"
670
928
  ],
671
- "isHidingRule": true,
672
929
  "detectCmp": [
673
930
  {
674
- "exists": "#onetrust-banner-sdk,.optanon-alert-box-wrapper,#onetrust-pc-sdk"
931
+ "exists": ".disc-cp-modal__modal"
675
932
  }
676
933
  ],
677
934
  "detectPopup": [
678
935
  {
679
- "visible": "#onetrust-banner-sdk,.optanon-alert-box-wrapper,#onetrust-pc-sdk"
680
- }
681
- ],
682
- "optOut": [
683
- {
684
- "click": "#onetrust-pc-btn-handler,.ot-sdk-show-settings,button.js-cookie-settings"
685
- },
686
- {
687
- "waitFor": "#onetrust-consent-sdk",
688
- "timeout": 2000
689
- },
690
- {
691
- "wait": 1000
692
- },
693
- {
694
- "click": "#onetrust-consent-sdk input.category-switch-handler:checked,.js-editor-toggle-state:checked",
695
- "all": true,
696
- "optional": true
697
- },
698
- {
699
- "waitForThenClick": ".save-preference-btn-handler,.js-consent-save",
700
- "timeout": 1000
936
+ "visible": ".disc-cp-modal__modal"
701
937
  }
702
938
  ],
703
939
  "optIn": [
704
940
  {
705
- "click": "onetrust-accept-btn-handler,js-accept-cookies"
941
+ "click": ".js-disc-cp-accept-all"
706
942
  }
707
943
  ],
708
- "test": [
944
+ "optOut": [
709
945
  {
710
- "eval": "window.OnetrustActiveGroups.split(',').filter(s => s.length > 0).length <= 1"
946
+ "click": ".js-disc-cp-deny-all"
711
947
  }
712
948
  ]
713
949
  },
@@ -740,6 +976,58 @@
740
976
  }
741
977
  ]
742
978
  },
979
+ {
980
+ "name": "otto.de",
981
+ "prehideSelectors": [
982
+ ".cookieBanner--visibility"
983
+ ],
984
+ "detectCmp": [
985
+ {
986
+ "exists": ".cookieBanner--visibility"
987
+ }
988
+ ],
989
+ "detectPopup": [
990
+ {
991
+ "visible": ".cookieBanner__wrapper"
992
+ }
993
+ ],
994
+ "optIn": [
995
+ {
996
+ "click": ".js_cookieBannerPermissionButton"
997
+ }
998
+ ],
999
+ "optOut": [
1000
+ {
1001
+ "click": ".js_cookieBannerProhibitionButton"
1002
+ }
1003
+ ]
1004
+ },
1005
+ {
1006
+ "name": "paypal.de",
1007
+ "prehideSelectors": [
1008
+ "#gdprCookieBanner"
1009
+ ],
1010
+ "detectCmp": [
1011
+ {
1012
+ "exists": "#gdprCookieBanner"
1013
+ }
1014
+ ],
1015
+ "detectPopup": [
1016
+ {
1017
+ "visible": "#gdprCookieContent_wrapper"
1018
+ }
1019
+ ],
1020
+ "optIn": [
1021
+ {
1022
+ "click": "#acceptAllButton"
1023
+ }
1024
+ ],
1025
+ "optOut": [
1026
+ {
1027
+ "click": ".gdprCookieBanner_decline-button"
1028
+ }
1029
+ ]
1030
+ },
743
1031
  {
744
1032
  "name": "quantcast",
745
1033
  "prehideSelectors": [
@@ -809,10 +1097,13 @@
809
1097
  ]
810
1098
  },
811
1099
  {
812
- "name": "steampowered",
1100
+ "name": "steampowered.com",
813
1101
  "detectCmp": [
814
1102
  {
815
1103
  "exists": ".cookiepreferences_popup"
1104
+ },
1105
+ {
1106
+ "visible": ".cookiepreferences_popup"
816
1107
  }
817
1108
  ],
818
1109
  "detectPopup": [
@@ -832,7 +1123,10 @@
832
1123
  ],
833
1124
  "test": [
834
1125
  {
835
- "eval": "!!document.cookie.match('cookieSettings')"
1126
+ "wait": 1000
1127
+ },
1128
+ {
1129
+ "eval": "JSON.parse(decodeURIComponent(document.cookie.split(';').find(s => s.trim().startsWith('cookieSettings')).split('=')[1])).preference_state === 2"
836
1130
  }
837
1131
  ]
838
1132
  },
@@ -918,7 +1212,33 @@
918
1212
  ]
919
1213
  },
920
1214
  {
921
- "name": "thefreedictionary",
1215
+ "name": "thalia.de",
1216
+ "prehideSelectors": [
1217
+ ".consent-banner-box"
1218
+ ],
1219
+ "detectCmp": [
1220
+ {
1221
+ "exists": "consent-banner[component=consent-banner]"
1222
+ }
1223
+ ],
1224
+ "detectPopup": [
1225
+ {
1226
+ "visible": ".consent-banner-box"
1227
+ }
1228
+ ],
1229
+ "optIn": [
1230
+ {
1231
+ "click": ".button-zustimmen"
1232
+ }
1233
+ ],
1234
+ "optOut": [
1235
+ {
1236
+ "click": "button[data-consent=disagree]"
1237
+ }
1238
+ ]
1239
+ },
1240
+ {
1241
+ "name": "thefreedictionary.com",
922
1242
  "prehideSelectors": [
923
1243
  "#cmpBanner"
924
1244
  ],
@@ -944,7 +1264,73 @@
944
1264
  ]
945
1265
  },
946
1266
  {
947
- "name": "xing",
1267
+ "name": "usercentrics-1",
1268
+ "detectCmp": [
1269
+ {
1270
+ "exists": "#usercentrics-root"
1271
+ }
1272
+ ],
1273
+ "detectPopup": [
1274
+ {
1275
+ "eval": "!!document.querySelector('#usercentrics-root').shadowRoot.querySelector('#uc-center-container')"
1276
+ }
1277
+ ],
1278
+ "optIn": [
1279
+ {
1280
+ "eval": "!!UC_UI.acceptAllConsents()"
1281
+ },
1282
+ {
1283
+ "eval": "!!UC_UI.closeCMP()"
1284
+ },
1285
+ {
1286
+ "eval": "UC_UI.areAllConsentsAccepted() === true"
1287
+ }
1288
+ ],
1289
+ "optOut": [
1290
+ {
1291
+ "eval": "!!UC_UI.closeCMP()"
1292
+ },
1293
+ {
1294
+ "eval": "!!UC_UI.denyAllConsents()"
1295
+ }
1296
+ ],
1297
+ "test": [
1298
+ {
1299
+ "eval": "UC_UI.areAllConsentsAccepted() === false"
1300
+ }
1301
+ ]
1302
+ },
1303
+ {
1304
+ "name": "vodafone.de",
1305
+ "prehideSelectors": [
1306
+ ".dip-consent,.dip-consent-container"
1307
+ ],
1308
+ "detectCmp": [
1309
+ {
1310
+ "exists": ".dip-consent-container"
1311
+ }
1312
+ ],
1313
+ "detectPopup": [
1314
+ {
1315
+ "visible": ".dip-consent-content"
1316
+ }
1317
+ ],
1318
+ "optOut": [
1319
+ {
1320
+ "click": ".dip-consent-btn.white-btn"
1321
+ },
1322
+ {
1323
+ "eval": "Array.from(document.querySelectorAll('.dip-consent-btn.red-btn')).filter(e => e.innerText === 'Auswahl bestätigen')[0].click() || true"
1324
+ }
1325
+ ],
1326
+ "optIn": [
1327
+ {
1328
+ "click": ".dip-consent-btn.red-btn"
1329
+ }
1330
+ ]
1331
+ },
1332
+ {
1333
+ "name": "xing.com",
948
1334
  "detectCmp": [
949
1335
  {
950
1336
  "exists": "div[class^=cookie-consent-CookieConsent]"
@@ -970,7 +1356,7 @@
970
1356
  ],
971
1357
  "test": [
972
1358
  {
973
- "eval": "document.cookie.includes('userConsent=%7B%22marketing%22%3Afalse'"
1359
+ "eval": "document.cookie.includes('userConsent=%7B%22marketing%22%3Afalse')"
974
1360
  }
975
1361
  ]
976
1362
  }
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from "./runner";
2
+
3
+ generateCMPTests('arzt-auskunft.de', [
4
+ 'https://arzt-auskunft.de'], {
5
+ skipRegions: ["US", "FR", "GB"]
6
+ }
7
+ );
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from "./runner";
2
+
3
+ generateCMPTests('aws.amazon.com', [
4
+ 'https://docs.aws.amazon.com'], {
5
+ skipRegions: ["US"]
6
+ }
7
+ );
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from "./runner";
2
+
3
+ generateCMPTests('baden-wuerttemberg.de', [
4
+ 'https://baden-wuerttemberg.de'], {
5
+ skipRegions: ["US"]
6
+ }
7
+ );
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from "./runner";
2
+
3
+ generateCMPTests('borlabs', [
4
+ 'https://reitschuster.de'], {
5
+ skipRegions: ["US"]
6
+ }
7
+ );