@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 CHANGED
@@ -1,3 +1,18 @@
1
+ # v9.4.0 (Fri Jan 26 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Improve Osano rule [#350](https://github.com/duckduckgo/autoconsent/pull/350) ([@muodov](https://github.com/muodov))
6
+ - Increase timeout in the sourcepoint rule [#349](https://github.com/duckduckgo/autoconsent/pull/349) ([@muodov](https://github.com/muodov))
7
+ - Complianz regression fixes [#347](https://github.com/duckduckgo/autoconsent/pull/347) ([@muodov](https://github.com/muodov))
8
+ - Add rule for bahn.de [#348](https://github.com/duckduckgo/autoconsent/pull/348) ([@muodov](https://github.com/muodov))
9
+
10
+ #### Authors: 1
11
+
12
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
13
+
14
+ ---
15
+
1
16
  # v9.3.0 (Fri Jan 26 2024)
2
17
 
3
18
  #### 🚀 Enhancement
@@ -35,6 +35,7 @@
35
35
  EVAL_ALMACMP_0: () => document.cookie.includes('"name":"Google","consent":false'),
36
36
  EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes("serif_manage_cookies_viewed") && !document.cookie.includes("serif_allow_analytics"),
37
37
  EVAL_AXEPTIO_0: () => document.cookie.includes("axeptio_authorized_vendors=%2C%2C"),
38
+ EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
38
39
  EVAL_BING_0: () => document.cookie.includes("AL=0") && document.cookie.includes("AD=0") && document.cookie.includes("SM=0"),
39
40
  EVAL_BLOCKSY_0: () => document.cookie.includes("blocksy_cookies_consent_accepted=no"),
40
41
  EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
@@ -45,8 +46,6 @@
45
46
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
46
47
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
47
48
  EVAL_COMPLIANZ_BANNER_0: () => document.cookie.includes("cmplz_banner-status=dismissed"),
48
- EVAL_COMPLIANZ_CATEGORIES_0: () => !!document.cookie.match(/cmplz_[^=]+=deny/),
49
- EVAL_COMPLIANZ_OPTIN_0: () => !!document.cookie.match(/cookieconsent_preferences_disabled=[^;]+/),
50
49
  EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
51
50
  EVAL_COOKIE_LAW_INFO_1: () => document.cookie.indexOf("cookielawinfo-checkbox-non-necessary=yes") === -1,
52
51
  EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(document.cookie.split(";").find((c) => c.trim().startsWith("CookieLevel")).split("=")[1]).social === false,
@@ -482,6 +482,7 @@
482
482
  EVAL_ALMACMP_0: () => document.cookie.includes('"name":"Google","consent":false'),
483
483
  EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes("serif_manage_cookies_viewed") && !document.cookie.includes("serif_allow_analytics"),
484
484
  EVAL_AXEPTIO_0: () => document.cookie.includes("axeptio_authorized_vendors=%2C%2C"),
485
+ EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
485
486
  EVAL_BING_0: () => document.cookie.includes("AL=0") && document.cookie.includes("AD=0") && document.cookie.includes("SM=0"),
486
487
  EVAL_BLOCKSY_0: () => document.cookie.includes("blocksy_cookies_consent_accepted=no"),
487
488
  EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
@@ -492,8 +493,6 @@
492
493
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
493
494
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
494
495
  EVAL_COMPLIANZ_BANNER_0: () => document.cookie.includes("cmplz_banner-status=dismissed"),
495
- EVAL_COMPLIANZ_CATEGORIES_0: () => !!document.cookie.match(/cmplz_[^=]+=deny/),
496
- EVAL_COMPLIANZ_OPTIN_0: () => !!document.cookie.match(/cookieconsent_preferences_disabled=[^;]+/),
497
496
  EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
498
497
  EVAL_COOKIE_LAW_INFO_1: () => document.cookie.indexOf("cookielawinfo-checkbox-non-necessary=yes") === -1,
499
498
  EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(document.cookie.split(";").find((c) => c.trim().startsWith("CookieLevel")).split("=")[1]).social === false,
@@ -1284,7 +1283,7 @@
1284
1283
  this.waitForElement(".pm-features", 2e3).then((success) => success ? 2 : -1)
1285
1284
  ]);
1286
1285
  if (path === 0) {
1287
- await this.wait(1e3);
1286
+ await this.wait(1500);
1288
1287
  return this.click(rejectSelector1);
1289
1288
  } else if (path === 1) {
1290
1289
  this.click(rejectSelector2);
@@ -509,6 +509,55 @@
509
509
  }
510
510
  ]
511
511
  },
512
+ {
513
+ "name": "bahn-de",
514
+ "vendorUrl": "https://www.bahn.de/",
515
+ "cosmetic": false,
516
+ "runContext": {
517
+ "main": true,
518
+ "frame": false,
519
+ "urlPattern": "^https://(www\\.)?bahn\\.de/"
520
+ },
521
+ "intermediate": false,
522
+ "prehideSelectors": [],
523
+ "detectCmp": [
524
+ {
525
+ "exists": [
526
+ "body > div:first-child",
527
+ "#consent-layer"
528
+ ]
529
+ }
530
+ ],
531
+ "detectPopup": [
532
+ {
533
+ "visible": [
534
+ "body > div:first-child",
535
+ "#consent-layer"
536
+ ]
537
+ }
538
+ ],
539
+ "optIn": [
540
+ {
541
+ "waitForThenClick": [
542
+ "body > div:first-child",
543
+ "#consent-layer .js-accept-all-cookies"
544
+ ]
545
+ }
546
+ ],
547
+ "optOut": [
548
+ {
549
+ "waitForThenClick": [
550
+ "body > div:first-child",
551
+ "#consent-layer .js-accept-essential-cookies"
552
+ ]
553
+ }
554
+ ],
555
+ "test": [
556
+ {
557
+ "eval": "EVAL_BAHN_TEST"
558
+ }
559
+ ]
560
+ },
512
561
  {
513
562
  "name": "bbb.org",
514
563
  "runContext": {
@@ -1176,26 +1225,42 @@
1176
1225
  ],
1177
1226
  "optIn": [
1178
1227
  {
1179
- "click": ".cc-accept-all",
1180
- "optional": true
1181
- },
1182
- {
1183
- "click": ".cc-allow",
1184
- "optional": true
1185
- },
1186
- {
1187
- "click": ".cc-dismiss",
1188
- "optional": true
1228
+ "any": [
1229
+ {
1230
+ "click": ".cc-accept-all"
1231
+ },
1232
+ {
1233
+ "click": ".cc-allow-all"
1234
+ },
1235
+ {
1236
+ "click": ".cc-allow"
1237
+ },
1238
+ {
1239
+ "click": ".cc-dismiss"
1240
+ }
1241
+ ]
1189
1242
  }
1190
1243
  ],
1191
1244
  "optOut": [
1192
1245
  {
1193
- "click": ".cc-dismiss"
1194
- }
1195
- ],
1196
- "test": [
1197
- {
1198
- "eval": "EVAL_COMPLIANZ_CATEGORIES_0"
1246
+ "if": {
1247
+ "exists": ".cc-type-categories[aria-describedby=\"cookieconsent:desc\"] .cc-dismiss"
1248
+ },
1249
+ "then": [
1250
+ {
1251
+ "click": ".cc-dismiss"
1252
+ }
1253
+ ],
1254
+ "else": [
1255
+ {
1256
+ "click": ".cc-type-categories input[type=checkbox]:not([disabled]):checked",
1257
+ "all": true,
1258
+ "optional": true
1259
+ },
1260
+ {
1261
+ "click": ".cc-save"
1262
+ }
1263
+ ]
1199
1264
  }
1200
1265
  ]
1201
1266
  },
@@ -1207,12 +1272,12 @@
1207
1272
  "cosmetic": true,
1208
1273
  "detectCmp": [
1209
1274
  {
1210
- "exists": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]"
1275
+ "exists": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"] .cc-compliance .cc-btn"
1211
1276
  }
1212
1277
  ],
1213
1278
  "detectPopup": [
1214
1279
  {
1215
- "visible": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]"
1280
+ "visible": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"] .cc-compliance .cc-btn"
1216
1281
  }
1217
1282
  ],
1218
1283
  "optIn": [
@@ -1231,23 +1296,35 @@
1231
1296
  ],
1232
1297
  "optOut": [
1233
1298
  {
1234
- "hide": "[aria-describedby=\"cookieconsent:desc\"]"
1299
+ "if": {
1300
+ "exists": ".cc-deny"
1301
+ },
1302
+ "then": [
1303
+ {
1304
+ "click": ".cc-deny"
1305
+ }
1306
+ ],
1307
+ "else": [
1308
+ {
1309
+ "hide": "[aria-describedby=\"cookieconsent:desc\"]"
1310
+ }
1311
+ ]
1235
1312
  }
1236
1313
  ]
1237
1314
  },
1238
1315
  {
1239
- "name": "Complianz optin",
1316
+ "name": "Complianz opt-both",
1240
1317
  "prehideSelectors": [
1241
- ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1318
+ "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both"
1242
1319
  ],
1243
1320
  "detectCmp": [
1244
1321
  {
1245
- "exists": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1322
+ "exists": "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both"
1246
1323
  }
1247
1324
  ],
1248
1325
  "detectPopup": [
1249
1326
  {
1250
- "visible": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1327
+ "visible": "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both"
1251
1328
  }
1252
1329
  ],
1253
1330
  "optIn": [
@@ -1266,24 +1343,78 @@
1266
1343
  ],
1267
1344
  "optOut": [
1268
1345
  {
1269
- "click": ".cc-settings"
1270
- },
1346
+ "waitForThenClick": ".cc-deny"
1347
+ }
1348
+ ]
1349
+ },
1350
+ {
1351
+ "name": "Complianz optin",
1352
+ "prehideSelectors": [
1353
+ ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1354
+ ],
1355
+ "detectCmp": [
1271
1356
  {
1272
- "waitForVisible": "[aria-label=\"cookies preferences popup\"]"
1273
- },
1357
+ "exists": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1358
+ }
1359
+ ],
1360
+ "detectPopup": [
1274
1361
  {
1275
- "click": "[aria-label=\"cookies preferences popup\"] input[type=checkbox]:not([disabled]):checked",
1276
- "all": true,
1277
- "optional": true
1278
- },
1362
+ "visible": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1363
+ }
1364
+ ],
1365
+ "optIn": [
1279
1366
  {
1280
- "click": "[aria-label=\"cookies preferences popup\"] [aria-label=\"Accept Selected\"], [aria-label=\"cookies preferences popup\"] [aria-label=\"Save my choice\"], .cc-btn-accept-selected, .cc-deny",
1281
- "optional": true
1367
+ "any": [
1368
+ {
1369
+ "click": ".cc-accept-all"
1370
+ },
1371
+ {
1372
+ "click": ".cc-allow"
1373
+ },
1374
+ {
1375
+ "click": ".cc-dismiss"
1376
+ }
1377
+ ]
1282
1378
  }
1283
1379
  ],
1284
- "test": [
1380
+ "optOut": [
1285
1381
  {
1286
- "eval": "EVAL_COMPLIANZ_OPTIN_0"
1382
+ "if": {
1383
+ "visible": ".cc-deny"
1384
+ },
1385
+ "then": [
1386
+ {
1387
+ "click": ".cc-deny"
1388
+ }
1389
+ ],
1390
+ "else": [
1391
+ {
1392
+ "if": {
1393
+ "visible": ".cc-settings"
1394
+ },
1395
+ "then": [
1396
+ {
1397
+ "waitForThenClick": ".cc-settings"
1398
+ },
1399
+ {
1400
+ "waitForVisible": ".cc-settings-view"
1401
+ },
1402
+ {
1403
+ "click": ".cc-settings-view input[type=checkbox]:not([disabled]):checked",
1404
+ "all": true,
1405
+ "optional": true
1406
+ },
1407
+ {
1408
+ "click": ".cc-settings-view .cc-btn-accept-selected"
1409
+ }
1410
+ ],
1411
+ "else": [
1412
+ {
1413
+ "click": ".cc-dismiss"
1414
+ }
1415
+ ]
1416
+ }
1417
+ ]
1287
1418
  }
1288
1419
  ]
1289
1420
  },
@@ -3619,9 +3750,8 @@
3619
3750
  {
3620
3751
  "name": "osano",
3621
3752
  "prehideSelectors": [
3622
- ".osano-cm-window"
3753
+ ".osano-cm-window,.osano-cm-dialog"
3623
3754
  ],
3624
- "cosmetic": true,
3625
3755
  "detectCmp": [
3626
3756
  {
3627
3757
  "exists": ".osano-cm-window"
@@ -3640,7 +3770,7 @@
3640
3770
  ],
3641
3771
  "optOut": [
3642
3772
  {
3643
- "hide": ".osano-cm-window"
3773
+ "waitForThenClick": ".osano-cm-denyAll"
3644
3774
  }
3645
3775
  ]
3646
3776
  },
@@ -35,6 +35,7 @@
35
35
  EVAL_ALMACMP_0: () => document.cookie.includes('"name":"Google","consent":false'),
36
36
  EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes("serif_manage_cookies_viewed") && !document.cookie.includes("serif_allow_analytics"),
37
37
  EVAL_AXEPTIO_0: () => document.cookie.includes("axeptio_authorized_vendors=%2C%2C"),
38
+ EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
38
39
  EVAL_BING_0: () => document.cookie.includes("AL=0") && document.cookie.includes("AD=0") && document.cookie.includes("SM=0"),
39
40
  EVAL_BLOCKSY_0: () => document.cookie.includes("blocksy_cookies_consent_accepted=no"),
40
41
  EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
@@ -45,8 +46,6 @@
45
46
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
46
47
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
47
48
  EVAL_COMPLIANZ_BANNER_0: () => document.cookie.includes("cmplz_banner-status=dismissed"),
48
- EVAL_COMPLIANZ_CATEGORIES_0: () => !!document.cookie.match(/cmplz_[^=]+=deny/),
49
- EVAL_COMPLIANZ_OPTIN_0: () => !!document.cookie.match(/cookieconsent_preferences_disabled=[^;]+/),
50
49
  EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
51
50
  EVAL_COOKIE_LAW_INFO_1: () => document.cookie.indexOf("cookielawinfo-checkbox-non-necessary=yes") === -1,
52
51
  EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(document.cookie.split(";").find((c) => c.trim().startsWith("CookieLevel")).split("=")[1]).social === false,
@@ -482,6 +482,7 @@
482
482
  EVAL_ALMACMP_0: () => document.cookie.includes('"name":"Google","consent":false'),
483
483
  EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes("serif_manage_cookies_viewed") && !document.cookie.includes("serif_allow_analytics"),
484
484
  EVAL_AXEPTIO_0: () => document.cookie.includes("axeptio_authorized_vendors=%2C%2C"),
485
+ EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
485
486
  EVAL_BING_0: () => document.cookie.includes("AL=0") && document.cookie.includes("AD=0") && document.cookie.includes("SM=0"),
486
487
  EVAL_BLOCKSY_0: () => document.cookie.includes("blocksy_cookies_consent_accepted=no"),
487
488
  EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1])).consents.statistics,
@@ -492,8 +493,6 @@
492
493
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
493
494
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
494
495
  EVAL_COMPLIANZ_BANNER_0: () => document.cookie.includes("cmplz_banner-status=dismissed"),
495
- EVAL_COMPLIANZ_CATEGORIES_0: () => !!document.cookie.match(/cmplz_[^=]+=deny/),
496
- EVAL_COMPLIANZ_OPTIN_0: () => !!document.cookie.match(/cookieconsent_preferences_disabled=[^;]+/),
497
496
  EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
498
497
  EVAL_COOKIE_LAW_INFO_1: () => document.cookie.indexOf("cookielawinfo-checkbox-non-necessary=yes") === -1,
499
498
  EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(document.cookie.split(";").find((c) => c.trim().startsWith("CookieLevel")).split("=")[1]).social === false,
@@ -1284,7 +1283,7 @@
1284
1283
  this.waitForElement(".pm-features", 2e3).then((success) => success ? 2 : -1)
1285
1284
  ]);
1286
1285
  if (path === 0) {
1287
- await this.wait(1e3);
1286
+ await this.wait(1500);
1288
1287
  return this.click(rejectSelector1);
1289
1288
  } else if (path === 1) {
1290
1289
  this.click(rejectSelector2);
@@ -509,6 +509,55 @@
509
509
  }
510
510
  ]
511
511
  },
512
+ {
513
+ "name": "bahn-de",
514
+ "vendorUrl": "https://www.bahn.de/",
515
+ "cosmetic": false,
516
+ "runContext": {
517
+ "main": true,
518
+ "frame": false,
519
+ "urlPattern": "^https://(www\\.)?bahn\\.de/"
520
+ },
521
+ "intermediate": false,
522
+ "prehideSelectors": [],
523
+ "detectCmp": [
524
+ {
525
+ "exists": [
526
+ "body > div:first-child",
527
+ "#consent-layer"
528
+ ]
529
+ }
530
+ ],
531
+ "detectPopup": [
532
+ {
533
+ "visible": [
534
+ "body > div:first-child",
535
+ "#consent-layer"
536
+ ]
537
+ }
538
+ ],
539
+ "optIn": [
540
+ {
541
+ "waitForThenClick": [
542
+ "body > div:first-child",
543
+ "#consent-layer .js-accept-all-cookies"
544
+ ]
545
+ }
546
+ ],
547
+ "optOut": [
548
+ {
549
+ "waitForThenClick": [
550
+ "body > div:first-child",
551
+ "#consent-layer .js-accept-essential-cookies"
552
+ ]
553
+ }
554
+ ],
555
+ "test": [
556
+ {
557
+ "eval": "EVAL_BAHN_TEST"
558
+ }
559
+ ]
560
+ },
512
561
  {
513
562
  "name": "bbb.org",
514
563
  "runContext": {
@@ -1176,26 +1225,42 @@
1176
1225
  ],
1177
1226
  "optIn": [
1178
1227
  {
1179
- "click": ".cc-accept-all",
1180
- "optional": true
1181
- },
1182
- {
1183
- "click": ".cc-allow",
1184
- "optional": true
1185
- },
1186
- {
1187
- "click": ".cc-dismiss",
1188
- "optional": true
1228
+ "any": [
1229
+ {
1230
+ "click": ".cc-accept-all"
1231
+ },
1232
+ {
1233
+ "click": ".cc-allow-all"
1234
+ },
1235
+ {
1236
+ "click": ".cc-allow"
1237
+ },
1238
+ {
1239
+ "click": ".cc-dismiss"
1240
+ }
1241
+ ]
1189
1242
  }
1190
1243
  ],
1191
1244
  "optOut": [
1192
1245
  {
1193
- "click": ".cc-dismiss"
1194
- }
1195
- ],
1196
- "test": [
1197
- {
1198
- "eval": "EVAL_COMPLIANZ_CATEGORIES_0"
1246
+ "if": {
1247
+ "exists": ".cc-type-categories[aria-describedby=\"cookieconsent:desc\"] .cc-dismiss"
1248
+ },
1249
+ "then": [
1250
+ {
1251
+ "click": ".cc-dismiss"
1252
+ }
1253
+ ],
1254
+ "else": [
1255
+ {
1256
+ "click": ".cc-type-categories input[type=checkbox]:not([disabled]):checked",
1257
+ "all": true,
1258
+ "optional": true
1259
+ },
1260
+ {
1261
+ "click": ".cc-save"
1262
+ }
1263
+ ]
1199
1264
  }
1200
1265
  ]
1201
1266
  },
@@ -1207,12 +1272,12 @@
1207
1272
  "cosmetic": true,
1208
1273
  "detectCmp": [
1209
1274
  {
1210
- "exists": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]"
1275
+ "exists": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"] .cc-compliance .cc-btn"
1211
1276
  }
1212
1277
  ],
1213
1278
  "detectPopup": [
1214
1279
  {
1215
- "visible": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]"
1280
+ "visible": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"] .cc-compliance .cc-btn"
1216
1281
  }
1217
1282
  ],
1218
1283
  "optIn": [
@@ -1231,23 +1296,35 @@
1231
1296
  ],
1232
1297
  "optOut": [
1233
1298
  {
1234
- "hide": "[aria-describedby=\"cookieconsent:desc\"]"
1299
+ "if": {
1300
+ "exists": ".cc-deny"
1301
+ },
1302
+ "then": [
1303
+ {
1304
+ "click": ".cc-deny"
1305
+ }
1306
+ ],
1307
+ "else": [
1308
+ {
1309
+ "hide": "[aria-describedby=\"cookieconsent:desc\"]"
1310
+ }
1311
+ ]
1235
1312
  }
1236
1313
  ]
1237
1314
  },
1238
1315
  {
1239
- "name": "Complianz optin",
1316
+ "name": "Complianz opt-both",
1240
1317
  "prehideSelectors": [
1241
- ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1318
+ "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both"
1242
1319
  ],
1243
1320
  "detectCmp": [
1244
1321
  {
1245
- "exists": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1322
+ "exists": "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both"
1246
1323
  }
1247
1324
  ],
1248
1325
  "detectPopup": [
1249
1326
  {
1250
- "visible": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1327
+ "visible": "[aria-describedby=\"cookieconsent:desc\"] .cc-type-opt-both"
1251
1328
  }
1252
1329
  ],
1253
1330
  "optIn": [
@@ -1266,24 +1343,78 @@
1266
1343
  ],
1267
1344
  "optOut": [
1268
1345
  {
1269
- "click": ".cc-settings"
1270
- },
1346
+ "waitForThenClick": ".cc-deny"
1347
+ }
1348
+ ]
1349
+ },
1350
+ {
1351
+ "name": "Complianz optin",
1352
+ "prehideSelectors": [
1353
+ ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1354
+ ],
1355
+ "detectCmp": [
1271
1356
  {
1272
- "waitForVisible": "[aria-label=\"cookies preferences popup\"]"
1273
- },
1357
+ "exists": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1358
+ }
1359
+ ],
1360
+ "detectPopup": [
1274
1361
  {
1275
- "click": "[aria-label=\"cookies preferences popup\"] input[type=checkbox]:not([disabled]):checked",
1276
- "all": true,
1277
- "optional": true
1278
- },
1362
+ "visible": ".cc-type-opt-in[aria-describedby=\"cookieconsent:desc\"]"
1363
+ }
1364
+ ],
1365
+ "optIn": [
1279
1366
  {
1280
- "click": "[aria-label=\"cookies preferences popup\"] [aria-label=\"Accept Selected\"], [aria-label=\"cookies preferences popup\"] [aria-label=\"Save my choice\"], .cc-btn-accept-selected, .cc-deny",
1281
- "optional": true
1367
+ "any": [
1368
+ {
1369
+ "click": ".cc-accept-all"
1370
+ },
1371
+ {
1372
+ "click": ".cc-allow"
1373
+ },
1374
+ {
1375
+ "click": ".cc-dismiss"
1376
+ }
1377
+ ]
1282
1378
  }
1283
1379
  ],
1284
- "test": [
1380
+ "optOut": [
1285
1381
  {
1286
- "eval": "EVAL_COMPLIANZ_OPTIN_0"
1382
+ "if": {
1383
+ "visible": ".cc-deny"
1384
+ },
1385
+ "then": [
1386
+ {
1387
+ "click": ".cc-deny"
1388
+ }
1389
+ ],
1390
+ "else": [
1391
+ {
1392
+ "if": {
1393
+ "visible": ".cc-settings"
1394
+ },
1395
+ "then": [
1396
+ {
1397
+ "waitForThenClick": ".cc-settings"
1398
+ },
1399
+ {
1400
+ "waitForVisible": ".cc-settings-view"
1401
+ },
1402
+ {
1403
+ "click": ".cc-settings-view input[type=checkbox]:not([disabled]):checked",
1404
+ "all": true,
1405
+ "optional": true
1406
+ },
1407
+ {
1408
+ "click": ".cc-settings-view .cc-btn-accept-selected"
1409
+ }
1410
+ ],
1411
+ "else": [
1412
+ {
1413
+ "click": ".cc-dismiss"
1414
+ }
1415
+ ]
1416
+ }
1417
+ ]
1287
1418
  }
1288
1419
  ]
1289
1420
  },
@@ -3619,9 +3750,8 @@
3619
3750
  {
3620
3751
  "name": "osano",
3621
3752
  "prehideSelectors": [
3622
- ".osano-cm-window"
3753
+ ".osano-cm-window,.osano-cm-dialog"
3623
3754
  ],
3624
- "cosmetic": true,
3625
3755
  "detectCmp": [
3626
3756
  {
3627
3757
  "exists": ".osano-cm-window"
@@ -3640,7 +3770,7 @@
3640
3770
  ],
3641
3771
  "optOut": [
3642
3772
  {
3643
- "hide": ".osano-cm-window"
3773
+ "waitForThenClick": ".osano-cm-denyAll"
3644
3774
  }
3645
3775
  ]
3646
3776
  },