@duckduckgo/autoconsent 9.3.0 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/addon-firefox/background.bundle.js +1 -2
- package/dist/addon-firefox/content.bundle.js +2 -3
- package/dist/addon-firefox/rules.json +168 -38
- package/dist/addon-mv3/background.bundle.js +1 -2
- package/dist/addon-mv3/content.bundle.js +2 -3
- package/dist/addon-mv3/rules.json +168 -38
- package/dist/autoconsent.cjs.js +2 -3
- package/dist/autoconsent.esm.js +2 -3
- package/dist/autoconsent.playwright.js +1 -1
- package/dist/autoconsent.unit.js +170 -41
- package/lib/cmps/sourcepoint-frame.ts +1 -1
- package/lib/eval-snippets.ts +1 -2
- package/package.json +1 -1
- package/rules/autoconsent/bahn-de.json +47 -0
- package/rules/autoconsent/complianz-categories.json +16 -7
- package/rules/autoconsent/complianz-notice.json +9 -3
- package/rules/autoconsent/complianz-opt-both.json +14 -0
- package/rules/autoconsent/complianz-optin.json +23 -10
- package/rules/autoconsent/osano.json +3 -4
- package/rules/rules.json +168 -38
- package/tests/bahn-de.spec.ts +5 -0
- package/tests/complianz-opt-both.spec.ts +5 -0
package/dist/autoconsent.unit.js
CHANGED
|
@@ -487,6 +487,7 @@
|
|
|
487
487
|
EVAL_ALMACMP_0: () => document.cookie.includes('"name":"Google","consent":false'),
|
|
488
488
|
EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes("serif_manage_cookies_viewed") && !document.cookie.includes("serif_allow_analytics"),
|
|
489
489
|
EVAL_AXEPTIO_0: () => document.cookie.includes("axeptio_authorized_vendors=%2C%2C"),
|
|
490
|
+
EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
|
|
490
491
|
EVAL_BING_0: () => document.cookie.includes("AL=0") && document.cookie.includes("AD=0") && document.cookie.includes("SM=0"),
|
|
491
492
|
EVAL_BLOCKSY_0: () => document.cookie.includes("blocksy_cookies_consent_accepted=no"),
|
|
492
493
|
EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
|
|
@@ -497,8 +498,6 @@
|
|
|
497
498
|
EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
|
|
498
499
|
EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
|
|
499
500
|
EVAL_COMPLIANZ_BANNER_0: () => document.cookie.includes("cmplz_banner-status=dismissed"),
|
|
500
|
-
EVAL_COMPLIANZ_CATEGORIES_0: () => !!document.cookie.match(/cmplz_[^=]+=deny/),
|
|
501
|
-
EVAL_COMPLIANZ_OPTIN_0: () => !!document.cookie.match(/cookieconsent_preferences_disabled=[^;]+/),
|
|
502
501
|
EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
|
|
503
502
|
EVAL_COOKIE_LAW_INFO_1: () => document.cookie.indexOf("cookielawinfo-checkbox-non-necessary=yes") === -1,
|
|
504
503
|
EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(document.cookie.split(";").find((c) => c.trim().startsWith("CookieLevel")).split("=")[1]).social === false,
|
|
@@ -1289,7 +1288,7 @@
|
|
|
1289
1288
|
this.waitForElement(".pm-features", 2e3).then((success) => success ? 2 : -1)
|
|
1290
1289
|
]);
|
|
1291
1290
|
if (path === 0) {
|
|
1292
|
-
await this.wait(
|
|
1291
|
+
await this.wait(1500);
|
|
1293
1292
|
return this.click(rejectSelector1);
|
|
1294
1293
|
} else if (path === 1) {
|
|
1295
1294
|
this.click(rejectSelector2);
|
|
@@ -2793,6 +2792,55 @@
|
|
|
2793
2792
|
}
|
|
2794
2793
|
]
|
|
2795
2794
|
},
|
|
2795
|
+
{
|
|
2796
|
+
name: "bahn-de",
|
|
2797
|
+
vendorUrl: "https://www.bahn.de/",
|
|
2798
|
+
cosmetic: false,
|
|
2799
|
+
runContext: {
|
|
2800
|
+
main: true,
|
|
2801
|
+
frame: false,
|
|
2802
|
+
urlPattern: "^https://(www\\.)?bahn\\.de/"
|
|
2803
|
+
},
|
|
2804
|
+
intermediate: false,
|
|
2805
|
+
prehideSelectors: [],
|
|
2806
|
+
detectCmp: [
|
|
2807
|
+
{
|
|
2808
|
+
exists: [
|
|
2809
|
+
"body > div:first-child",
|
|
2810
|
+
"#consent-layer"
|
|
2811
|
+
]
|
|
2812
|
+
}
|
|
2813
|
+
],
|
|
2814
|
+
detectPopup: [
|
|
2815
|
+
{
|
|
2816
|
+
visible: [
|
|
2817
|
+
"body > div:first-child",
|
|
2818
|
+
"#consent-layer"
|
|
2819
|
+
]
|
|
2820
|
+
}
|
|
2821
|
+
],
|
|
2822
|
+
optIn: [
|
|
2823
|
+
{
|
|
2824
|
+
waitForThenClick: [
|
|
2825
|
+
"body > div:first-child",
|
|
2826
|
+
"#consent-layer .js-accept-all-cookies"
|
|
2827
|
+
]
|
|
2828
|
+
}
|
|
2829
|
+
],
|
|
2830
|
+
optOut: [
|
|
2831
|
+
{
|
|
2832
|
+
waitForThenClick: [
|
|
2833
|
+
"body > div:first-child",
|
|
2834
|
+
"#consent-layer .js-accept-essential-cookies"
|
|
2835
|
+
]
|
|
2836
|
+
}
|
|
2837
|
+
],
|
|
2838
|
+
test: [
|
|
2839
|
+
{
|
|
2840
|
+
eval: "EVAL_BAHN_TEST"
|
|
2841
|
+
}
|
|
2842
|
+
]
|
|
2843
|
+
},
|
|
2796
2844
|
{
|
|
2797
2845
|
name: "bbb.org",
|
|
2798
2846
|
runContext: {
|
|
@@ -3460,26 +3508,42 @@
|
|
|
3460
3508
|
],
|
|
3461
3509
|
optIn: [
|
|
3462
3510
|
{
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3511
|
+
any: [
|
|
3512
|
+
{
|
|
3513
|
+
click: ".cc-accept-all"
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
click: ".cc-allow-all"
|
|
3517
|
+
},
|
|
3518
|
+
{
|
|
3519
|
+
click: ".cc-allow"
|
|
3520
|
+
},
|
|
3521
|
+
{
|
|
3522
|
+
click: ".cc-dismiss"
|
|
3523
|
+
}
|
|
3524
|
+
]
|
|
3473
3525
|
}
|
|
3474
3526
|
],
|
|
3475
3527
|
optOut: [
|
|
3476
3528
|
{
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3529
|
+
if: {
|
|
3530
|
+
exists: '.cc-type-categories[aria-describedby="cookieconsent:desc"] .cc-dismiss'
|
|
3531
|
+
},
|
|
3532
|
+
then: [
|
|
3533
|
+
{
|
|
3534
|
+
click: ".cc-dismiss"
|
|
3535
|
+
}
|
|
3536
|
+
],
|
|
3537
|
+
else: [
|
|
3538
|
+
{
|
|
3539
|
+
click: ".cc-type-categories input[type=checkbox]:not([disabled]):checked",
|
|
3540
|
+
all: true,
|
|
3541
|
+
optional: true
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
click: ".cc-save"
|
|
3545
|
+
}
|
|
3546
|
+
]
|
|
3483
3547
|
}
|
|
3484
3548
|
]
|
|
3485
3549
|
},
|
|
@@ -3491,12 +3555,12 @@
|
|
|
3491
3555
|
cosmetic: true,
|
|
3492
3556
|
detectCmp: [
|
|
3493
3557
|
{
|
|
3494
|
-
exists: '.cc-type-info[aria-describedby="cookieconsent:desc"]'
|
|
3558
|
+
exists: '.cc-type-info[aria-describedby="cookieconsent:desc"] .cc-compliance .cc-btn'
|
|
3495
3559
|
}
|
|
3496
3560
|
],
|
|
3497
3561
|
detectPopup: [
|
|
3498
3562
|
{
|
|
3499
|
-
visible: '.cc-type-info[aria-describedby="cookieconsent:desc"]'
|
|
3563
|
+
visible: '.cc-type-info[aria-describedby="cookieconsent:desc"] .cc-compliance .cc-btn'
|
|
3500
3564
|
}
|
|
3501
3565
|
],
|
|
3502
3566
|
optIn: [
|
|
@@ -3515,23 +3579,35 @@
|
|
|
3515
3579
|
],
|
|
3516
3580
|
optOut: [
|
|
3517
3581
|
{
|
|
3518
|
-
|
|
3582
|
+
if: {
|
|
3583
|
+
exists: ".cc-deny"
|
|
3584
|
+
},
|
|
3585
|
+
then: [
|
|
3586
|
+
{
|
|
3587
|
+
click: ".cc-deny"
|
|
3588
|
+
}
|
|
3589
|
+
],
|
|
3590
|
+
else: [
|
|
3591
|
+
{
|
|
3592
|
+
hide: '[aria-describedby="cookieconsent:desc"]'
|
|
3593
|
+
}
|
|
3594
|
+
]
|
|
3519
3595
|
}
|
|
3520
3596
|
]
|
|
3521
3597
|
},
|
|
3522
3598
|
{
|
|
3523
|
-
name: "Complianz
|
|
3599
|
+
name: "Complianz opt-both",
|
|
3524
3600
|
prehideSelectors: [
|
|
3525
|
-
'
|
|
3601
|
+
'[aria-describedby="cookieconsent:desc"] .cc-type-opt-both'
|
|
3526
3602
|
],
|
|
3527
3603
|
detectCmp: [
|
|
3528
3604
|
{
|
|
3529
|
-
exists: '
|
|
3605
|
+
exists: '[aria-describedby="cookieconsent:desc"] .cc-type-opt-both'
|
|
3530
3606
|
}
|
|
3531
3607
|
],
|
|
3532
3608
|
detectPopup: [
|
|
3533
3609
|
{
|
|
3534
|
-
visible: '
|
|
3610
|
+
visible: '[aria-describedby="cookieconsent:desc"] .cc-type-opt-both'
|
|
3535
3611
|
}
|
|
3536
3612
|
],
|
|
3537
3613
|
optIn: [
|
|
@@ -3550,24 +3626,78 @@
|
|
|
3550
3626
|
],
|
|
3551
3627
|
optOut: [
|
|
3552
3628
|
{
|
|
3553
|
-
|
|
3554
|
-
}
|
|
3629
|
+
waitForThenClick: ".cc-deny"
|
|
3630
|
+
}
|
|
3631
|
+
]
|
|
3632
|
+
},
|
|
3633
|
+
{
|
|
3634
|
+
name: "Complianz optin",
|
|
3635
|
+
prehideSelectors: [
|
|
3636
|
+
'.cc-type-opt-in[aria-describedby="cookieconsent:desc"]'
|
|
3637
|
+
],
|
|
3638
|
+
detectCmp: [
|
|
3555
3639
|
{
|
|
3556
|
-
|
|
3557
|
-
}
|
|
3640
|
+
exists: '.cc-type-opt-in[aria-describedby="cookieconsent:desc"]'
|
|
3641
|
+
}
|
|
3642
|
+
],
|
|
3643
|
+
detectPopup: [
|
|
3558
3644
|
{
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3645
|
+
visible: '.cc-type-opt-in[aria-describedby="cookieconsent:desc"]'
|
|
3646
|
+
}
|
|
3647
|
+
],
|
|
3648
|
+
optIn: [
|
|
3563
3649
|
{
|
|
3564
|
-
|
|
3565
|
-
|
|
3650
|
+
any: [
|
|
3651
|
+
{
|
|
3652
|
+
click: ".cc-accept-all"
|
|
3653
|
+
},
|
|
3654
|
+
{
|
|
3655
|
+
click: ".cc-allow"
|
|
3656
|
+
},
|
|
3657
|
+
{
|
|
3658
|
+
click: ".cc-dismiss"
|
|
3659
|
+
}
|
|
3660
|
+
]
|
|
3566
3661
|
}
|
|
3567
3662
|
],
|
|
3568
|
-
|
|
3663
|
+
optOut: [
|
|
3569
3664
|
{
|
|
3570
|
-
|
|
3665
|
+
if: {
|
|
3666
|
+
visible: ".cc-deny"
|
|
3667
|
+
},
|
|
3668
|
+
then: [
|
|
3669
|
+
{
|
|
3670
|
+
click: ".cc-deny"
|
|
3671
|
+
}
|
|
3672
|
+
],
|
|
3673
|
+
else: [
|
|
3674
|
+
{
|
|
3675
|
+
if: {
|
|
3676
|
+
visible: ".cc-settings"
|
|
3677
|
+
},
|
|
3678
|
+
then: [
|
|
3679
|
+
{
|
|
3680
|
+
waitForThenClick: ".cc-settings"
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
waitForVisible: ".cc-settings-view"
|
|
3684
|
+
},
|
|
3685
|
+
{
|
|
3686
|
+
click: ".cc-settings-view input[type=checkbox]:not([disabled]):checked",
|
|
3687
|
+
all: true,
|
|
3688
|
+
optional: true
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
click: ".cc-settings-view .cc-btn-accept-selected"
|
|
3692
|
+
}
|
|
3693
|
+
],
|
|
3694
|
+
else: [
|
|
3695
|
+
{
|
|
3696
|
+
click: ".cc-dismiss"
|
|
3697
|
+
}
|
|
3698
|
+
]
|
|
3699
|
+
}
|
|
3700
|
+
]
|
|
3571
3701
|
}
|
|
3572
3702
|
]
|
|
3573
3703
|
},
|
|
@@ -5903,9 +6033,8 @@
|
|
|
5903
6033
|
{
|
|
5904
6034
|
name: "osano",
|
|
5905
6035
|
prehideSelectors: [
|
|
5906
|
-
".osano-cm-window"
|
|
6036
|
+
".osano-cm-window,.osano-cm-dialog"
|
|
5907
6037
|
],
|
|
5908
|
-
cosmetic: true,
|
|
5909
6038
|
detectCmp: [
|
|
5910
6039
|
{
|
|
5911
6040
|
exists: ".osano-cm-window"
|
|
@@ -5924,7 +6053,7 @@
|
|
|
5924
6053
|
],
|
|
5925
6054
|
optOut: [
|
|
5926
6055
|
{
|
|
5927
|
-
|
|
6056
|
+
waitForThenClick: ".osano-cm-denyAll"
|
|
5928
6057
|
}
|
|
5929
6058
|
]
|
|
5930
6059
|
},
|
|
@@ -117,7 +117,7 @@ export default class SourcePoint extends AutoConsentCMPBase {
|
|
|
117
117
|
this.waitForElement('.pm-features', 2000).then(success => success ? 2: -1),
|
|
118
118
|
]);
|
|
119
119
|
if (path === 0) {
|
|
120
|
-
await this.wait(
|
|
120
|
+
await this.wait(1500);
|
|
121
121
|
return this.click(rejectSelector1);
|
|
122
122
|
} else if (path === 1) {
|
|
123
123
|
this.click(rejectSelector2);
|
package/lib/eval-snippets.ts
CHANGED
|
@@ -38,6 +38,7 @@ export const snippets = {
|
|
|
38
38
|
EVAL_ALMACMP_0: () => document.cookie.includes('"name":"Google","consent":false'),
|
|
39
39
|
EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes('serif_manage_cookies_viewed') && !document.cookie.includes('serif_allow_analytics'),
|
|
40
40
|
EVAL_AXEPTIO_0: () => document.cookie.includes('axeptio_authorized_vendors=%2C%2C'),
|
|
41
|
+
EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
|
|
41
42
|
EVAL_BING_0: () => document.cookie.includes('AL=0') && document.cookie.includes('AD=0') && document.cookie.includes('SM=0'),
|
|
42
43
|
EVAL_BLOCKSY_0: () => document.cookie.includes('blocksy_cookies_consent_accepted=no'),
|
|
43
44
|
EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(';').find(c => c.indexOf('borlabs-cookie') !== -1).split('=', 2)[1])).consents.statistics,
|
|
@@ -48,8 +49,6 @@ export const snippets = {
|
|
|
48
49
|
EVAL_CLINCH_0: () => document.cookie.includes('ctc_rejected=1'),
|
|
49
50
|
EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
|
|
50
51
|
EVAL_COMPLIANZ_BANNER_0: () => document.cookie.includes('cmplz_banner-status=dismissed'),
|
|
51
|
-
EVAL_COMPLIANZ_CATEGORIES_0: () => !!document.cookie.match(/cmplz_[^=]+=deny/),
|
|
52
|
-
EVAL_COMPLIANZ_OPTIN_0: () => !!document.cookie.match(/cookieconsent_preferences_disabled=[^;]+/),
|
|
53
52
|
EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
|
|
54
53
|
EVAL_COOKIE_LAW_INFO_1: () => document.cookie.indexOf('cookielawinfo-checkbox-non-necessary=yes') === -1,
|
|
55
54
|
EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(document.cookie.split(';').find(c => c.trim().startsWith('CookieLevel')).split('=')[1]).social === false,
|
package/package.json
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bahn-de",
|
|
3
|
+
"vendorUrl": "https://www.bahn.de/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"main": true,
|
|
7
|
+
"frame": false,
|
|
8
|
+
"urlPattern": "^https://(www\\.)?bahn\\.de/"
|
|
9
|
+
},
|
|
10
|
+
"intermediate": false,
|
|
11
|
+
"prehideSelectors": [],
|
|
12
|
+
"detectCmp": [
|
|
13
|
+
{
|
|
14
|
+
"exists": [
|
|
15
|
+
"body > div:first-child",
|
|
16
|
+
"#consent-layer"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"detectPopup": [
|
|
21
|
+
{
|
|
22
|
+
"visible": [
|
|
23
|
+
"body > div:first-child",
|
|
24
|
+
"#consent-layer"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"optIn": [
|
|
29
|
+
{
|
|
30
|
+
"waitForThenClick": [
|
|
31
|
+
"body > div:first-child",
|
|
32
|
+
"#consent-layer .js-accept-all-cookies"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"optOut": [
|
|
37
|
+
{
|
|
38
|
+
"waitForThenClick": [
|
|
39
|
+
"body > div:first-child",
|
|
40
|
+
"#consent-layer .js-accept-essential-cookies"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"test": [
|
|
45
|
+
{ "eval": "EVAL_BAHN_TEST" }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -4,14 +4,23 @@
|
|
|
4
4
|
"detectCmp": [{ "exists": ".cc-type-categories[aria-describedby=\"cookieconsent:desc\"]" }],
|
|
5
5
|
"detectPopup": [{ "visible": ".cc-type-categories[aria-describedby=\"cookieconsent:desc\"]" }],
|
|
6
6
|
"optIn": [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
{
|
|
8
|
+
"any": [
|
|
9
|
+
{ "click": ".cc-accept-all" },
|
|
10
|
+
{ "click": ".cc-allow-all" },
|
|
11
|
+
{ "click": ".cc-allow" },
|
|
12
|
+
{ "click": ".cc-dismiss" }
|
|
13
|
+
]
|
|
14
|
+
}
|
|
10
15
|
],
|
|
11
16
|
"optOut": [
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
{
|
|
18
|
+
"if": { "exists": ".cc-type-categories[aria-describedby=\"cookieconsent:desc\"] .cc-dismiss" },
|
|
19
|
+
"then": [{ "click": ".cc-dismiss" }],
|
|
20
|
+
"else": [
|
|
21
|
+
{ "click": ".cc-type-categories input[type=checkbox]:not([disabled]):checked", "all": true, "optional": true },
|
|
22
|
+
{ "click": ".cc-save" }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
16
25
|
]
|
|
17
26
|
}
|
|
@@ -2,14 +2,20 @@
|
|
|
2
2
|
"name": "Complianz notice",
|
|
3
3
|
"prehideSelectors": [".cc-type-info[aria-describedby=\"cookieconsent:desc\"]"],
|
|
4
4
|
"cosmetic": true,
|
|
5
|
-
"detectCmp": [{ "exists": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]" }],
|
|
6
|
-
"detectPopup": [{ "visible": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]" }],
|
|
5
|
+
"detectCmp": [{ "exists": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"] .cc-compliance .cc-btn" }],
|
|
6
|
+
"detectPopup": [{ "visible": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"] .cc-compliance .cc-btn" }],
|
|
7
7
|
"optIn": [
|
|
8
8
|
{ "click": ".cc-accept-all", "optional": true },
|
|
9
9
|
{ "click": ".cc-allow", "optional": true },
|
|
10
10
|
{ "click": ".cc-dismiss", "optional": true }
|
|
11
11
|
],
|
|
12
12
|
"optOut": [
|
|
13
|
-
{
|
|
13
|
+
{
|
|
14
|
+
"if": { "exists": ".cc-deny" },
|
|
15
|
+
"then": [{ "click": ".cc-deny" }],
|
|
16
|
+
"else": [
|
|
17
|
+
{ "hide": "[aria-describedby=\"cookieconsent:desc\"]" }
|
|
18
|
+
]
|
|
19
|
+
}
|
|
14
20
|
]
|
|
15
21
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Complianz opt-both",
|
|
3
|
+
"prehideSelectors": ["[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both"],
|
|
4
|
+
"detectCmp": [{ "exists": "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both" }],
|
|
5
|
+
"detectPopup": [{ "visible": "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both" }],
|
|
6
|
+
"optIn": [
|
|
7
|
+
{ "click": ".cc-accept-all", "optional": true },
|
|
8
|
+
{ "click": ".cc-allow", "optional": true },
|
|
9
|
+
{ "click": ".cc-dismiss", "optional": true }
|
|
10
|
+
],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{ "waitForThenClick": ".cc-deny" }
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -4,17 +4,30 @@
|
|
|
4
4
|
"detectCmp": [{ "exists": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]" }],
|
|
5
5
|
"detectPopup": [{ "visible": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]" }],
|
|
6
6
|
"optIn": [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
{
|
|
8
|
+
"any": [
|
|
9
|
+
{ "click": ".cc-accept-all" },
|
|
10
|
+
{ "click": ".cc-allow" },
|
|
11
|
+
{ "click": ".cc-dismiss" }
|
|
12
|
+
]
|
|
13
|
+
}
|
|
10
14
|
],
|
|
11
15
|
"optOut": [
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
{
|
|
17
|
+
"if": { "visible": ".cc-deny" },
|
|
18
|
+
"then": [{ "click": ".cc-deny" }],
|
|
19
|
+
"else": [{
|
|
20
|
+
"if": {"visible": ".cc-settings"},
|
|
21
|
+
"then": [
|
|
22
|
+
{ "waitForThenClick": ".cc-settings" },
|
|
23
|
+
{ "waitForVisible": ".cc-settings-view"},
|
|
24
|
+
{ "click": ".cc-settings-view input[type=checkbox]:not([disabled]):checked", "all": true, "optional": true },
|
|
25
|
+
{ "click": ".cc-settings-view .cc-btn-accept-selected" }
|
|
26
|
+
],
|
|
27
|
+
"else": [
|
|
28
|
+
{ "click": ".cc-dismiss" }
|
|
29
|
+
]
|
|
30
|
+
}]
|
|
31
|
+
}
|
|
19
32
|
]
|
|
20
33
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "osano",
|
|
3
|
-
"prehideSelectors": [".osano-cm-window"],
|
|
4
|
-
"cosmetic": true,
|
|
3
|
+
"prehideSelectors": [".osano-cm-window,.osano-cm-dialog"],
|
|
5
4
|
"detectCmp": [{ "exists": ".osano-cm-window" }],
|
|
6
5
|
"detectPopup": [{ "visible": ".osano-cm-dialog" }],
|
|
7
6
|
"optIn": [{
|
|
@@ -9,6 +8,6 @@
|
|
|
9
8
|
"optional": true
|
|
10
9
|
}],
|
|
11
10
|
"optOut": [
|
|
12
|
-
{ "
|
|
11
|
+
{ "waitForThenClick": ".osano-cm-denyAll" }
|
|
13
12
|
]
|
|
14
|
-
|
|
13
|
+
}
|