Repository navigation
Expand file tree
/
Copy pathscript.js
More file actions
4750 lines (4596 loc) · 324 KB
/
Copy pathscript.js
File metadata and controls
4750 lines (4596 loc) · 324 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'use strict';
(function () {
// Sprache
const _ = browser.i18n.getMessage;
// Addon Popup Variablen
let domainohnewww = window.location.hostname.replace(/(www([0-9]{1,2})?\.)/, '');
let cookiebannerstatus = {
seite: domainohnewww,
suchstatus: "suche",
anbieter: "unbekannt",
knopfstatus: "suche"
};
let erweitertecookiebannererkennungaktiviert = false;
browser.storage.local.get('erweitertecookiebannererkennung').then(function (a) {
if (a && a.erweitertecookiebannererkennung && a.erweitertecookiebannererkennung.enabled === true) {
erweitertecookiebannererkennungaktiviert = true;
}
});
// Cookie Einstellungen
let cookieeinstellung;
browser.storage.local.get("cookieeinstellung").then(function (a) {
if (a && a.cookieeinstellung && a.cookieeinstellung.einstellung) {
cookieeinstellung = a.cookieeinstellung.einstellung;
} else {
cookieeinstellung = 'ablehnen';
}
});
// Führe den Hauptscript nur aus wenn das Addon nicht für die Seite deaktiviert ist. Wird es deaktiviert stoppe das Intervall. Wird es aktiviert führe das Script einmalig aus.
let iframereferrer;
let scriptdeaktiviert = false;
let prüfeobdasaddondeaktiviertist;
if (document.contentType === 'text/html' && window.location.href.startsWith('http')) {
let scriptbereitsausgeführt = false;
domainohnewww = window.location.hostname.replace(/(www([0-9]{1,2})?\.)/, '');
if (document.referrer && window.self !== window.top) {
iframereferrer = document.referrer.replace(/(www([0-9]{1,2})?\.)/, '').replace(/https?\:\/\//, '').replace(/\/.*/, '');
}
prüfeobdasaddondeaktiviertist = function () {
scriptdeaktiviert = false;
browser.storage.local.get('aufdiesenseitendeaktiviert').then(function (a) {
if (a && a.aufdiesenseitendeaktiviert && a.aufdiesenseitendeaktiviert.seiten) {
const seiten = a.aufdiesenseitendeaktiviert.seiten;
for (let i = 0; i < seiten.length; i++) {
if (seiten[i] === domainohnewww || seiten[i] === iframereferrer) {
scriptdeaktiviert = true;
}
}
if (scriptdeaktiviert === false && scriptbereitsausgeführt === false) {
scriptbereitsausgeführt = true;
findecookiebannerhauptscript();
}
}
});
};
prüfeobdasaddondeaktiviertist();
browser.storage.local.onChanged.addListener(prüfeobdasaddondeaktiviertist);
}
// Hauptscript
const findecookiebannerhauptscript = function () {
// Cookie Banner Status Addon global mittels Storage setzen.
const updatecookiebannerstatuscookie = function () {
if (document.hidden !== true && window.self === window.top) {
if (cookiebannerstatus.anbieter !== 'unbekannt' || cookiebannerstatus.knopfstatus !== 'suche') {
cookiebannerstatus.suchstatus = 'gefunden';
}
browser.storage.local.get('cookiebannerstatuscookie').then(function (a) {
if (a && a.cookiebannerstatuscookie) {
let tempcookiebannerstatus = a.cookiebannerstatuscookie;
let istdiedomainvorhanden = false;
for (let i = 0; i < tempcookiebannerstatus.length; i++) {
if (tempcookiebannerstatus[i].seite === domainohnewww) {
if (Object.entries(tempcookiebannerstatus[i]).toString() !== Object.entries(cookiebannerstatus).toString()) {
if (tempcookiebannerstatus[i].cookieoderstoragegesetzt) {
cookiebannerstatus.cookieoderstoragegesetzt = true;
}
tempcookiebannerstatus[i] = cookiebannerstatus;
browser.storage.local.set({
cookiebannerstatuscookie: tempcookiebannerstatus
});
}
istdiedomainvorhanden = true;
}
}
if (istdiedomainvorhanden === false) {
tempcookiebannerstatus.push(cookiebannerstatus);
browser.storage.local.set({
cookiebannerstatuscookie: tempcookiebannerstatus
});
}
} else {
browser.storage.local.set({
cookiebannerstatuscookie: [
cookiebannerstatus
]
});
}
});
}
};
// Variablen
let findconsent;
let findconsentinterval;
let findconsentintervalzahl = 200;
let findconsentintervalzahlgeändert = false;
let checkpagevisibility;
let checkpagevisibility2;
let findcookiebannerspecific;
let findcookiebannerspecificinterval;
let regelsuchebereitsgelaufen = false;
// Forciere das Session Storage Item.
let forcesessionstorage = function () {
if (sessionStorage.getItem('mpowlesu908hxfyw37ghg5ikx90jdzt') !== 'djx0v0odce35xrb2pt5dzbgaj1mud5c' && window.location.host.endsWith('.mydealz.de') === false) {
sessionStorage.setItem('mpowlesu908hxfyw37ghg5ikx90jdzt', 'djx0v0odce35xrb2pt5dzbgaj1mud5c');
}
};
let beenden = function () {
window.clearInterval(findconsentinterval);
window.clearInterval(findcookiebannerspecificinterval);
window.removeEventListener('visibilitychange', checkpagevisibility);
window.removeEventListener('visibilitychange', checkpagevisibility2);
forcesessionstorage();
};
let beendenohnestorage = function () {
window.clearInterval(findconsentinterval);
window.clearInterval(findcookiebannerspecificinterval);
window.removeEventListener('visibilitychange', checkpagevisibility);
window.removeEventListener('visibilitychange', checkpagevisibility2);
};
// Funktionen für die Cookie Banner erkennung.
let attributchecker = function (a) {
const htmltext = a.outerHTML.toLowerCase();
if ((htmltext.includes('schließen') || htmltext.includes('close') || htmltext.includes('dismiss') || htmltext.includes('reject') || htmltext.includes('disallow') || htmltext.includes('akceptuję') || a.innerText.trim().match(/^(x|×|Χ|Х|х|ᕁ|ᕽ|ᚷ|Ⅹ|ⅹ|╳|❌|⤫|⤬|⨯|𐌗|𐌢|𝝬|X|☓|Ꭓ|✗)$/i)) && a.innerText.length < 5) {
return true;
}
};
let attributcheckeradvancedchecker = function (a) {
const links = a.getElementsByTagName('a');
for (let i = 0; i < links.length; i++) {
const linkhtml = links[i].outerHTML.toLowerCase().trim();
if (linkhtml.includes('datenschutz') || linkhtml.includes('cookie') || linkhtml.includes('privacy')) {
return true;
}
}
};
let knöpfetextcheck = function (b) {
if (b) {
let textcomplete;
if (typeof b === 'object') {
textcomplete = b.innerText.toLowerCase().trim();
const cssbefore = getComputedStyle(b, '::before').content;
const cssafter = getComputedStyle(b, '::after').content;
if (cssbefore && cssbefore !== 'none' && cssbefore !== '""' && cssbefore.startsWith('url(') === false && (cssbefore !== cssbefore.toLowerCase() || cssbefore !== cssbefore.toUpperCase() || cssbefore.match(/([0-9]|€|\$|\?)/))) {
textcomplete = textcomplete + getComputedStyle(b, '::before').content.toLowerCase().trim();
}
if (cssafter && cssafter !== 'none' && cssafter !== '""' && cssafter.startsWith('url(') === false && (cssafter !== cssafter.toLowerCase() || cssafter !== cssafter.toUpperCase() || cssafter.match(/([0-9]|€|\$|\?)/))) {
textcomplete = textcomplete + getComputedStyle(b, '::after').content.toLowerCase().trim();
}
if (textcomplete.length < 2 && b.value) {
if (b.value === 'on' && b.name && b.name.length > 2) {
textcomplete = textcomplete + b.name.toLowerCase().trim();
} else {
textcomplete = textcomplete + b.value.toLowerCase().trim();
}
}
} else if (typeof b === 'string') {
textcomplete = b.toLowerCase().trim();
}
textcomplete = textcomplete.replaceAll(/( | | | ||)/g, ' ').trim();
b = textcomplete;
const c = b;
const d = b;
const paybutton = paybuttons(c);
const marketingtracking = marketingtrackingg(d);
const ablehntext = ['ablehnen', 'alle ablehnen', 'cookies ablehnen', 'alle cookies ablehnen', 'optionale cookies ablehnen', 'zusätzliche cookies ablehnen', 'unwichtige cookies ablehnen', 'ich lehne ab', 'notwendige', 'nur notwendig', 'nur notwendige', 'nur notwendige cookies', 'nur notwendige cookies akzeptieren', 'nur technisch notwendige cookies akzeptieren', 'technisch notwendige cookies erlauben', 'schließen', 'schliessen', 'nur technisch', 'nur technische', 'nur technische cookies', 'technisch notwendige akzeptieren', 'nur erforderliche', 'nur erforderliche cookies', 'nur erforderliche cookies zulassen', 'nur mit erforderlichen cookies fortfahren', 'erforderlich bestätigen', 'fortfahren ohne zu akzeptieren', 'cookies zulassen', 'nur wesentliche', 'nur wesentliche cookies', 'weigern', 'essenzielle', 'nur essentielle cookies akzeptieren', 'nur essenzielle akzeptieren', 'nur essenzielle cookies akzeptieren', 'nicht akzeptieren', 'nichts akzeptieren', 'keine tracking-cookies', 'nur das nötigste', 'ohne cookies', 'eingeschränkte funktionalität', 'nein, danke', 'nein danke', 'nein danke.', 'nicht einverstanden', 'ich bin nicht einverstanden', 'weiter ohne einwilligung', 'weiter ohne zustimmung', 'weiter ohne tracking', 'cookies verbieten', 'lehne nicht notwendige ab', 'lehn nicht notwendige ab', 'sämtliche datennutzung ablehnen', 'ablehnen optional', 'ich stimme der nutzung von cookies nicht zu', 'webanalyse ablehnen', 'alle verweigern', 'nur funktionelle cookies', 'cookies deaktivieren', 'ich möchte keine Ccokies.', 'reject', 'i reject', 'reject all', 'reject cookies', 'reject optional', 'reject optional cookies', 'alle optionalen ablehnen', 'alle optionalen cookies ablehnen', 'reject all optional cookies', 'reject additional cookies', 'reject & close', 'reject and close', 'reject non-essential', 'reject all non-essential cookies', 'reject all non essential cookies', 'essential cookies only', 'reject all non-required', 'decline', 'i decline', 'decline all', 'decline all cookies', 'deny', 'deny all', 'deny all cookies', 'refuse', 'refuse all', 'refuse all cookies', 'refuse cookies', 'disallow', 'disallow all', 'disallow all cookies', 'necassy', 'only necassy', 'only necassy cookies', 'dismiss', 'close', 'no thanks', 'necessary', 'only necessary', 'necessary only', 'required only', 'necessary cookies', 'only necessary cookies', 'necessary cookies only', 'without accept', 'continue without consent', 'continue without accepting', 'do not consent', 'nie akceptuję', 'rejeitar', 'rejeitar tudo', 'kun nødvendige', 'nödvändiga', 'nødvendige', 'odmítám', 'odmítnout', 'odmítnout volitelné cookies', 'odmítnout vše', 'رفض', 'niezbędne', 'begrænset', 'odmietnuť', 'odmietnuť všetko', 'len nevyhnutné', 'iba nevyhnutné', 'essential', 'essential only', 'don\'t allow', 'ไม่ยอมรับ', 'deaktiver', 'pouze nezbytné', 'povolit pouze nezbytné cookie', 'δεν αποδεχομαι', 'απόρριψη όλων', 'отклонить', 'continuar sin consentimiento', 'continua senza accettare', 'rifiuta', 'rifiuta tutto', 'rifiutare', 'odmawiam', 'rechazar', 'rechazar cookies', 'rechazar todo', 'rechazar todas', 'prihvati samo neophodne kolačiće', 'continuer sans accepter', 'refuser', 'refuser tout', 'tout refuser', 'refuser les cookies optionnels', 'refuser tous les cookies', 'fortsätt utan att acceptera', 'zaakceptuj tylko niezbędne', 'odrzuć wszystkie', 'odrzuć', 'odrzuć niewymagane', 'odrzuć wszystko', 'eefuser tous les', 'tümünü reddet', 'endast nödvändiga', 'endast nödvändiga cookies', 'weigeren', 'alles weigeren', 'alles afwijzen', 'atmesti', 'atmesti visus', 'pokračovať s nevyhnutnými cookies', 'отказвам', 'отказвам бисквитки', 'отказвам опционалните бисквитки', 'afwijzen', 'niet toestaan', '拒否', 'recusar', 'recusar tudo', 'từ chối', '거부', '拒否する', '拒绝', '拒絕', '全部拒絕', '全部拒绝', '僅需', '仅需', 'godta bare de obligatoriske', 'godta endast nödvändiga', 'povolit jen nezbytné', 'nee, liever niet', 'sólo cookies necesarias desde el punto de vista técnico', 'neka alla cookies', 'neka', 'refuza', 'tüm çerezleri reddediyorum', 'tüm çerezleri reddedin', 'tümünü reddet', 'en desacuerdo', 'godkänn nödvändiga cookies', 'avböj', 'n\'accepter que les cookies techniques', 'akceptuj tylko niezbędne', 'nej til cookies', 'hylkää kaikki', 'afvis', 'afvis alle', 'avvis', 'avvis alle', 'ne pas autoriser', 'accept necessary cookies only', 'denegar todas', 'negar', 'negare', 'nægt', 'kiellä', 'nie zgadzam się', 'nee, ik wil geen optimale cookies', 'vain välttämättömät', 'bara nödvändiga', 'только необходимые', 'dušše vealtameahttumiid', 'тільки обов\'язкові', 'tillåt nödvändiga', 'noraidīt', 'descartar cookies'];
for (let i = 0; i < ablehntext.length; i++) {
if (b === ablehntext[i] && b.includes('einstellungen') === false) {
return 'ablehntext';
}
}
const speichertext = ['speichern', 'speichern und schließen', 'schließen und speichern', 'individuelle auswahlen speichern', 'auswahl speichern', 'auswahl akzeptieren', 'individuelle auswahl speichern', 'einstellungen übernehmen', 'einstellungen speichern', 'einstellung speichern', 'meine einstellungen übernehmen', 'meine einstellungen speichern', 'aktuelle einstellungen speichern', 'auswahl übernehmen', 'auswahl bestätigen', 'meine auswahl bestätigen', 'bestätigen', 'ausgewählte übernehmen', 'ausgewählte speichern', 'ausgewählte cookies speichern', 'ausgewählte cookies übernehmen', 'speichern & schließen', 'auswahl zustimmen', 'ausgewählte zustimmen', 'ausgewählte akzeptieren', 'mit erforderlichen einstellungen fortfahren', 'save', 'save choices', 'save your choice', 'save custom choices', 'confirm choices', 'opslaan', 'keuze opslaan', 'selectie opslaan', 'voorkeuren opslaan', 'udvalgte cookies', 'sutinku', 'gem indstillinger', 'vybraných', 'αποδοχή επιλογών', 'selectie toestaan', 'voorkeuren', 'accepteer selectie', 'potvrdit moje volby', 'spara val', 'zapisz ustawienia'];
for (let i = 0; i < speichertext.length; i++) {
if (b === speichertext[i]) {
return 'speichertext';
}
}
const akzeptiertext = ['akzeptieren', 'akzeptiere', 'ich akzeptiere', 'akzeptiere alle', 'ich akzeptiere alle', 'ich akzeptiere alle cookies', 'alle akzeptieren', 'alle cookies akzeptieren', 'akzeptieren und fortfahren', 'alle cookies akzeptieren und fortfahren', 'alle cookies akzeptieren und schließen', 'alles akzeptieren', 'alles akzeptieren und fortfahren', 'akzeptieren & schließen', 'akzeptieren & weiter', 'akzeptieren & fortfahren', 'akzeptieren und schließen', 'cookies akzeptieren', 'ich stimme zu', 'ich stimme zu.', 'zustimmen', 'allen cookies zustimmen', 'allen zustimmen', 'cookies zustimmen', 'zustimmen und fortfahren', 'zustimmen und weiter', 'speichern und zustimmen', 'zustimmung', 'ich stimme allen cookies zu', 'verstanden', 'ausblenden', 'erlauben', 'alle erlauben', 'cookies erlauben', 'alles erlauben', 'alle cookies erlauben', 'nur notwendige erlauben', 'nicht mehr anzeigen', 'alle auswählen', 'alles auswählen', 'alles klar', 'alles klar!', 'alles zulassen', 'bestätige', 'einverstanden', 'zulassen', 'alle zulassen', 'alle zulassen und fortsetzen', 'alle cookies zulassen', 'in ordnung', 'annehmen', 'alle annehmen', 'alle optionalen akzeptieren', 'annehmen und fortfahren', 'alle bestätigen', 'alle cookies annehmen', 'cookies annehmen', 'einwilligen', 'einwilligen und weiter', 'akzeptieren und weiter', 'akzeptieren und schließen', 'einverstanden und weiter', 'weiter mit den empfohlenen cookies', 'ich bestätige alle', 'ja, ich bin einverstanden', 'okay', 'okey', 'ok', 'ок', 'ok,habe es!', 'ok, weiter.', 'nehme an', 'ich habe das verstanden', 'übernehmen', 'ja, ich akzeptiere cookies', 'ich verstehe und stimme der nutzung von cookies zu', 'webanalyse akzeptieren', 'zustimmung erteilen', 'zur kenntnis genommen', '→ hinweis schließen', 'agree', 'i agree', 'accept', 'i accept', 'yes, i accept', 'accept all', 'all cookies', 'accept cookies', 'accept all cookies', 'accept additional cookies', 'accept & close', 'accept and close', 'accept and continue', 'Accept recommended settings', 'accept & proceed', 'accept and proceed', 'got it', 'got it!', 'got it !', 'continue', 'continue browsing', 'consent', 'consent all', 'consent to all', 'consent to all cookies', 'allow', 'allow all', 'allow all cookies', 'hide', 'i understand', 'understood', 'acknowledge', 'analytics only', 'ok, i agree', 'agreed', 'agree & continue', 'agree and continue', 'continue with recommended cookies', '続ける', '閉じる', 'sutinku su visais', 'sluit melding', 'acceptér', 'ja, det er greit', 'godta', 'godta alt', 'godta alle', 'godta alle cookies', 'принять', 'принять cookies', 'povolit', 'قبول', 'zaakceptuj', 'súhlasím', 'бәрін қабылдау', 'согласен', 'kabul et', 'kabul ediyorum', 'přijmout', 'přijmout všechny cookies', 'accetta', 'accetta tutti', 'ยอมรับ', 'aceito', 'aceitar', 'aceitar e fechar', 'elfogadom', 'hyväksy', 'tillad', 'tillad alle', 'samtycker', 'wszystko', 'zamknij', 'הבנתי', 'souhlasím', 'souhlasím a pokračovat', 'αποδοχή όλων', 'αποδεχομαι', 'αποδοχή', 'acepto', 'sluit', 'zgoda', 'zgoda i kontynuacja', 'aceptar', 'aceptar todo', 'aceptar todas', 'aceptar y continuar', 'slažem se', 'zaakceptuj', 'zaakceptuj wszystkie', 'akceptuj wszystkie', 'akceptuj wszystkie pliki cookies', 'autoriser tous les cookies', 'autoriser tous les', 'tümünü kabul et', 'tillåt alla', 'accepteren', 'alle accepteren', 'alles accepteren', 'alle cookies accepteren', 'sutikti', 'sutikti su', 'sutikti su visais', 'accepter', 'accepter alle', 'accepter & fermer', 'accepter and fermer', 'accepter et fermer', 'acceptera alla', 'acceptera alla cookies', 'accepter tous les cookies', 'acceptera', 'acceptera alla kakor', 'godkänn', 'godkänn alla', 'godkänn alla kakor', 'godkänn alla cookies', 'приемам', 'приемам всички', 'погодитися', 'zgadzam się', 'consentir', 'toestaan', 'alles toestaan', 'continuar', 'tiếp tụ', '계속', 'すべて受け入れる', '继续', '接受', '全部接受', '繼續', 'povolit všechny', 'zaakceptuj i zamknij okno', 'ik snap het!', 'ik snap het', 'povolit vše', 'akceptuję wszystkie', 'akceptuję i przechodzę do serwisu', 'zatwierdź wszystkie', 'tüm çerezleri kabul ediyorum', 'tüm çerezleri kabul edin', 'tümünü kabul et', 'estoy de acuerdo', 'прийняти файли cookie', 'zezwól', 'povolit cookies', 'j\'accepte', 'akkoord', 'accepteer alles', 'accepteer alle cookies', 'ja til cookies', 'hyväksy kaikki', 'godta alla', 'permitir todos', 'alle cookies aanvaarden', 'sluiten', 'aceitar todos', 'accettare tutti', 'akceptuj wszystko', 'tout accepter', 'accepter tout', 'ja, ik accepteer optimale cookies', 'принять все', 'dohkket buot', 'прийняти все', 'accept all non-essential cookies', 'accept all non essential cookies', 'accecpt', 'přijmout', 'potwierdź', 'akceptuję', 'atļaut', 'acceptar les cookies seleccionades', 'povolit všechny soubory cookie', 'acconsento'];
for (let i = 0; i < akzeptiertext.length; i++) {
if (b === akzeptiertext[i]) {
return 'akzeptiertext';
}
}
const optionstext = ['einstellungen', 'einstellungen verwalten', 'ihre auswahl treffen', 'optionen', 'setting', 'options', 'cookies verwalten', 'konfigurieren', 'benutzerdefiniert', 'dostosuj pliki cookie', 'çerez ayarları', 'çerez ayarlarını yapılandır', 'cookie instellingen', 'instellingen', 'więcej opcji', 'configurações', 'impostazioni', 'možnosti', 'ustawienia', 'ustawienia zaawansowane', 'hantera mina preferenser', 'configuración', 'nastavení', 'preferencje', 'manage cookies', 'hantera', 'ustawienia plików cookie', 'ayarları değiştir', 'ajustes', 'dostosuj', 'podrobné nastavení', 'voorkeuren instellen', 'voorkeuren aanpassen', 'paramétrage', 'anpassa cookies', 'pas aan', 'kişiselleştirin', 'ustawienia plików cookies', 'hallitse', 'indstillinger', 'manage settings', 'configurar', 'configurar as minhas escolhas', 'nastavení preferencí', 'ne, uprav', 'ei, säädä', 'nei, endre valg', 'nej, justera', 'nej, juster', 'いいえ、調整します', 'nee, pas aan', 'no, aggiusta', 'no, ajustar', 'non, ajuster', 'não, ajustar', 'personnaliser mes choix', 'configure', 'nastavení', 'ustawienia zaawansowane', 'pielāgot', 'nastavení cookies'];
for (let i = 0; i < optionstext.length; i++) {
if (b.includes(optionstext[i]) && !paybutton) {
return 'optionstext';
}
}
const funktionaltext = ['funktional', 'funktionel', 'funktions-', 'notwendige cookies zulassen', 'warenkorb speichern', 'warenkorbs zu speichern', 'anmeldedaten speichern', 'komfort', 'personalisierte inhalte', 'personalisierter inhalt', 'personalisierung von inhalten', 'personalisierung von suchergebnissen', 'optimierten kundenservice', 'videos und bilder', 'präferenzen', 'übersetzungstool', 'tidio ‑ live chat and chatbots', 'open street map', 'openstreetmap', 'optimized customer service', 'comfort', 'display videos', 'display images', 'functional', 'funzionale', 'fonctionnel', 'fonctionnalité', 'functioneel', 'functionele', 'funcionais', 'funcțional', 'funzionali', 'funcional', '機能的', '機能性', '功能性', 'foncionals', 'funksjonelle', 'i̇şlevsellik', 'swyddogaeth', 'функционалност', 'функціональності', 'Функционални', 'Функциональные', 'פונקציונליות', 'λειτουργικότητας', 'funksjonalitet', 'funkcionalitātes ', 'funkcionalumo', 'funktsionaal', 'funkcionalni', 'funkcjonalne', 'verwendung von profilen zur auswahl personalisierter inhalte', 'erstellung von profilen zur personalisierung von inhalten', 'verwendung reduzierter daten zur auswahl von inhalten', 'ein personalisiertes inhalts-profil erstellen', 'personalisierte inhalte auswählen', 'personalisierten inhalten', 'use limited data to select content', 'use profiles to select personalised content', 'create profiles to personalise content', 'utiliser des données limitées pour sélectionner le contenu', 'creare profili per la personalizzazione dei contenuti', 'utilizzare profili per la selezione di contenuti personalizzati', 'utilizzare dati limitati per la selezione dei contenuti', 'kreiranje profila za personalizaciju sadržaja', 'korišćenje profila za izbor personalizovanog sadržaja', 'sozial', 'social', 'preferenze', 'preferences', 'preferencias', 'préférences', 'external media', 'external content', 'externe medien', 'externe inhalte', 'externe dienste', 'externen inhalten', 'redaktionelle', 'redaktionell empfohlene inhalte', 'toiminnallinen', 'funkční', 'third-party services', 'paypal express', 'multimedia player'];
for (let i = 0; i < funktionaltext.length; i++) {
if (b.includes(funktionaltext[i]) && !marketingtracking) {
return 'funktionaltext';
}
}
const funktionaltext2 = ['erforderlich', 'erforderliche', 'nur erforderlich', 'nur erforderliche', 'youtube', 'facebook', 'instagram', 'tiktok', 'twitter', 'twitch', 'linkedin', 'dailymotion', 'pinterest', 'vimeo', 'soundcloud', 'maps', 'open street map', 'openstreetmap', 'kartendienst', 'landkarte', 'packstation', 'extern', 'navigation', 'embedd', 'eye-able', 'service', 'zahlungsanbieter', 'zusatzfunktionen', 'recaptcha', 'paypal', 'express checkout', 'bewertungen', 'cleverpush', 'flowbox', 'guuru', 'selligent', 'trbo', 'wonderpush', 'authorized.by', 'billiger.de', 'google fonts', 'idealo', 'trusted shops', 'händlerbund', 'drittanbieter-inhalte', 'drittanbieter inhalte', 'entertainment', 'wishlist', 'wunschliste', 'tidio', 'chatbot', 'livechat', 'live chat', 'doofinder'];
for (let i = 0; i < funktionaltext2.length; i++) {
if (b.includes(funktionaltext2[i]) && b.length <= 25 && !marketingtracking) {
return 'funktionaltext';
}
}
}
};
let paybuttons = function (c) {
if (typeof (c) !== 'string') {
let textcomplete = c.innerText.toLowerCase();
const cssbefore = getComputedStyle(c, '::before').content;
const cssafter = getComputedStyle(c, '::after').content;
if (cssbefore !== 'none' && cssbefore.startsWith('url(') === false) {
textcomplete = textcomplete + getComputedStyle(c, '::before').content.toLowerCase();
}
if (cssafter !== 'none' && cssafter.startsWith('url(') === false) {
textcomplete = textcomplete + getComputedStyle(c, '::after').content.toLowerCase();
}
if (c && c.length < 2 && c.value) {
textcomplete = textcomplete + c.value;
}
c = textcomplete;
}
const paytext = ['kaufe', 'bestell', 'kostenpflichtig', 'einloggen', 'abo', 'abbonati', 'pur ', 'pur-', 'werbefrei', 'spende', 'buchen', 'buy', 'pay', '€', '$', 'adfree', 'ad free', 'ad-free', 'subscribe', 'pro ', 'premium', 'order ', 'login', 'einloggen', 'anmelden', 'regist', 'donate', 'suscrib', 'pagar', 'download', 'contentpass', 'content-pass', 'content pass', 'mitgliedschaft', 'profil'];
for (let i = 0; i < paytext.length; i++) {
if (c.includes(paytext[i]) || c.match(/[0-9]/) || c === 'order' || c.endsWith(' pur')) {
return true;
}
}
};
let marketingtrackingg = function (d) {
const marketingtrackingtext = ['marketing', 'werbe', 'tracking', 'advertising', 'analyse', 'analytics', 'statistik', 'facebook pixel', 'meta pixel', 'adwords', 'linkedin insights', 'brevo', 'hotjar', 'microsoft clarity', 'pinterest ads', 'tiktok ads', 'google ads'];
for (let i = 0; i < marketingtrackingtext.length; i++) {
if (d.includes(marketingtrackingtext[i])) {
return true;
}
}
};
// ENDE Funktionen für die Cookie Banner erkennung.
let sichtbarkeitsprüfung = function (a) {
const check = window.getComputedStyle(a);
const rect = a.getBoundingClientRect();
const maxheight = Math.max(window.innerHeight, document.body.offsetHeight, document.body.scrollHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight, screen.availHeight);
const maxwidth = Math.max(window.innerWidth, document.body.offsetWidth, document.body.scrollWidth, document.documentElement.clientWidth, document.documentElement.scrollWidth, document.documentElement.offsetWidth, screen.availWidth);
if (check.getPropertyValue('display') !== "none" && check.getPropertyValue('visibility') === 'visible' && check.getPropertyValue('content-visibility') === 'visible' && check.getPropertyValue('opacity') > 0.1 && (a.offsetHeight > 1 || a.offsetWidth > 1) && (rect.bottom - rect.height < maxheight) && (rect.right - rect.width < maxwidth) && (rect.top + rect.height > 0) && (rect.left + rect.width > 0) && a.checkVisibility()) {
return true;
} else {
return false;
}
};
let klickecookiebutton = function () {};
let findconsentintervalzahländern = function () {
if (findconsentintervalzahlgeändert === false) {
findconsentintervalzahlgeändert = true;
window.clearInterval(findconsentinterval);
findconsentinterval = window.setInterval(function () {
findconsent();
}, findconsentintervalzahl);
}
};
// Find Cookie Banner
if (scriptdeaktiviert === false && sessionStorage.getItem('mpowlesu908hxfyw37ghg5ikx90jdzt') !== 'djx0v0odce35xrb2pt5dzbgaj1mud5c' && document.querySelector('body[class="no-js"] > .main-wrapper[role="main"] + script') === null && document.querySelector('html[style="height:100%"] iframe[src^="/_Incapsula_Resource?"]') === null && document.querySelector('link[href="/cdn-cgi/styles/challenges.css"][rel="stylesheet"]') === null && document.querySelector('body > .main-wrapper:first-child + script + script[src^="https://static.cloudflareinsights.com/beacon.min.js/"]:last-child') === null && document.querySelector('body > .main-wrapper > .main-content:only-child > noscript:only-child') === null && document.querySelector('body > script:first-child + #container + .cf-turnstile + div + script:last-child') === null && document.querySelector('body[style="margin:0"] > script[src^="https://ct.captcha-delivery.com/"]') === null && document.querySelector('head > script[src^="/TSPD/"] + noscript:last-child') === null && document.querySelector('body > div:first-child + script[src^="https://mcl.spur.us/d/mcl.js?"] + script:last-child') === null && document.querySelector('body > main > div > script[src^="/.within.website/x/cmd/anubis/static/js/main"]') === null && window.location.hostname !== 'accounts.google.com' && window.location.hostname !== 'challenges.cloudflare.com' && window.location.href.startsWith('https://www.google.com/recaptcha/') !== true && window.location.href.startsWith('https://www.recaptcha.net/recaptcha/') !== true && window.location.href.startsWith('https://w.soundcloud.com/player/?url=http') !== true && window.location.href.startsWith('https://r-login.wordpress.com/remote-login.php') !== true) {
let nc;
let ncnowww;
if (window.location.protocol === 'http:') {
nc = "domain=" + window.location.hostname + ";max-age=86400; SameSite=Lax; path=/";
ncnowww = "domain=" + domainohnewww + ";max-age=86400; SameSite=Lax; path=/";
} else {
nc = "domain=" + window.location.hostname + ";secure=true; max-age=86400; SameSite=None; path=/";
ncnowww = "domain=" + domainohnewww + ";secure=true; max-age=86400; SameSite=None; path=/";
}
const cookiedatum = new Date().toISOString();
const cookiezeit = new Date().getTime();
// Intervall nur laufen lassen wenn das Fenster sichtbar ist.
checkpagevisibility = function () {
if (document.hidden === true) {
window.clearInterval(findconsentinterval);
} else if (document.hidden === false) {
findconsentinterval = window.setInterval(function () {
findconsent();
}, findconsentintervalzahl);
}
};
window.addEventListener('visibilitychange', checkpagevisibility);
if (document.hidden === false) {
findconsentinterval = window.setInterval(function () {
findconsent();
}, findconsentintervalzahl);
}
let bereitsgeklickt = false;
let bereitsgeklickt2 = false;
let advancedcounter = 0;
let advancedslowdown = 3;
let advancedrun = true;
let altererkennungsscriptausgeführt = false;
let findconsentcounter = 0;
let cookiebannerfinalakzeptiert = false;
let cookiebannerfinalakzeptiertcounter = 0;
let cookiebannerfinalakzeptiertversuche = 0;
let sfbxabgelehnt = false;
let switchesdelay = 0;
// Suchintervall
findconsent = function () {
// Intervall nach 10 Sekunden im sichtbaren Bereich stoppen.
findconsentcounter++;
if (cookiebannerfinalakzeptiert === true) {
cookiebannerfinalakzeptiertcounter++;
}
if (cookiebannerfinalakzeptiertversuche >= 4) {
beenden();
}
if (findconsentcounter >= (10000 / findconsentintervalzahl)) {
cookiebannerstatus.suchstatus = 'nichts gefunden';
beendenohnestorage();
}
if (scriptdeaktiviert === true) {
browser.storage.local.onChanged.removeListener(prüfeobdasaddondeaktiviertist);
beendenohnestorage();
sessionStorage.removeItem('mpowlesu908hxfyw37ghg5ikx90jdzt');
}
let ablehnen;
let speichern;
let einstellungen;
let schließen;
let akzeptieren;
let nureinklickeinstellungen;
// iFrame Klicker
if (window.self !== window.top) {
// cdn.privacy-mgmt.com
if (window.location.href.includes('/index.html?') && window.location.href.includes('hasCsp=') && window.location.href.includes('message_id=') && window.location.href.includes('consent')) {
console.log('[Cookie auto decline] Detected: privacy-mgmt.com (iFrame)');
cookiebannerstatus.anbieter = 'privacy-mgmt.com (iFrame)';
advancedrun = false;
nureinklickeinstellungen = true;
const knöpfe = document.querySelectorAll('button');
const prüfeaboknöpfe = document.querySelectorAll('.cmp-button, .cmp-offer-pur-btn, .sp_choice_type_9, a[rel]');
let aboerforderlich = false;
for (let i = 0; i < prüfeaboknöpfe.length; i++) {
if (paybuttons(prüfeaboknöpfe[i])) {
aboerforderlich = true;
}
}
for (let i = 0; i < knöpfe.length; i++) {
if (paybuttons(knöpfe[i])) {
aboerforderlich = true;
}
if (sichtbarkeitsprüfung(knöpfe[i])) {
const textgeprüft = knöpfetextcheck(knöpfe[i]);
if (textgeprüft === 'ablehntext') {
ablehnen = knöpfe[i];
} else if (textgeprüft === 'speichertext') {
speichern = knöpfe[i];
} else if (textgeprüft === 'akzeptiertext') {
akzeptieren = knöpfe[i];
} else if (textgeprüft === 'optionstext') {
einstellungen = knöpfe[i];
}
}
}
if (!ablehnen) {
ablehnen = document.querySelector('button.sp_choice_type_REJECT_ALL:not(:disabled)');
}
if (!speichern) {
speichern = document.querySelector('button.sp_choice_type_SAVE_AND_EXIT:not(:disabled)');
}
if (!einstellungen) {
einstellungen = document.querySelector('button.settings, button.cmp-settings-btn, button.sp_choice_type_12');
if (window.screen.availWidth < 500) {
einstellungen = document.querySelector('button.settings, button.cmp-settings-btn, button.sp_choice_type_12.mobile');
}
}
if (!akzeptieren) {
akzeptieren = document.querySelector('button.accept-all, button.sp_choice_type_ACCEPT_ALL, .sp_choice_type_11');
}
if (aboerforderlich) {
ablehnen = undefined;
einstellungen = undefined;
}
if (bereitsgeklickt || window.location.href.includes('/privacy-manager/index.html?')) {
ablehnen = undefined;
einstellungen = undefined;
akzeptieren = undefined;
}
if (cookieeinstellung === 'funktional' && speichern) {
switchesdelay++;
const boxen = document.querySelectorAll('.stack-row');
for (let i = 0; i < boxen.length; i++) {
const b = boxen[i].querySelector('.accordion');
if (knöpfetextcheck(b) === 'funktionaltext') {
const switchh = boxen[i].querySelector('button.pm-switch[role="switch"][aria-checked="false"]:not(.checked)');
if (switchh) {
switchh.click();
}
}
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// privacymanager.io (iframe klicker)
if (window.location.hostname === 'cmp-consent-tool.privacymanager.io') {
console.log('[Cookie auto decline] Detected: privacymanager.io (iFrame)');
cookiebannerstatus.anbieter = 'privacymanager.io (iFrame)';
einstellungen = document.querySelector('button#manageSettings');
speichern = document.querySelector('button#saveAndExit');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// trustarc.com (iframe klicker)
if (window.location.hostname === 'consent-pref.trustarc.com') {
console.log('[Cookie auto decline] Detected: trustarc.com (iFrame)');
findconsentintervalzahl = 802;
findconsentintervalzahländern();
cookiebannerstatus.anbieter = 'trustarc.com (iFrame)';
ablehnen = document.querySelector('.mainContent .pdynamicbutton .required, .mainContent .bottom .rejectAll, .mainContent .trustarc-submit-buttons-container > button.trustarc-declineall-btn, .gdpr .declineAllButtonLower');
if (cookieeinstellung === 'funktional') {
switchesdelay++;
const switches = document.querySelectorAll('.cookiecat, li.listItem');
for (let i = 0; i < switches.length; i++) {
let b = switches[i];
if (switches[i].querySelector('.viewcookie')) {
b = switches[i].querySelector('p, span.gwt-InlineHTML h3');
}
if (knöpfetextcheck(b) === 'funktionaltext') {
if (switches[i].querySelector('.switch > .gwt-InlineHTML:first-child + .gwt-InlineHTML, .switchContainerLayerOne > .consentyes')) {
switches[i].querySelector('.switch > .gwt-InlineHTML:first-child + .gwt-InlineHTML, .switchContainerLayerOne > .consentyes').click();
}
} else {
if (switches[i].querySelector('.switch > .gwt-InlineHTML:first-child, .switchContainerLayerOne > .consentno')) {
switches[i].querySelector('.switch > .gwt-InlineHTML:first-child, .switchContainerLayerOne > .consentno').click();
}
}
}
speichern = document.querySelector('button.submit, a.saveAndExit, .pdynamicbutton[style="visibility: visible;"] a.submit[role="button"]');
}
akzeptieren = document.querySelector('a.call, button.acceptAllButtonLower, a.acceptAll');
schließen = document.querySelector('.mainContent .pdynamicbutton .close');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// baycloud.ie (iframe klicker)
if (window.location.hostname === 'cdn.baycloud.com') {
console.log('[Cookie auto decline] Detected: baycloud.ie (iFrame)');
cookiebannerstatus.anbieter = 'baycloud.ie (iFrame)';
findconsentintervalzahl = 2802;
findconsentintervalzahländern();
nureinklickeinstellungen = true;
ablehnen = document.querySelector('#panelContainer button#panelDecline');
einstellungen = document.querySelector('#panelContainer button#toggleDetails');
speichern = document.querySelector('#panelContainer button#panelSaveSelected:not(.hide)');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
let css = document.createElement('style');
css.innerText = 'body{opacity:0!important;pointer-events:none!important;}';
css.setAttribute('id', 'vktgytywnpohtlutzkebaunetlurwlcj');
if (document.head !== null) {
document.head.appendChild(css);
}
window.setTimeout(function () {
let csscheck1 = document.getElementById('vktgytywnpohtlutzkebaunetlurwlcj');
if (csscheck1 !== null) {
csscheck1.remove();
}
}, 5000);
}
// trustcommander.net
if (window.location.href.startsWith('https://cdn.trustcommander.net/privacy-center/template/index.htm')) {
console.log('[Cookie auto decline] Detected: trustcommander.net (iFrame)');
cookiebannerstatus.anbieter = 'trustcommander.net (iFrame)';
advancedrun = false;
if (cookieeinstellung === 'funktional') {
const personalisierung = document.querySelector('.category-container > .col-sm-3:has(+ .col-sm-3:last-child) button.btn-switch-no.btn-primary');
if (personalisierung) {
personalisierung.click();
}
}
speichern = document.querySelector('#privacy-cat-modal button.btn-primary:is([title*="estätigen"], [title*="peichern"])');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// Contentpass iFrame
if (window.location.href.startsWith('https://cp.') && window.location.href.includes('/first-layer/?start&theme=')) {
console.log('[Cookie auto decline] Detected: Contentpass (iFrame)');
cookiebannerstatus.anbieter = 'Contentpass (iFrame)';
akzeptieren = document.querySelector('main.animation astro-island[props*="acceptAll"] > button');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// clym.io
if (window.location.host === 'widget-next.clym-sdk.net' || window.location.host === 'cf.clym-widget.net') {
console.log('[Cookie auto decline] Detected: clym.io (iFrame)');
cookiebannerstatus.anbieter = 'clym.io (iFrame)';
advancedrun = false;
ablehnen = document.querySelector('#clym-notice-layout button#handle-reject-all, #clym-app-layout button#handle-reject');
akzeptieren = document.querySelector('#clym-notice-layout button#handle-continue, #clym-app-layout button#handle-accept');
if (cookieeinstellung === 'funktional') {
speichern = document.querySelector('#clym-notice-layout button#handle-continue, #clym-app-layout button#handle-accept');
switchesdelay++;
const boxen = document.querySelectorAll('[id^="clym-"] ul > li > label:not([data-disabled="true"])');
for (let i = 0; i < boxen.length; i++) {
const b = boxen[i].querySelector('p');
if (knöpfetextcheck(b) === 'funktionaltext') {
const checkbox = boxen[i].querySelector('input[type="checkbox"]:not([disabled], :checked)');
if (checkbox) {
checkbox.click();
}
}
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
}
// iframe klicker ENDE
// #cmpbox (consensu.org, consentmanager.net)
const cmpbox = document.querySelector('#cmpbox.cmpbox');
if (cmpbox) {
console.log('[Cookie auto decline] Detected: #cmpbox (consensu.org, consentmanager.net)');
cookiebannerstatus.anbieter = '#cmpbox (consensu.org, consentmanager.net)';
advancedrun = false;
ablehnen = cmpbox.querySelector('a.cmptxt_btn_no[role="button"]');
speichern = cmpbox.querySelector('a.cmptxt_btn_save');
const akzeptierenknöpfe = cmpbox.querySelectorAll('a.cmptxt_btn_yes[role="button"], .ck-btn-wrapper > button.ck-btn-primary[onclick]');
for (let i = 0; i < akzeptierenknöpfe.length; i++) {
if (akzeptierenknöpfe[i].checkVisibility()) {
akzeptieren = akzeptierenknöpfe[i];
}
}
const cookiebannertext = cmpbox.innerText.toLowerCase();
if (!cookiebannertext.includes('kostenfrei mit werb') && !cookiebannertext.includes('contentpass') && !cookiebannertext.includes('werbevideo') && !cookiebannertext.includes('pur-abo') && !cookiebannertext.includes('pur abo') && !cookiebannertext.includes('abonnement')) {
einstellungen = cmpbox.querySelector('a.cmptxt_btn_settings[role="button"], a.cmptxt_btn_custom');
}
if (cookieeinstellung === 'funktional') {
switchesdelay++;
const boxen = cmpbox.querySelectorAll(':is(tr, .cmpwelcomeprps):has(a[role="checkbox"])');
for (let i = 0; i < boxen.length; i++) {
const b = boxen[i].querySelector('span[id^="cmpboxvendname"], td.cmpvendname, .cmpwelcomeprpstxt');
if (knöpfetextcheck(b) === 'funktionaltext') {
const checkbox = boxen[i].querySelector('a[role="checkbox"][aria-checked="false"]:not([disabled], :checked)');
if (checkbox) {
checkbox.click();
}
}
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// #cmpbox (consensu.org, consentmanager.net) shadowroot
const cmpboxshadowroot = document.querySelector('#cmpwrapper.cmpwrapper');
if (cmpboxshadowroot) {
console.log('[Cookie auto decline] Detected: #cmpbox shadowroot (consensu.org, consentmanager.net)');
cookiebannerstatus.anbieter = '#cmpbox shadowroot (consensu.org, consentmanager.net)';
const contentpasscheck = cmpboxshadowroot.shadowRoot.querySelectorAll('a[class*="btn"]:not(.cmpmorelink), button');
let contentpassvorhanden = false;
for (let i = 0; i < contentpasscheck.length; i++) {
if (paybuttons(contentpasscheck[i])) {
contentpassvorhanden = true;
}
}
if (!contentpassvorhanden) {
ablehnen = cmpboxshadowroot.shadowRoot.querySelector('#cmpbox a.cmptxt_btn_no[role="button"], .cmpboxbtnsave[role="button"]');
const einstellungenknöpfe = cmpboxshadowroot.shadowRoot.querySelectorAll('a[onclick^="__cmp(\'showScreenAdvanced\')"], #cmpwelcomebtncustom a.cmpboxbtncustom, a.cmptxt_btn_custom');
for (let i = 0; i < einstellungenknöpfe.length; i++) {
if (einstellungenknöpfe[i].checkVisibility()) {
einstellungen = einstellungenknöpfe[i];
}
}
if (cookieeinstellung === 'funktional') {
switchesdelay += 0.5;
const boxen = cmpboxshadowroot.shadowRoot.querySelectorAll('.cmpwelcomeprps, .cmpboxnaviitem');
for (let i = 0; i < boxen.length; i++) {
const b = boxen[i].querySelector('label, .cmpboxnaviitemtxt');
if (knöpfetextcheck(b) === 'funktionaltext') {
const checkbox = boxen[i].querySelector('a[role="checkbox"][aria-checked="false"]:not([disabled], :checked)');
if (checkbox) {
checkbox.click();
}
}
}
}
speichern = cmpboxshadowroot.shadowRoot.querySelector('a.cmptxt_btn_save, a.cmptxt_btn_save2');
}
akzeptieren = cmpboxshadowroot.shadowRoot.querySelector('a.cmptxt_btn_yes[role="button"]');
if (window.location.host.endsWith('.nl')) {
const akzeptierenknopf = cmpboxshadowroot.shadowRoot.querySelector('a.cmpboxbtnyescustom2[role="button"]');
if (akzeptierenknopf && akzeptierenknopf.checkVisibility() && akzeptierenknopf.innerText.toLowerCase() === 'akkoord, ik ben onder 24') {
if (cookieeinstellung === 'akzeptieren') {
console.log('[Cookie auto decline] Cookie Banner akzeptiert.');
cookiebannerstatus.knopfstatus = 'akzeptiert';
akzeptierenknopf.click();
}
einstellungen = cmpboxshadowroot.shadowRoot.querySelector('a.cmptxt_btn_settings');
speichern = cmpboxshadowroot.shadowRoot.querySelector('a.cmptxt_btn_save, a.cmptxt_btn_save2');
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// Contentpass (obfuscated)
const contentpass = document.querySelector('body > div[data-nosnippet][translate] > div:first-child:not([class], [id]) > div[class^="_"]:not([id]):has(a[href*="datenschutz"]), body > div:first-child + div[data-nosnippet][translate] > div:first-child > div[class^="_"]:not([id]):has(a[href*="datenschutz"])');
if (contentpass) {
console.log('[Cookie auto decline] Detected: Contentpass (obfuscated)');
cookiebannerstatus.anbieter = 'Contentpass (obfuscated)';
akzeptieren = contentpass.querySelector('a[class^="_"][href^="http"][rel="noopener noreferrer"][target="_self"]');
if (akzeptieren.innerText.toLowerCase().endsWith('weiter')) {
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
}
// opencmp.net
const opencmp = document.querySelector('script#open-cmp-stub[src*="cmp-stub"]');
if (opencmp && document.cookie.includes('euconsent-v2') === false) {
findconsentintervalzahl = 502;
findconsentintervalzahländern();
console.log('[Cookie auto decline] Detected: opencmp.net');
cookiebannerstatus.anbieter = 'opencmp.net';
const cookiecontainer = document.getElementsByClassName('cmp-root-container');
if (cookiecontainer.length > 0) {
akzeptieren = document.querySelector('.cmp-root-container').shadowRoot.querySelector('.cmp-button-accept-all');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
}
// usercentrics.eu
const usercentrics = document.querySelector('[id^="usercentrics-"]:not(script), [class="aa-first-layer cxenseignore"]');
const usercentricsscript = document.querySelector('script[src*="usercentrics.eu/"]');
if (usercentrics && usercentricsscript && localStorage.getItem('uc_user_interaction') !== true) {
findconsentintervalzahl = 502;
findconsentintervalzahländern();
console.log('[Cookie auto decline] Detected: usercentrics');
cookiebannerstatus.anbieter = 'usercentrics';
advancedrun = false;
if (usercentrics.shadowRoot) {
ablehnen = usercentrics.shadowRoot.querySelector('button[class^="sc-"][data-testid="uc-deny-all-button"][role="button"], button#deny');
einstellungen = usercentrics.shadowRoot.querySelector('button[data-testid^="uc-customize-"][style], button.uc-more-button, button[data-testid^="uc-more-"], button[data-testid="uc-customize-anchor"]:not([aria-label="Anbieterliste"]), a#uc-more-link[data-action-type="more"]');
akzeptieren = usercentrics.shadowRoot.querySelector('button[data-testid="uc-accept-all-button"], button#accept');
if (!einstellungen || cookieeinstellung === 'ablehnen') {
speichern = usercentrics.shadowRoot.querySelector('button[data-testid="uc-save-button"], button#save.uc-save-button, button[class^="sc-"][data-testid="uc-save-button"][role="button"]');
}
if (cookieeinstellung === 'funktional') {
if (bereitsgeklickt) {
if (usercentrics.shadowRoot.querySelector('[data-testid="uc-tcf-purposes-expandable"]')) {
switchesdelay += 0.5;
} else {
switchesdelay++;
}
}
const boxen = usercentrics.shadowRoot.querySelectorAll('.uc-expandable-card, [data-testid="uc-expandable-card"], [data-testid="uc-tcf-special-features-expandable"], [data-testid="uc-tcf-purposes-expandable"]');
for (let i = 0; i < boxen.length; i++) {
const b = boxen[i].querySelector('.uc-card-title, button > div[id]:first-child');
if (boxen[i].checkVisibility() && knöpfetextcheck(b) === 'funktionaltext') {
const switchh = boxen[i].querySelector('button[role="switch"][aria-checked="false"]');
if (switchh && switchh.checkVisibility()) {
switchh.click();
}
}
}
}
} else {
akzeptieren = document.querySelector('button.aa-first-layer__button[onclick^="accept"], button#uc-btn-accept-banner');
ablehnen = document.querySelector('button#uc-btn-deny-banner');
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// usercentrics.eu 2
const usercentrics2 = document.getElementById('comspace-usercentrics');
const usercentricsframe = document.querySelector('iframe#uc-cross-domain-bridge[src^="https://app.usercentrics.eu/browser-sdk/"]');
if (usercentrics2 && usercentricsframe && localStorage.getItem('uc_user_interaction') !== true) {
console.log('[Cookie auto decline] Detected: usercentrics2');
cookiebannerstatus.anbieter = 'usercentrics';
speichern = usercentrics2.querySelector('button.comspace-usercentrics--button');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// gatekeeperconsent.com
const gatekeeperconsent = document.querySelector('script[src="https://privacy.gatekeeperconsent.com/tcf2_stub.js"]');
if (gatekeeperconsent && document.cookie.includes('ezCMPCookieConsent') === false) {
console.log('[Cookie auto decline] Detected: gatekeeperconsent.com');
cookiebannerstatus.anbieter = 'gatekeeperconsent.com';
ablehnen = document.querySelector('button#ez-reject-all');
einstellungen = document.querySelector('button#ez-manage-settings');
if (cookieeinstellung === 'funktional') {
const boxen = document.querySelectorAll('#ez-cookie-dialog .ez-cmp-purpose');
for (let i = 0; i < boxen.length; i++) {
if (knöpfetextcheck(boxen[i]) === 'funktionaltext') {
const switchh = boxen[i].querySelector('input[type="checkbox"].ez-cmp-purpose-consent-checkbox:not(:checked)');
if (switchh && switchh.checkVisibility()) {
switchh.click();
}
}
}
}
speichern = document.querySelector('button#ez-save-settings');
akzeptieren = document.querySelector('#ez-cookie-dialog button#ez-accept-all');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// cookiebot.com
const cookiebot = document.querySelector('div[id*="Cookiebot"], div#cookiebot, #cookiebanner[name="cookiebanner"][ng-non-bindable], #cookieBotLayer, [data-template*="cookiebot"]');
if (cookiebot && document.cookie.includes('%2Cutc:16') === false) {
console.log('[Cookie auto decline] Detected: cookiebot.com');
cookiebannerstatus.anbieter = 'cookiebot.com';
ablehnen = cookiebot.querySelector('button.cint-cookiebot__buttons__deny, :not([style="display: none;"]) > #CybotCookiebotDialogBodyButtonDecline, button.cookie-alert-decline-button, [class*="cookie"] a[href="javascript:void(0)"][onclick="Cookiebot.dialog.submitDecline()"], #CybotCookiebotDialogBodyLevelButtonLevelOptinDeclineAll, button[value="reject"]');
speichern = cookiebot.querySelector(':is([id*="OptinAllowallSelection"], [id*="AcceptSelected"], [onclick*="submitConsent"]):is(button, a, span)');
einstellungen = cookiebot.querySelector('#CybotCookiebotDialogBodyLevelButtonCustomize, #CybotCookiebotDialogBodyButtonDetails, #CybotCookiebotDialogBodyLevelDetailsButton, a[onclick="CookieSettingsManage(true)"]');
if (cookieeinstellung === 'funktional') {
const switchh = cookiebot.querySelector('input[type="checkbox"]#CybotCookiebotDialogBodyLevelButtonPreferences:not(:checked)');
if (switchh && switchh.checkVisibility()) {
switchh.click();
}
}
if (domainohnewww === 'eu-schwerbehinderung.eu') {
ablehnen = undefined;
einstellungen = undefined;
speichern = undefined;
}
akzeptieren = cookiebot.querySelector('button#CybotCookiebotDialogBodyButtonAccept, #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll, a[onclick="CookieSettingsAcceptAll()"], button[value="accept"]');
nureinklickeinstellungen = true;
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// trustarc.com
const trustarc = document.querySelector('.truste_box_overlay, #truste-consent-track');
if (trustarc && document.cookie.includes('notice_gdpr_prefs=') === false && document.querySelector('script[src^="https://consent.trustarc.com/asset/notice.js/v/"]')) {
console.log('[Cookie auto decline] Detected: trustarc.com');
cookiebannerstatus.anbieter = 'trustarc.com';
nureinklickeinstellungen = true;
advancedrun = false;
if (bereitsgeklickt === false) {
ablehnen = trustarc.querySelector('button#truste-consent-required, a#truste-consent-required');
akzeptieren = trustarc.querySelector('button#truste-consent-button, a#truste-consent-button');
}
einstellungen = trustarc.querySelector('button#truste-show-consent, a#truste-show-consent');
let shadowroot = trustarc.querySelector('.truste_popframe');
if (shadowroot && shadowroot.shadowRoot) {
shadowroot = shadowroot.shadowRoot;
if (bereitsgeklickt === false) {
ablehnen = shadowroot.querySelector('.declineAllButtonLower, a.required[role="button"], a.rejectAll');
akzeptieren = shadowroot.querySelector('.acceptAllButtonLower, a.call[role="button"], a.acceptAll');
einstellungen = shadowroot.querySelector('a.shp');
window.setTimeout(function () {
const bestätigungsfenster = shadowroot.querySelector('a#gwt-debug-close_id[role="button"], button#gwt-debug-close_id');
if (bestätigungsfenster && bestätigungsfenster.checkVisibility) {
bestätigungsfenster.click();
}
}, 1002);
}
}
if (cookieeinstellung === 'funktional') {
let einstellungshadowroot = document.querySelector('.truste_box_overlay .truste_popframe');
if (einstellungshadowroot && einstellungshadowroot.shadowRoot) {
einstellungshadowroot = einstellungshadowroot.shadowRoot;
const alleswitchesablehnen = einstellungshadowroot.querySelectorAll('[aria-disabled="false"]:is(.consentno, [class^="gwt-"].on):not([aria-pressed="true"], [aria-checked="true"], [disabled], .active, .activeConsent, [rtayztwplpnfftousydd])');
for (let i = 0; i < alleswitchesablehnen.length; i++) {
if (alleswitchesablehnen[i].checkVisibility()) {
alleswitchesablehnen[i].setAttribute('rtayztwplpnfftousydd', 'a');
alleswitchesablehnen[i].click();
}
}
const boxen = einstellungshadowroot.querySelectorAll('li.listItem, .categoryPanelAccessible, .cookiecat');
if (boxen.length >= 1) {
switchesdelay += 0.5;
}
for (let i = 0; i < boxen.length; i++) {
const b = boxen[i].querySelector(':is([translate][class="gwt-InlineHTML"], .purposesListText, h2, h3, .viewcookie):not([style="visibility: visible;"], [aria-pressed="true"], [aria-checked="true"], [disabled], .active, .activeConsent, .on, .off)');
if (knöpfetextcheck(b) === 'funktionaltext') {
const checkbox = boxen[i].querySelector('[aria-disabled="false"]:is(.consentyes, [class^="gwt-"].off):not([aria-pressed="true"], [aria-checked="true"], [disabled], .active, .activeConsent)');
if (checkbox) {
checkbox.setAttribute('rtayztwplpnfftousydd', 'a');
checkbox.click();
}
}
}
speichern = einstellungshadowroot.querySelector('a.saveAndExit, button.submitPreferencesButtonLower, a.submit[role="button"], button.submit');
if (switchesdelay >= 4) {
window.setTimeout(function () {
const bestätigungsfenster = einstellungshadowroot.querySelector('a#gwt-debug-close_id[role="button"], button#gwt-debug-close_id');
if (bestätigungsfenster && bestätigungsfenster.checkVisibility) {
bestätigungsfenster.click();
}
}, 1002);
}
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// real-cookie-banner-pro (devowl.io)
const realcookiebannerpro = document.querySelector('div[class^="a"][id^="a"][consent-skip-blocker][data-bg][style^="background-color"] > dialog.wp-exclude-emoji[aria-labelledby^="a"][open=""], div[id^="a"][class=""][data-bg][style*="background"] > [class="wp-exclude-emoji "][style*="display: flex; width: 100%; height: 100%;');
if (realcookiebannerpro && window.localStorage.getItem('real_cookie_banner-consent-queue-lock') === null && document.cookie.includes('%22main_essential%22%7D') === false) {
console.log('[Cookie auto decline] Detected: real-cookie-banner-pro (devowl.io)');
cookiebannerstatus.anbieter = 'real-cookie-banner-pro (devowl.io)';
advancedrun = false;
const knöpfe = realcookiebannerpro.querySelectorAll('a[href="#"][role="button"], div[id^="bnnr-body-"] > div[style^="text-decoration:"][style*="display: flex; align-items: center; justify-content: center; "] > span');
for (let i = 0; i < knöpfe.length; i++) {
const textgeprüft = knöpfetextcheck(knöpfe[i]);
if (textgeprüft === 'ablehntext') {
ablehnen = knöpfe[i];
} else if (textgeprüft === 'optionstext') {
einstellungen = knöpfe[i];
} else if (textgeprüft === 'speichertext') {
speichern = knöpfe[i];
} else if (textgeprüft === 'akzeptiertext') {
akzeptieren = knöpfe[i];
}
}
if (cookieeinstellung === 'funktional') {
const checkboxentext = realcookiebannerpro.querySelectorAll('fieldset > span > label > span, div[id^="bnnr-body-"] > div[style="margin-top: 10px; clear: both;"] > div > div > span');
for (let i = 0; i < checkboxentext.length; i++) {
if (knöpfetextcheck(checkboxentext[i]) === 'funktionaltext') {
let checkbox = checkboxentext[i].parentElement;
if (checkbox) {
checkbox = checkbox.querySelector('fieldset input[type="checkbox"]:not([disabled], :checked), div[style*="color: rgb(240, 240, 240);"]');
}
if (checkbox && checkbox.checkVisibility()) {
checkbox.click();
}
}
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// waconcookiemanagement
const waconcookiemanagement = document.querySelector('.waconcookiemanagement-cookiebar, [class^="waconcookiemanagement"]:not(.firsthidden, [style="display: none;"])');
if (waconcookiemanagement && document.cookie.includes('waconcookiemanagement') === false) {
console.log('[Cookie auto decline] Detected: waconcookiemanagement');
cookiebannerstatus.anbieter = 'waconcookiemanagement';
ablehnen = waconcookiemanagement.querySelector('a#data-cookie-refuse, span.cookie-refuse:not(:has(button)), button#data-cookie-refuse');
speichern = document.querySelector('.waconcookiemanagement:not([style="display: none;"]) p.cookie-save:not(:has(button)), p.cookie-save > button');
einstellungen = waconcookiemanagement.querySelector('p.cookie-management:not(:has(button)), button#data-cookie-individual');
if (cookieeinstellung === 'funktional') {
const switchh = waconcookiemanagement.querySelector('.cookiecat-e.cookie-off');
if (switchh && switchh.checkVisibility()) {
switchh.click();
}
}
akzeptieren = waconcookiemanagement.querySelector('p.cookie-accept, a[data-cookie-accept], span.cookie-accept:not(:has(> a[data-cookie-accept], button)), button[data-cookie-accept]');
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// onetrust.com
const onetrust = document.querySelector('#onetrust-consent-sdk:has(> * > *), #onetrust-cookie-popup');
if (onetrust) {
console.log('[Cookie auto decline] Detected: onetrust.com');
cookiebannerstatus.anbieter = 'onetrust.com';
nureinklickeinstellungen = true;
ablehnen = document.querySelector('#onetrust-banner-sdk #onetrust-button-group button#onetrust-reject-all-handler, #cookie-disclosure button#cookie-disclosure-reject');
einstellungen = document.querySelector('#onetrust-banner-sdk #onetrust-button-group button#onetrust-pc-btn-handler, button#cookie-onetrust-show-info');
speichern = document.querySelector('button.save-preference-btn-handler');
akzeptieren = document.querySelector('#onetrust-accept-btn-handler, [onclick="OneTrust.AllowAll()"], button#cookie-onetrust-accept-all');
if (cookieeinstellung === 'funktional') {
switchesdelay++;
const boxen = document.querySelectorAll('#onetrust-consent-sdk :is(.category-menu-switch-handler, .accordion-text.category-item)');
for (let i = 0; i < boxen.length; i++) {
if (knöpfetextcheck(boxen[i]) === 'funktionaltext' && boxen[i].checkVisibility()) {
boxen[i].click();
}
}
let beschreibungen = onetrust.querySelectorAll('[class]:has(> h4[id^="ot-"])');
if (beschreibungen.length === 0) {
beschreibungen = document.querySelectorAll('#onetrust-consent-sdk .ot-grp-hdr1:has(> .ot-cat-header)');
}
for (let i = 0; i < beschreibungen.length; i++) {
if (knöpfetextcheck(beschreibungen[i]) === 'funktionaltext') {
const switchh = beschreibungen[i].querySelector('input.category-switch-handler[type="checkbox"]:not([disabled], :checked)');
if (switchh && switchh.checkVisibility()) {
switchh.click();
}
}
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// https://wordpress.org/plugins/complianz-gdpr
const complianzgdpr = document.querySelector('body > #cmplz-cookiebanner-container');
if (complianzgdpr && document.cookie.includes('cmplz_functional') === false) {
console.log('[Cookie auto decline] https://wordpress.org/plugins/complianz-gdpr');
cookiebannerstatus.anbieter = 'https://wordpress.org/plugins/complianz-gdpr';
advancedrun = false;
ablehnen = complianzgdpr.querySelector('.cmplz-buttons > button.cmplz-deny');
einstellungen = complianzgdpr.querySelector('button.cmplz-view-preferences');
speichern = complianzgdpr.querySelector('.cmplz-buttons > button.cmplz-save-preferences');
akzeptieren = complianzgdpr.querySelector('button.cmplz-accept');
if (cookieeinstellung === 'funktional') {
const switchh = complianzgdpr.querySelector('input[data-category="cmplz_preferences"][type="checkbox"]:not([disabled], :checked)');
if (switchh && switchh.checkVisibility()) {
switchh.click();
}
const einstellungsurlknopf = complianzgdpr.querySelector('a.cmplz-manage-options[href^="http"][data-relative_url="#cmplz-manage-consent-container"]');
if (einstellungsurlknopf) {
cookiebannerstatus.knopfstatus = 'gespeichert';
document.cookie = 'cmplz_banner-status=dismissed;' + nc;
document.cookie = 'cmplz_functional=allow;' + nc;
document.cookie = 'cmplz_preferences=allow;' + nc;
document.cookie = 'cmplz_marketing=deny;' + nc;
document.cookie = 'cmplz_statistics=deny;' + nc;
document.cookie = 'cmplz_saved_categories=["preferences","functional"];' + nc;
beenden();
window.location.reload();
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// borlabs.io
const borlabs = document.querySelector('#BorlabsCookieBox:not(:empty), div[class="rbrl-overlay rbrl-dialog-holder"]:not([style="display: none;"]), .rbrl-settings-holder');
if (borlabs && document.cookie.includes('essential%22%3A%5B%22borlabs-cookie') === false) {
nureinklickeinstellungen = true;
findconsentintervalzahl = 802;
findconsentintervalzahländern();
console.log('[Cookie auto decline] Detected: borlabs.io');
cookiebannerstatus.anbieter = 'borlabs.io';
ablehnen = borlabs.querySelector('button.brlbs-btn-accept-only-essential, .rbrl-accept-essential');
einstellungen = borlabs.querySelector('button#CookieBoxPreferencesButton, button.rbrl-open-settings, .cookie-box > .container:not([style="height: 0px; opacity: 0;"]) a[role="button"][data-borlabs-cookie-actions="preferences"]');
speichern = borlabs.querySelector('button#CookieBoxSaveButton, button.rbrl-save-settings, .not-visible[style*="opacity: 1;"] a#CookiePrefSave[role="button"][data-borlabs-cookie-actions="save"]');
akzeptieren = borlabs.querySelector('button.brlbs-btn-accept-all, button.rbrl-accept-all, a._brlbs-btn-accept-all');
if (cookieeinstellung === 'funktional') {
advancedrun = false;
const switchh = borlabs.querySelector('input[type="checkbox"]:not([disabled], :checked):is(#external-media, #preferences-service-group-external-media)');
if (switchh) {
switchh.click();
}
const tcfswitches = borlabs.querySelectorAll('input[id^="tcf-purpose-"][type="checkbox"]:not([disabled], :checked)');
for (let i = 0; i < tcfswitches.length; i++) {
if (knöpfetextcheck(tcfswitches[i]) === 'funktionaltext') {
tcfswitches[i].click();
}
}
const tcfswitches2 = borlabs.querySelectorAll('#BorlabsCookieTabPurposes [data-borlabs-cookie-iabtcf] label:has(> span.sr-only + input[type="checkbox"])');
for (let i = 0; i < tcfswitches2.length; i++) {
if (knöpfetextcheck(tcfswitches2[i]) === 'funktionaltext') {
const switchh2 = tcfswitches2[i].querySelector('input[type="checkbox"][data-borlabs-cookie-switch]:not([disabled], :checked)');
if (switchh2) {
switchh2.click();
}
}
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
} else if(document.querySelector('script#borlabs-cookie-config-js') && document.cookie.includes('essential%22%3A%5B%22borlabs-cookie') === false && document.body.getBoundingClientRect().y === 0) {
// Der Cookie Banner erscheint oft erst nach einer Nutzerinteraktion auf der Seite (z.b. Klicken, Scrollen). Das Addon sucht nun beliebig lange Borlabs Cookie Banner.
findconsentcounter--;
}
// osano.com
const osano = document.querySelector('.osano-cm-window__dialog:not(.osano-cm-dialog--hidden), .osano-cm-window__info-dialog:not([aria-hidden="true"])');
if (osano && document.cookie.includes('osano_') === false) {
console.log('[Cookie auto decline] Detected: osano.com');
cookiebannerstatus.anbieter = 'osano.com';
ablehnen = osano.querySelector('button.osano-cm-denyAll');
einstellungen = osano.querySelector('.osano-cm-manage');
speichern = osano.querySelector('button.osano-cm-save');
akzeptieren = osano.querySelector('button.osano-cm-accept-all');
if (cookieeinstellung === 'funktional') {
const funktionalswitches = osano.querySelectorAll('input[type="checkbox"]:not([disabled], :checked):is(#osano-cm-dialog-toggle--category_STORAGE, #osano-cm-dialog-toggle--category_PERSONALIZATION, #osano-cm-drawer-toggle--category_PERSONALIZATION)');
for (let i = 0; i < funktionalswitches.length; i++) {
funktionalswitches[i].click();
}
const nonfunktionalswitches = osano.querySelectorAll('input[type="checkbox"]:not([disabled]):checked:is(#osano-cm-dialog-toggle--category_MARKETING, #osano-cm-dialog-toggle--category_ANALYTICS)');
for (let i = 0; i < nonfunktionalswitches.length; i++) {
nonfunktionalswitches[i].click();
}
}
klickecookiebutton(ablehnen, speichern, einstellungen, schließen, akzeptieren, nureinklickeinstellungen);
}
// didomi.io
const didomi = document.querySelector('#didomi-host');
if (didomi) {
let didomieinstellungenignorieren = false;
console.log('[Cookie auto decline] Detected: didomi.io');
cookiebannerstatus.anbieter = 'didomi.io';