summaryrefslogtreecommitdiff
path: root/backend/instance/nocookies/data/js/common.js
blob: d828660b6c42ffdcd2602302eaafc2a8a34215ed (plain)
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
(function() {

	let searchPairs = {
		'.wp-exclude-emoji': [
			'div[id^="bnnr"] > div[style*="; order: 1"] span',
			'a[data-order]:nth-child(2) span'
		],
		
		'#usercentrics-root': [
			'div[data-testid="uc-buttons-container"] > button:first-child',
			'div[data-testid="first-line-buttons"] > button:first-child'
		],
		
		'#onetrust-consent-sdk': [
			'.onetrust-pc-dark-filter:not([class*="hide"]):not([style*="none"]) ~ #onetrust-pc-sdk .ot-pc-refuse-all-handler',
			'#onetrust-banner-sdk:not([style*="none"]) .ot-pc-refuse-all-handler',
			'#onetrust-banner-sdk:not([style*="none"]) #onetrust-reject-all-handler',
			
			'.onetrust-pc-dark-filter:not([class*="hide"]):not([style*="none"]) + #onetrust-banner-sdk #onetrust-button-group-parent:not(.has-reject-all-button) #onetrust-pc-btn-handler',
			'.onetrust-pc-dark-filter:not([class*="hide"]):not([style*="none"]) ~ #onetrust-pc-sdk .onetrust-close-btn-handler:first-child'
		],
		
		'.message-container': [
			'button.sp_choice_type_12:not(.cmp-no-pur-privacy-btn)',
			'.sp_choice_type_SAVE_AND_EXIT',
			'div:not(.header) > .sp_choice_type_11:only-of-type:not(:only-child)',
			'#notice > div:nth-child(3) .message-column:first-child:not(:only-child) .sp_choice_type_11',
			'.sp_choice_type_11.button-responsive-primary',
			'.sp_choice_type_13'
		],
		
		'.mfp-wrap.mfp-ready': [
			'.cookieselection-confirm-selection',
			'#gdpr_understandBtn',
			'#cookiebanner .button-row > :not(.consentToAll)',
			'div[id*="cookiebanner"] .confirmSelection',
			'#cookieConsent .btn[data-cookie="accepted"]',
			'.avia-cookie-close-bar',
			'.cookies-save-and-close-btn',
			'a[onclick*="SaveCookieSettings"]',
			'.cookie-consent .accept-selection',
			'#cookie-consent .btn[name*="necessary"]'
		],
		
		'.reveal-overlay[style*="block"]': [
			'[data-cookieman-save]:not([data-cookieman-accept-all]):not(.hide)',
			'#CookieModalStrictOnlyLink',
			'#dsgvoLayer[style*="block"] #dsgvo_deny',
			'#cookies #c-deny'
		],
		
		'.cc-window:not(.cc-invisible)': [
			'.cc-checkboxes-container .cc-allow',
			'.cc-privacy-settings .cc-privacy-settings-compliance:last-child .cc-btn',
			'.accept-as-is'
		],
		
		'#__tealiumGDPRecModal': [
			'#privacy_pref_optin',
			'#consent_prompt_preferences',
			'#consent_prompt_submit',
			'.container-cookie-modal-footer-refuse',
			'.cl-btn--reject-all'
		],
		
		'#__tealiumGDPRcpPrefs': [
			'#privacy_prompt[style*="block"] #preferences_prompt_decline',
			'.consent-manager[style*="block"] #cm-acceptNone',
			'.consent-manager[style*="block"] #consent_wall_optout',
			'.tiq_cm[style*="block"] #deny_full_submit_1',
			'#preferences_prompt_submit'
		],
		
		'.fancybox-lock': [
			'.fancybox-opened .bcGDPR .bcOpenPrivacySettings',
			'.fancybox-opened .bcGDPR .bcRadioRefuse',
			'.fancybox-opened .bcGDPR #bcSubmitConsent',
			'.fancybox-opened .bcGDPR .bcpConsentCancelButton',
			
			'.fancybox-opened.cookie-gdpr-wrap .btn[data-action="deny-all"]',
			'.fancybox-opened #cookie-consent button[data-accept="minimum"]'
		],
		
		'.fancybox-is-open': [
			'#cookie-consent .cc-page-2 #cc-set-cookie',
			'.consent-modal .btn[data-action="save-preferences"]',
			'#acceptCookiesId[style*="block"] .cookieDecline',
			'#cookies-modal-id[style*="block"] .js-decline'
		],
		
		'.pum-open': [
			'.pum-active[data-popmake*="slug\\":\\"cookie"] .pum-close',
			'.pum-active[data-popmake*="rodo"] .pum-close',
			'.pum-active[data-popmake*="cookie-policy"] .pum-close',
			'.pum-active[data-popmake*="cookie-zustimmung"] .pum-close',
			'.pum-active[data-popmake*="cookie-consent"] .pum-close',
			'.pum-active[data-popmake*="uso-cookie"] .pum-close',
			'.pum-active[data-popmake*="cookie-notice"] .pum-close',
			'.pum-active[data-popmake*="cookie-banner"] .pum-close',
			'.pum-active[data-popmake*="cookie-pop"] .pum-close',
			'.pum-active[data-popmake*="cookies-pop"] .pum-close',
			'.pum-active[data-popmake*="informativa-cookie"] .pum-close',
			'.pum-active[data-popmake*="assenso-cookie"] .pum-close',
			'.pum-active[data-popmake*="pryvatnast"] .pum-close'
		],
		
		'.modal-open': [
			'#dialog[style*="block"] #btn-configure-cookies',
			'#dialog[style*="block"] #user_cookies_form_save + #refuse-all-cookies',
			
			'#PrivacyCategoryAlert[style*="block"] .btn[data-id="ConfirmSettings"]',
			'#cookie-control-modal[style*="block"] .js-toggle-cookie-control',
			'.kmt-ckextmodal[style*="block"] .btn[href*="accept"]',
			'.cookie-alert[style*="block"] .btn-info[data-dismiss]',
			'#cookiesplus-bas[style*="block"] .btn[name="save-basic"]',
			'#mndCookieModal[style*="block"] ~ .modal .mnd-btn-save-settings',
			'#modal-cookie-notice[style*="block"] .accept-settings',
			'.modal.show button[id*="cookie-consent-accept-selected"]',
			'#cookie-manager-window[style*="block"] #accept-selected',
			'.ck-user-cookie-consent-modal #js-save-cookie-settings',
			'#cookie-consent-modal[style*="block"] ~ .modal #cc-save-preferences',
 			'#privacy-consent[style*="block"] #current-settings-save',
			'#modal-privacy-settings[style*="block"] .btn[data-grant="selected"]'
		],
		
		'.modal[style*="block"]': [
			'#btn-cookie-config',
			'#btn-save-config',
			
			'#ccSettingButton + button:not([id*="AcceptAll"]):not([disabled])',
			'.cookie_actions .btn[onclick*="saveBasic"]',
			'#btnCookieSettingsSaveSettings',
			'#cookie-setselected',
			'#rodo_form .btn',
			'#cookieNoticeForm #saveCookies',
			'.btn[onclick*="saveCookieSettings"]',
			'.btn[class*="essential_cookies"]',
			'.btn[id*="essential_cookies"]',
			'.btn.js-offcanvas-cookie-submit',
			'.btn#cookie-save-selected',
			'.bcee-cookies-manager-deny-all',
			'.consent-banner-confirmation-button.btn-default',
			'a[onclick="setConsentSelect()"]',
			'.container_acceptcookies .btn[name="save"]',
			'#cookieSelectForm .btn[type="submit"]',
			'#component-c-accept-required',
			'#aceptarCookiesObligatorias',
			'.btn[href="#cookieman-settings"]',
			'.btn[data-target="#cookieman-settings"]',
			'[data-cookieman-settings-trigger-button]',
			'[data-cookieman-save]:not([data-cookieman-accept-all]):not([style*="none"])',
			'.cookie-manager-save',
			'.adapt-cookies .js-save-preferences',
			'#manageCookies ~ #confirmCookies',
			'a[href*="acceptOnlyEssentinal"]',
			'.modal-cookie #submitSelected',
			'#btn_cookie_save',
			'.btn[onclick*="SetEssentialCookies"]',
			'#cookie-consent-button-submit-selection',
			'.btn[data-bind*="modal.cookie_consent.save"]',
			'button[id*="cookie-consent-accept-selected"]',
			'.cookieselection-confirm-selection',
			'#cookie-consent-acceptRequired',
			'.b-cookie-consent .js-cookie-decline',
			'.cookie-consent-option-icon[ng-click*="required"]',
			'#saveCookieOnlyMandatory',
			'.js-accept-necessary-btn',
			'#cookies-reject-btn',
			'.cookie-accept-selection',
			'#cookieconsent_essentiell',
			'#button-cookie-individual-save',
			'#cookiesModalRefuse',
			'#declineCookieButton',
			'.btn-cookies-save',
			'.ModalCookies__deny',
			'.gdcc-save-consent[data-gdcc-select="-"]',
			'#cookies-modal-save',
			'.btn[form*="trocookie"][value*="save"]',
			'.js-declineAllCookies',
			'#cookie-notification .saveselection',
			'.button-aceptar-configuracion-cookies',
			'.save-cookie-settings',
			'#btnCookieNecessary',
			'.btn.cookies-decline',
			'#cookieConsentConfigBtnDecline',
			'#continueWithoutAccepting',
			'#cookieSavingButton',
			'#gdpr-save-settings.btn',
			'.js-consent-btn-manage + .js-consent-btn-decline',
			'#cookiebar-decline',
			'button[data-omcookie-panel-save="min"]',
			'#cookieModuleRejectAll',
			'.refuseAllCookies',
			'#cookieDenyButton',
			'button[data-save-action="decline-all"]',
			
			'#bccs-buttonDoNotAgree',
			'#bccs-buttonAgreeRequired:first-child'
		]
	};
	
	let searchGroups = [
		'.qc-cmp2-summary-buttons button[mode="secondary"],\
		.qc-cmp2-buttons-desktop > button:first-child,\
		#didomi-popup .didomi-button-highlight:not([class*="paywall"]):not([class*="disagree"]),\
		#rgpd_video .rgpd-mask a[data-rgpd-consent],\
		.cli-barmodal-open #wt-cli-privacy-save-btn,\
		.js--modal[style*="block"] .cookie-permission--accept-button,\
		.gdpr-modal-rider .btn-cookieaccept,\
		.js-cookiewall #sel-test-accept-cookies-button,\
		#mpo[style*="block"] .submit.modal-privacy__btn[onclick*="privacyframe.accept"],\
		.lightbox--cookie-consent .btn-cta,\
		.lightbox.cookie-consent .cookie-consent-button-decline,\
		.js-modal-gdpr.is-active .btn[data-level="2"],\
		#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection,\
		#cookieNotificationModal.in .btn.accept-cookie,\
		.has-ccwindow .cc-compliance .cc-dismiss,\
		.ds2-cookie-disclaimer--slidedown .ds2-cookie-disclaimer-js--submit,\
		#mdlCookieCompliance.in .cookieClose,\
		#cookieModal.in .js-acceptDefaultCookie,\
		.c-cookiebutton .c-cookiebutton__close,\
		#normativa_cookies.in .btn,\
		#cookiewall.in .btn-primary,\
		.outerCookieBar .EuCookieBar__cookieButton,\
		#TOS-POPUP .rhododendron-popup__button--agree,\
		#cookie-wall #accept-cookies,\
		#popup-wrapper .button[href*="/cookies.consent.php"],\
		.reveal.cookies[style*="block"] button[click*="aceptaCookies"],\
		.mnd-cookie-modal[style*="block"] .btn.is--primary,\
		.cookieHandler.cookieHandler--modalOpen #acceptAllCookies,\
		.gdpr-modal--active .btn--primary,\
		#dpi-banner:not(.hidden) #btn-agree-cookie,\
		.gh-banner.gh-banner-active #gh-cookiebanner-close,\
		#mrktpref.notification-bar .btn-success,\
		#PopinGDPRCookie[style*="block"] .jsbd-popin-ok,\
		#modal-rodo.in .btn-primary,\
		.cookie-compliance-modal.in .btn-primary,\
		.cookieconsent.show .btn[data-dm*="accept"],\
		.cookie-wall-modal.in .btn.ja,\
		#modal-consent.in .modal-consent-accept,\
		.rodo #cookies.in .btn-primary,\
		.js-cookie-alert.in .js-cookie-alert-accept,\
		#modal_gdpr_intro_popup.in #gdpr-modal-btn-ok-agree,\
		#consentButtonContainer > button[onclick*="sendAndRedirect"],\
		#eu-consent[style*="block"] .btn.yes,\
		.modal--gdpr.is-open .js-gdpr-consent,\
		#cookiePopupModal.in .cookiepopup-agreed,\
		.polityka-cookie-rodo[style*="block"] .button-zgoda,\
		.ui-dialog.consent-modal[style*="block"] .js-btn-agree,\
		#up-cookie.active .button[onclick*="setCookiePreference"],\
		.RodoModal.in .close,\
		.consent-popup form[action*="cookie-consent"] .consent-popup__button,\
		#consent form[action*="cookie-consent"] .one-btn,\
		#cookiewall-wrapper .button[href*="accept"],\
		#cookieChoiceButtonAccept,\
		.mod-cookie-consent[style*="block"] .btn-all-cookies,\
		.c-layer--consent .layer-button--accept,\
		.button.button-ok[onclick*="acceptAVG"],\
		#meredithGdprConsentFormButton,\
		#advanced-cookie-modal.in .cookie-accept,\
		.show-modal .cookie-settings-manager-container .initial-dialog .js-accept-button,\
		.cookie-settings-manager-container .initial-dialog[style*="block"] .js-accept-button,\
		.gdprLightbox[data-module="gdprLightbox"] ._type_gdpr_agree,\
		.cookie.showa #Row1_Column1_Cell1_CookieSettings_AdvancedSaveAccept,\
		#core-cookie-container[style*="block"] .btn--agree,\
		.cookie-consent-modal._show .action-primary,\
		#dsgvoModal.show #dsvgo-banner__button,\
		.basicLightbox--visible #accept-all-gdpr,\
		#gdpr-modal.in .gdpr-modal__btn--accept,\
		.cookiehint .btn.cookieagree,\
		#cookiealert .modal.in .btn[href*="accept"],\
		#lml-data-consent-accept,\
		#CBCookieMsg.in .btn[onclick*="approveCookies"],\
		#cookiewall-container .button[name="submit"],\
		#cookie_disclaimer.in .cookie_disclaimer_button,\
		.m-cookie.iziModal[style*="block"] .m-cookie__save2.button,\
		kamino-cookie-policy .mat-raised-button,\
		#surbma-gpga-modal[style*="block"] button,\
		#GDPR.overlayBox .menuButton,\
		#cookiebar .cookie-selection-button.accept,\
		.modal.in .btn.close-modal-cookie,\
		#consent-module[style*="block"] #consent-module-text-button,\
		.modal #consentButton,\
		#consent-modal[style*="block"] .lm_modal__modal__content__body__buttons__ok,\
		.cookiesOverlay3Box #cookiesConsentOK,\
		.bemCookieOverlay--activePopup .bemCookieOverlay__btn--save,\
		#root main ~ div [data-gi-selector="reject-all-cookies"] ~ div a,\
		.cookies-management .cookies-deny,\
		.offcanvas.is-open .js-offcanvas-cookie-submit,\
		.force--consent.show--consent #cs_save__btn,\
		.force--consent.show--consent #s-sv-bn,\
		#cookieNoticeModal.vrm-reveal[style*="block"] .vrm-reveal__icon--close',
		
		'#cookie-modal.in .btn[onclick*="setCookie"],\
		div[class^="sp_veil"] + div[id^="sp_message"] > div[class^="sp_message"] > div[id^="sp_message_panel"]:first-child div[class^="sp_choices"] button:not([aria-label]):first-child,\
		div[class^="sp_veil"] + div[id^="sp_message"] #sp-tabindex-focus + div div[class^="sp_choices"] button[aria-label]:first-child + button,\
		#privacyPolicyInfo.active #acceptPrivacyPolicy,\
		.fade.in .btn.cookie-yes,\
		#cookie-disclaimer[style*="block"] .cc_btn_accept_all,\
		.reveal-overlay[style*="block"] #dsgvo .cc_btn_accept_all,\
		.reveal-overlay[style*="block"] #reveal-cookies .btn[data-save],\
		#manageCookieConsentDialog.in #btn-cookie-agreed,\
		.fancybox-opened #gdpr-yes,\
		#cookie_form #accepted,\
		#PrivacySettings.in .bootstrap-switch-id-PrivacySettingsAgreeToAll .bootstrap-switch-default,\
		#PrivacySettings.in .btn-privacy-settings--save,\
		#ccc[open] #ccc-recommended-settings,\
		form[action*="cookiewall"] .button-accept-cookies,\
		#dtcookie-container.is-on .dtcookie__accept,\
		.approve-btn[href*="setCookieAndRedirect"],\
		button[data-qa-entity="cookies.button"],\
		#_evidon_banner[style*="flex"] #_evidon-accept-button,\
		#_evidon_banner[style*="block"] #_evidon-accept-button,\
		#_evidon-banner[style*="block"] #_evidon-banner-acceptbutton,\
		.cookiewall .cookiewallBody .btn-approve,\
		#cookiewallModal.in .btn-approve,\
		.js-gdpr-consent-container .js-gdpr-consent-agree,\
		.qc-cmp-showing .qc-cmp-button[onclick],\
		.page-cookie-wall .cookie-wall__form .btn,\
		form[action*="cookieconsent"] #SubmitButton,\
		.md-content.show .tm-cookies-consent-accept,\
		.md-show.cookies-consent .tm-cookies-consent-accept,\
		.modal-window #gdpr-modal-agree,\
		.privacy-overlay.ui-dialog .button.confirm-button,\
		.wrapper.show-plack .top-view .button-wrapper .btn,\
		.cookie_btn_accept_all,\
		button#cookies-accept-button,\
		#cmp-message .cmp-button[onclick*="cookieAccept"],\
		.template-gdpr .gdpr[data-api*="onetrust.com"] .gdpr-form .btn,\
		.dialog .cookie-banner__btn-accept,\
		button#btn-accept-consent,\
		button#gdpr-consent-accept,\
		#modal-ley-cookies.in .button-text-ley-cookies,\
		.remodal-wrapper[style*="block"] .cookie-notice .remodal-close,\
		#cookie-wall:not([hidden]) #cookie-wall-accept,\
		#gdpr.modal.active #gdprNotice #accept,\
		.btn-accecpt-cookie,\
		#js-gdpr-accept:not(.cta),\
		.ck-modal--cookieModalMain .ck-Button__primary,\
		.ReactModal__Overlay--after-open .cookie-notice button + button,\
		.ReactModal__Overlay--after-open .UPM__PrivacyModal span + div > span:first-child button,\
		.privacyInformationDiv .cookie-agree,\
		.modal.fade.in #acceptCookie,\
		#js-modal-consent .js-consent-accept,\
		#cookie-warning.show #cookie-accept,\
		.html-consent .cc-overlay-submit,\
		.c-cookie-consent-button-wrapper .c-cookie-consent__button,\
		#accept-cookie-policy.btn,\
		.privacywall-overview .js-privacywall-agree,\
		.privacywall-overlay .js-privacywall-agree,\
		#cookie_consent_layer .btn[onclick*="acceptAllCookies"],\
		#gdprModal #restaccept,\
		#gdprModal .primary[onclick*="Accept"],\
		.gdrpbox.in .btn[onclick*="gdrpSetCookie"],\
		#cookie-notification .modal-footer .btn,\
		#cookieManagerFooter #anwbrGiveConsent,\
		#cookie-wall-modal .btn-primary,\
		#cookie.popup .button.accept,\
		.dot-cc-wrapper .dot-heading ~ .dot-button-container .dot-btn-1,\
		.dot-cc-wrapper .dot-hide-cc-wrapper,\
		#my-content-cookielaw .cookie-btn,\
		#modalCookie .accept-cookie,\
		#modalCookie.shown .button[data-action="accept-cookies"],\
		.modal.cookie .btn[onclick*="setCookie"],\
		#cookiesbanner #hidecookiesbanner,\
		#cookiewall-buttons .accept-cookies,\
		form[action*="cookieservice.rtl.nl/consent"] .accept-button,\
		.buttonComp.cookieAccept,\
		.c-cookie-info .c-button.cookieAccept,\
		#btnAcceptCookies,\
		form[name="cookieconsent"] input[name="consent"],\
		.cookie-consent .box__button,\
		.modal #cookiewarning .button--decline,\
		.modal-cookie .btn[onclick*="setCookiepopup"],\
		.cookie-wall__button button,\
		#notification-allowCookies button,\
		#sanoma-consent-accept-button',
		
		'#rodo.in .button[href*="accept"],\
		#gdpr_popin[style*="block"] .gdpr-agree,\
		form[action*="cookieservice"] #acceptButton,\
		#cookiescript_injected #cookiescript_accept,\
		#js-cookie-wall[style*="block"] #js-cookie-wall-accept,\
		.ui-dialog.open #CookiePopup form .btn,\
		#modalCookie.show .cookie-accept,\
		#cookieform input.modal__submit,\
		#accept_koe.btn,\
		form[action*="cookie"] .melding #btnYes,\
		#cookie-consent-form input[type="submit"],\
		.cookiebar-actions #grantPermissionButton,\
		.cookiewall #TOL_link1,\
		.cookie-wrap[style] #TOL_link1,\
		#cookieConsentPopup[style*="block"] .btn,\
		#cadre_alert_cookies .popup-modal-dismiss,\
		#cookieConsentModal .success,\
		#privacy_statement_pop.in .btn[onclick*="close"],\
		.cookie-accept-block .cookie-accept-block-button .btn,\
		#cookieConsent.remodal-is-opened #acceptAllCookies,\
		.template--cookiewall .js-accept-cookies.btn,\
		.modal-cookie.show .js-accept-cookies.btn,\
		.state-visible .js-accept-cookies.btn,\
		#btn-allow-cookie,\
		.modal-cookie-warning .modal-close,\
		.cookiemessage__button--accept,\
		.cookieWallContent .ok-cookies,\
		#cookie-master #acceptCookies,\
		.cookie-wall .cookie-button,\
		#cookiebar_wrapper .accept-button:not(.sanoma-consent-change-settings-button),\
		.cookieallowbutton,\
		#js-cookie-message #js-accept-cookie,\
		.popup-cookie--buttons .popup-cookie--save,\
		.cookie-box #cookie-button,\
		#cookie-acceptance .btn.allow,\
		#acceptcookies.btn,\
		#cookiewet_NL .btn[href*="acceptcookie"],\
		.cadre_inner_texte_alert_cookies .popup-modal-dismiss,\
		.cookiewall button.allow_cookies,\
		#agree_with_cookie_terms,\
		.cookie-compliance-ok-btn,\
		a.cookieControlAccept,\
		button#cookie_accept,\
		.close.uiDismissCookiePolicy,\
		.fancybox-opened #cookiePolicy .info-close,\
		input[name="bw-cookie-consent-agree"] + input[type="submit"],\
		.js-cookie-info-accept-button,\
		#cookiePopup .btn-primary,\
		.modal .button[href*="accepteer-cookies"],\
		#cookie-modal .accept-cookies,\
		.popupframe input[name="cookieconsent_agreed"],\
		#ucCookiePolicy_btnCookiePolicyDismiss,\
		.alternetCookieMessage .alternetCookieAnswerLink,\
		#cookie-modal #cookie-consent-btn,\
		#cookies .button.CookiesOK,\
		.m-cookie-disclaimer .s-btn-close,\
		.consenso a[href*="accept-cookies"],\
		.button_submit[title="I accept the cookies"],\
		.accept-cookies a[onclick*="acceptCookies"],\
		.as_cookies_block_buttons a,\
		#btn-give-cookie-consent,\
		.cookie-info .btn-primary.cookie-accept,\
		.modal-open #cookie-modal .cookie-accept,\
		#js-cookie-popup.magnificPopup .btnSave,\
		#melding .ja,\
		.cookie_banner[data-module="cookie_banner"]:not(.xs-hide) .btn-close,\
		.cookie-notification-wrapper[style*="block"] .btn-primary,\
		.window-cookiewall .cookie-button,\
		#cookieModal .btn-icon-primary,\
		.wall #form_save,\
		.consent #button_yes,\
		.CookieSplashPage #NextButton,\
		#cookieconsent1.accept,\
		#jakoekies,\
		.btn-accept[href*="coockie"],\
		.btn-accept[href*="cookie"],\
		.btn-accept[href*="Cookie"],\
		.page--cookiewall .button[href*="acceptcookies"],\
		.layout--cookiewall .fjs-accept,\
		#cookies__modal .btn[href*="AcceptCookie"],\
		.btnAccept[href*="Cookies"],\
		#cookie-wall .btn-accept-cookies,\
		#cookiebox-nieuw .btn-cookie,\
		.cookiecontainer button[name="accept"],\
		.btn--accept[href*="cookiewall"],\
		.button--accept[href*="cookiewall"],\
		form[name="cookieconsent"] .consent.btn,\
		body.background .footer button#form_save.button[name="form[save]"],\
		.cookie-modal .btn.accept-cookies-button[href^="/Cookie/HasConsent"],\
		.view-cookie .js-cta-accept-cookie,\
		.main-header [data-module="cookie-notice"] .buttons[class*="primary"],\
		.c-cookie-consent form[name="cookie-consent"] input[type="submit"],\
		.c-cookie-consent .c-cookie-consent__button',
		
		'.fancybox-overlay[style*="block"] #cookie-consent-simple .cookie__btn--primary,\
		ab-cookie-wall modal-footer .btn,\
		.cookie-consent-modal.ui-modal_open .cookie-consent-modal__accept-button,\
		#cookiewizard[style*="block"] #accept-all-cookies,\
		.AST-banner > div[style*="block"] .AST-accept,\
		#cookie_constent_submit,\
		.cookielayer[style*="block"] .cookielayer__optinbtn .btn--primary,\
		.modal.in .btn[onclick*="accept"][onclick*="gdpr"],\
		.c1yxs-mod-visible button[data-test-cookies-reject],\
		#consentContainer .raised-btn[href*="granted"],\
		.reveal-overlay[style*="block"] #phg_cookies_modal .phgcookies_label_okay,\
		#cookielaw.in #cookie-accept,\
		.module.consent > .ok[type="button"],\
		body[class*="tiki"] #cookie_consent_div:not([style*="display: none"]) #cookie_consent_button,\
		body[class*="tiki"] #cookie_consent_div:not([style*="display: none"]) #cookie_consent_checkbox,\
		body[class*="tiki"] #cookie_consent_div:not([style*="display: none"]) input[name="cookie_consent_checkbox"],\
		.cookiesOverlay2Box #cookiesConsentOK,\
		#myCookieModal.in .cookie-button,\
		div[data-cookie-path] a[href*="technologies/cookies"] + div'
	];
	
	
	// Search loop function
	
	let searchGroupsLength = searchGroups.length,
		searchPairsKeys = Object.keys(searchPairs),
		searchPairsJoinedKeys = searchPairsKeys.join(','),
		timeoutDuration = 300;
	
	function searchLoop(counter) {
		setTimeout(function() {
		
			document.querySelectorAll(searchPairsJoinedKeys).forEach(function(box) {
				searchPairsKeys.forEach(function(selector) {
					if (box.matches(selector)) {
						(box.shadowRoot || box).querySelectorAll(searchPairs[selector].join(',')).forEach(function(button) {
							if (button.click && !button.classList.contains('idcac')) {
								button.classList.add('idcac');
								
								if (typeof chrome == 'object' && chrome.runtime)
									chrome.runtime.sendMessage({command: "cookie_warning_dismissed", url: document.location.href});
								
								button.click();
								
								// The 2nd click is just to be sure. Avoid when a double click breaks the process.
								if (selector != '.message-container' && button.getAttribute('href') != '#cookieman-settings')
									setTimeout(function() { if (button) button.click(); }, 500);
								
								timeoutDuration += 500;
							}
						});
					}
				});
			});
			
			document.querySelectorAll(searchGroups[counter%searchGroupsLength]).forEach(function(element) {
				if (element.click && !element.classList.contains('idcac')) {
					element.classList.add('idcac');
					
					if (typeof chrome == 'object' && chrome.runtime)
						chrome.runtime.sendMessage({command: "cookie_warning_dismissed", url: document.location.href});
					
					element.click();
					
					// The 2nd click is just to be sure. Avoid when a double click breaks the process.
					if (element.getAttribute('aria-pressed') != 'true') // ".qc-cmp2" related
						setTimeout(function() { if (element) element.click(); }, 500);
					
					timeoutDuration += 500;
				}
			});
			
			if (counter < 100*searchGroupsLength)
				searchLoop(counter+1);
		
		}, timeoutDuration);
		
		timeoutDuration += 50;
	}
	
	var start = setInterval(function() {
		var html = document.querySelector('html');
		
		if (!html || /idc0_350/.test(html.className))
			return;
		
		html.className += ' idc0_350';
		searchLoop(0);
		clearInterval(start);
	}, 500);
})();