@duckduckgo/autoconsent 6.4.1 → 6.4.2

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,21 @@
1
+ # v6.4.2 (Mon Dec 04 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Add a rule for CookieYes [#306](https://github.com/duckduckgo/autoconsent/pull/306) ([@muodov](https://github.com/muodov))
6
+ - Add a rule for yahoo pop-up [#305](https://github.com/duckduckgo/autoconsent/pull/305) ([@muodov](https://github.com/muodov))
7
+
8
+ #### 🔩 Dependency Updates
9
+
10
+ - Bump the dev-dependencies group with 3 updates [#303](https://github.com/duckduckgo/autoconsent/pull/303) ([@dependabot[bot]](https://github.com/dependabot[bot]))
11
+
12
+ #### Authors: 2
13
+
14
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
15
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
16
+
17
+ ---
18
+
1
19
  # v6.4.1 (Mon Nov 27 2023)
2
20
 
3
21
  #### 🐛 Bug Fix
@@ -665,6 +665,7 @@
665
665
  EVAL_COOKIEINFORMATION_0: () => CookieInformation.declineAllCategories() || true,
666
666
  EVAL_COOKIEINFORMATION_1: () => CookieInformation.submitAllCategories() || true,
667
667
  EVAL_COOKIEINFORMATION_2: () => document.cookie.includes("CookieInformationConsent="),
668
+ EVAL_COOKIEYES_0: () => document.cookie.includes("advertisement:no"),
668
669
  EVAL_DAILYMOTION_0: () => !!document.cookie.match("dm-euconsent-v2"),
669
670
  EVAL_DSGVO_0: () => !document.cookie.includes("sp_dsgvo_cookie_settings"),
670
671
  EVAL_DUNELM_0: () => document.cookie.includes("cc_functional=0") && document.cookie.includes("cc_targeting=0"),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 2,
3
3
  "name": "Autoconsent",
4
- "version": "2023.11.20",
4
+ "version": "2023.11.27",
5
5
  "background": {
6
6
  "scripts": [
7
7
  "background.bundle.js"
@@ -1496,6 +1496,74 @@
1496
1496
  }
1497
1497
  ]
1498
1498
  },
1499
+ {
1500
+ "name": "cookieyes",
1501
+ "prehideSelectors": [
1502
+ ".cky-overlay,.cky-consent-container"
1503
+ ],
1504
+ "detectCmp": [
1505
+ {
1506
+ "exists": ".cky-consent-container"
1507
+ }
1508
+ ],
1509
+ "detectPopup": [
1510
+ {
1511
+ "visible": ".cky-consent-container"
1512
+ }
1513
+ ],
1514
+ "optIn": [
1515
+ {
1516
+ "waitForThenClick": ".cky-consent-container [data-cky-tag=accept-button]"
1517
+ }
1518
+ ],
1519
+ "optOut": [
1520
+ {
1521
+ "if": {
1522
+ "exists": ".cky-consent-container [data-cky-tag=reject-button]"
1523
+ },
1524
+ "then": [
1525
+ {
1526
+ "waitForThenClick": ".cky-consent-container [data-cky-tag=reject-button]"
1527
+ }
1528
+ ],
1529
+ "else": [
1530
+ {
1531
+ "if": {
1532
+ "exists": ".cky-consent-container [data-cky-tag=settings-button]"
1533
+ },
1534
+ "then": [
1535
+ {
1536
+ "click": ".cky-consent-container [data-cky-tag=settings-button]"
1537
+ },
1538
+ {
1539
+ "waitFor": ".cky-modal-open input[type=checkbox]"
1540
+ },
1541
+ {
1542
+ "click": ".cky-modal-open input[type=checkbox]:checked",
1543
+ "all": true,
1544
+ "optional": true
1545
+ },
1546
+ {
1547
+ "waitForThenClick": ".cky-modal [data-cky-tag=detail-save-button]"
1548
+ }
1549
+ ],
1550
+ "else": [
1551
+ {
1552
+ "hide": [
1553
+ ".cky-consent-container,.cky-overlay"
1554
+ ]
1555
+ }
1556
+ ]
1557
+ }
1558
+ ]
1559
+ }
1560
+ ],
1561
+ "test": [
1562
+ {
1563
+ "eval": "EVAL_COOKIEYES_0"
1564
+ }
1565
+ ]
1566
+ },
1499
1567
  {
1500
1568
  "name": "corona-in-zahlen.de",
1501
1569
  "prehideSelectors": [
@@ -5193,6 +5261,35 @@
5193
5261
  }
5194
5262
  ]
5195
5263
  },
5264
+ {
5265
+ "name": "Yahoo",
5266
+ "runContext": {
5267
+ "urlPattern": "^https://consent\\.yahoo\\.com/v2/"
5268
+ },
5269
+ "prehideSelectors": [
5270
+ "#reject-all"
5271
+ ],
5272
+ "detectCmp": [
5273
+ {
5274
+ "exists": "#consent-page"
5275
+ }
5276
+ ],
5277
+ "detectPopup": [
5278
+ {
5279
+ "visible": "#consent-page"
5280
+ }
5281
+ ],
5282
+ "optIn": [
5283
+ {
5284
+ "waitForThenClick": "#consent-page button[value=agree]"
5285
+ }
5286
+ ],
5287
+ "optOut": [
5288
+ {
5289
+ "waitForThenClick": "#consent-page button[value=reject]"
5290
+ }
5291
+ ]
5292
+ },
5196
5293
  {
5197
5294
  "name": "youporn.com",
5198
5295
  "cosmetic": true,
@@ -665,6 +665,7 @@
665
665
  EVAL_COOKIEINFORMATION_0: () => CookieInformation.declineAllCategories() || true,
666
666
  EVAL_COOKIEINFORMATION_1: () => CookieInformation.submitAllCategories() || true,
667
667
  EVAL_COOKIEINFORMATION_2: () => document.cookie.includes("CookieInformationConsent="),
668
+ EVAL_COOKIEYES_0: () => document.cookie.includes("advertisement:no"),
668
669
  EVAL_DAILYMOTION_0: () => !!document.cookie.match("dm-euconsent-v2"),
669
670
  EVAL_DSGVO_0: () => !document.cookie.includes("sp_dsgvo_cookie_settings"),
670
671
  EVAL_DUNELM_0: () => document.cookie.includes("cc_functional=0") && document.cookie.includes("cc_targeting=0"),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2023.11.20",
4
+ "version": "2023.11.27",
5
5
  "background": {
6
6
  "service_worker": "background.bundle.js"
7
7
  },
@@ -1496,6 +1496,74 @@
1496
1496
  }
1497
1497
  ]
1498
1498
  },
1499
+ {
1500
+ "name": "cookieyes",
1501
+ "prehideSelectors": [
1502
+ ".cky-overlay,.cky-consent-container"
1503
+ ],
1504
+ "detectCmp": [
1505
+ {
1506
+ "exists": ".cky-consent-container"
1507
+ }
1508
+ ],
1509
+ "detectPopup": [
1510
+ {
1511
+ "visible": ".cky-consent-container"
1512
+ }
1513
+ ],
1514
+ "optIn": [
1515
+ {
1516
+ "waitForThenClick": ".cky-consent-container [data-cky-tag=accept-button]"
1517
+ }
1518
+ ],
1519
+ "optOut": [
1520
+ {
1521
+ "if": {
1522
+ "exists": ".cky-consent-container [data-cky-tag=reject-button]"
1523
+ },
1524
+ "then": [
1525
+ {
1526
+ "waitForThenClick": ".cky-consent-container [data-cky-tag=reject-button]"
1527
+ }
1528
+ ],
1529
+ "else": [
1530
+ {
1531
+ "if": {
1532
+ "exists": ".cky-consent-container [data-cky-tag=settings-button]"
1533
+ },
1534
+ "then": [
1535
+ {
1536
+ "click": ".cky-consent-container [data-cky-tag=settings-button]"
1537
+ },
1538
+ {
1539
+ "waitFor": ".cky-modal-open input[type=checkbox]"
1540
+ },
1541
+ {
1542
+ "click": ".cky-modal-open input[type=checkbox]:checked",
1543
+ "all": true,
1544
+ "optional": true
1545
+ },
1546
+ {
1547
+ "waitForThenClick": ".cky-modal [data-cky-tag=detail-save-button]"
1548
+ }
1549
+ ],
1550
+ "else": [
1551
+ {
1552
+ "hide": [
1553
+ ".cky-consent-container,.cky-overlay"
1554
+ ]
1555
+ }
1556
+ ]
1557
+ }
1558
+ ]
1559
+ }
1560
+ ],
1561
+ "test": [
1562
+ {
1563
+ "eval": "EVAL_COOKIEYES_0"
1564
+ }
1565
+ ]
1566
+ },
1499
1567
  {
1500
1568
  "name": "corona-in-zahlen.de",
1501
1569
  "prehideSelectors": [
@@ -5193,6 +5261,35 @@
5193
5261
  }
5194
5262
  ]
5195
5263
  },
5264
+ {
5265
+ "name": "Yahoo",
5266
+ "runContext": {
5267
+ "urlPattern": "^https://consent\\.yahoo\\.com/v2/"
5268
+ },
5269
+ "prehideSelectors": [
5270
+ "#reject-all"
5271
+ ],
5272
+ "detectCmp": [
5273
+ {
5274
+ "exists": "#consent-page"
5275
+ }
5276
+ ],
5277
+ "detectPopup": [
5278
+ {
5279
+ "visible": "#consent-page"
5280
+ }
5281
+ ],
5282
+ "optIn": [
5283
+ {
5284
+ "waitForThenClick": "#consent-page button[value=agree]"
5285
+ }
5286
+ ],
5287
+ "optOut": [
5288
+ {
5289
+ "waitForThenClick": "#consent-page button[value=reject]"
5290
+ }
5291
+ ]
5292
+ },
5196
5293
  {
5197
5294
  "name": "youporn.com",
5198
5295
  "cosmetic": true,
@@ -688,6 +688,7 @@ var snippets = {
688
688
  EVAL_COOKIEINFORMATION_0: () => CookieInformation.declineAllCategories() || true,
689
689
  EVAL_COOKIEINFORMATION_1: () => CookieInformation.submitAllCategories() || true,
690
690
  EVAL_COOKIEINFORMATION_2: () => document.cookie.includes("CookieInformationConsent="),
691
+ EVAL_COOKIEYES_0: () => document.cookie.includes("advertisement:no"),
691
692
  EVAL_DAILYMOTION_0: () => !!document.cookie.match("dm-euconsent-v2"),
692
693
  EVAL_DSGVO_0: () => !document.cookie.includes("sp_dsgvo_cookie_settings"),
693
694
  EVAL_DUNELM_0: () => document.cookie.includes("cc_functional=0") && document.cookie.includes("cc_targeting=0"),
@@ -663,6 +663,7 @@ var snippets = {
663
663
  EVAL_COOKIEINFORMATION_0: () => CookieInformation.declineAllCategories() || true,
664
664
  EVAL_COOKIEINFORMATION_1: () => CookieInformation.submitAllCategories() || true,
665
665
  EVAL_COOKIEINFORMATION_2: () => document.cookie.includes("CookieInformationConsent="),
666
+ EVAL_COOKIEYES_0: () => document.cookie.includes("advertisement:no"),
666
667
  EVAL_DAILYMOTION_0: () => !!document.cookie.match("dm-euconsent-v2"),
667
668
  EVAL_DSGVO_0: () => !document.cookie.includes("sp_dsgvo_cookie_settings"),
668
669
  EVAL_DUNELM_0: () => document.cookie.includes("cc_functional=0") && document.cookie.includes("cc_targeting=0"),