@duckduckgo/autoconsent 10.4.0 → 10.6.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.
@@ -88,8 +88,8 @@
88
88
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
89
89
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
90
90
  EVAL_MOOVE_0: () => document.querySelectorAll("#moove_gdpr_cookie_modal input").forEach((i) => {
91
- if (!i.disabled && i.name !== "moove_gdpr_strict_cookies")
92
- i.checked = false;
91
+ if (!i.disabled)
92
+ i.checked = i.name === "moove_gdpr_strict_cookies" || i.id === "moove_gdpr_strict_cookies";
93
93
  }) || true,
94
94
  EVAL_ONENINETWO_0: () => document.cookie.includes("CC_ADVERTISING=NO") && document.cookie.includes("CC_ANALYTICS=NO"),
95
95
  EVAL_OPERA_0: () => document.cookie.includes("cookie_consent_essential=true") && !document.cookie.includes("cookie_consent_marketing=true"),
@@ -111,7 +111,7 @@
111
111
  EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
112
112
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
113
113
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
114
- EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
114
+ EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)?.[0].includes("false"),
115
115
  EVAL_TAUNTON_TEST: () => document.cookie.includes("taunton_user_consent_submitted=true"),
116
116
  EVAL_TEALIUM_0: () => typeof window.utag !== "undefined" && typeof utag.gdpr === "object",
117
117
  EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,
@@ -535,8 +535,8 @@
535
535
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
536
536
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
537
537
  EVAL_MOOVE_0: () => document.querySelectorAll("#moove_gdpr_cookie_modal input").forEach((i) => {
538
- if (!i.disabled && i.name !== "moove_gdpr_strict_cookies")
539
- i.checked = false;
538
+ if (!i.disabled)
539
+ i.checked = i.name === "moove_gdpr_strict_cookies" || i.id === "moove_gdpr_strict_cookies";
540
540
  }) || true,
541
541
  EVAL_ONENINETWO_0: () => document.cookie.includes("CC_ADVERTISING=NO") && document.cookie.includes("CC_ANALYTICS=NO"),
542
542
  EVAL_OPERA_0: () => document.cookie.includes("cookie_consent_essential=true") && !document.cookie.includes("cookie_consent_marketing=true"),
@@ -558,7 +558,7 @@
558
558
  EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
559
559
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
560
560
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
561
- EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
561
+ EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)?.[0].includes("false"),
562
562
  EVAL_TAUNTON_TEST: () => document.cookie.includes("taunton_user_consent_submitted=true"),
563
563
  EVAL_TEALIUM_0: () => typeof window.utag !== "undefined" && typeof utag.gdpr === "object",
564
564
  EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 2,
3
3
  "name": "Autoconsent",
4
- "version": "2024.3.20",
4
+ "version": "2024.4.2",
5
5
  "background": {
6
6
  "scripts": [
7
7
  "background.bundle.js"
@@ -1530,6 +1530,53 @@
1530
1530
  }
1531
1531
  ]
1532
1532
  },
1533
+ {
1534
+ "name": "Complianz opt-out",
1535
+ "prehideSelectors": [
1536
+ "[aria-describedby=\"cookieconsent:desc\"].cc-type-opt-out"
1537
+ ],
1538
+ "detectCmp": [
1539
+ {
1540
+ "exists": "[aria-describedby=\"cookieconsent:desc\"].cc-type-opt-out"
1541
+ }
1542
+ ],
1543
+ "detectPopup": [
1544
+ {
1545
+ "visible": "[aria-describedby=\"cookieconsent:desc\"].cc-type-opt-out"
1546
+ }
1547
+ ],
1548
+ "optIn": [
1549
+ {
1550
+ "click": ".cc-accept-all",
1551
+ "optional": true
1552
+ },
1553
+ {
1554
+ "click": ".cc-allow",
1555
+ "optional": true
1556
+ },
1557
+ {
1558
+ "click": ".cc-dismiss",
1559
+ "optional": true
1560
+ }
1561
+ ],
1562
+ "optOut": [
1563
+ {
1564
+ "if": {
1565
+ "exists": ".cc-deny"
1566
+ },
1567
+ "then": [
1568
+ {
1569
+ "click": ".cc-deny"
1570
+ }
1571
+ ],
1572
+ "else": [
1573
+ {
1574
+ "hide": "[aria-describedby=\"cookieconsent:desc\"]"
1575
+ }
1576
+ ]
1577
+ }
1578
+ ]
1579
+ },
1533
1580
  {
1534
1581
  "name": "Complianz optin",
1535
1582
  "prehideSelectors": [
@@ -2505,6 +2552,62 @@
2505
2552
  }
2506
2553
  ]
2507
2554
  },
2555
+ {
2556
+ "name": "Ensighten ensModal",
2557
+ "prehideSelectors": [
2558
+ ".ensModal"
2559
+ ],
2560
+ "detectCmp": [
2561
+ {
2562
+ "exists": ".ensModal"
2563
+ }
2564
+ ],
2565
+ "detectPopup": [
2566
+ {
2567
+ "visible": ".ensModal"
2568
+ }
2569
+ ],
2570
+ "optIn": [
2571
+ {
2572
+ "waitForThenClick": "#modalAcceptButton"
2573
+ }
2574
+ ],
2575
+ "optOut": [
2576
+ {
2577
+ "waitForThenClick": ".ensCheckbox:checked",
2578
+ "all": true
2579
+ },
2580
+ {
2581
+ "waitForThenClick": "#ensSave"
2582
+ }
2583
+ ]
2584
+ },
2585
+ {
2586
+ "name": "Ensighten ensNotifyBanner",
2587
+ "prehideSelectors": [
2588
+ "#ensNotifyBanner"
2589
+ ],
2590
+ "detectCmp": [
2591
+ {
2592
+ "exists": "#ensNotifyBanner"
2593
+ }
2594
+ ],
2595
+ "detectPopup": [
2596
+ {
2597
+ "visible": "#ensNotifyBanner"
2598
+ }
2599
+ ],
2600
+ "optIn": [
2601
+ {
2602
+ "waitForThenClick": "#ensCloseBanner"
2603
+ }
2604
+ ],
2605
+ "optOut": [
2606
+ {
2607
+ "waitForThenClick": "#ensRejectAll,#rejectAll,#ensRejectBanner"
2608
+ }
2609
+ ]
2610
+ },
2508
2611
  {
2509
2612
  "name": "etsy",
2510
2613
  "prehideSelectors": [
@@ -4081,7 +4184,7 @@
4081
4184
  ],
4082
4185
  "detectPopup": [
4083
4186
  {
4084
- "visible": "#moove_gdpr_cookie_info_bar"
4187
+ "visible": "#moove_gdpr_cookie_info_bar:not(.moove-gdpr-info-bar-hidden)"
4085
4188
  }
4086
4189
  ],
4087
4190
  "optIn": [
@@ -5446,7 +5549,7 @@
5446
5549
  ],
5447
5550
  "detectPopup": [
5448
5551
  {
5449
- "visible": "#tarteaucitronRoot #tarteaucitronAlertSmall,#tarteaucitronRoot #tarteaucitronAlertBig",
5552
+ "visible": "#tarteaucitronRoot #tarteaucitronAlertBig",
5450
5553
  "check": "any"
5451
5554
  }
5452
5555
  ],
@@ -88,8 +88,8 @@
88
88
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
89
89
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
90
90
  EVAL_MOOVE_0: () => document.querySelectorAll("#moove_gdpr_cookie_modal input").forEach((i) => {
91
- if (!i.disabled && i.name !== "moove_gdpr_strict_cookies")
92
- i.checked = false;
91
+ if (!i.disabled)
92
+ i.checked = i.name === "moove_gdpr_strict_cookies" || i.id === "moove_gdpr_strict_cookies";
93
93
  }) || true,
94
94
  EVAL_ONENINETWO_0: () => document.cookie.includes("CC_ADVERTISING=NO") && document.cookie.includes("CC_ANALYTICS=NO"),
95
95
  EVAL_OPERA_0: () => document.cookie.includes("cookie_consent_essential=true") && !document.cookie.includes("cookie_consent_marketing=true"),
@@ -111,7 +111,7 @@
111
111
  EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
112
112
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
113
113
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
114
- EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
114
+ EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)?.[0].includes("false"),
115
115
  EVAL_TAUNTON_TEST: () => document.cookie.includes("taunton_user_consent_submitted=true"),
116
116
  EVAL_TEALIUM_0: () => typeof window.utag !== "undefined" && typeof utag.gdpr === "object",
117
117
  EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,
@@ -535,8 +535,8 @@
535
535
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
536
536
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
537
537
  EVAL_MOOVE_0: () => document.querySelectorAll("#moove_gdpr_cookie_modal input").forEach((i) => {
538
- if (!i.disabled && i.name !== "moove_gdpr_strict_cookies")
539
- i.checked = false;
538
+ if (!i.disabled)
539
+ i.checked = i.name === "moove_gdpr_strict_cookies" || i.id === "moove_gdpr_strict_cookies";
540
540
  }) || true,
541
541
  EVAL_ONENINETWO_0: () => document.cookie.includes("CC_ADVERTISING=NO") && document.cookie.includes("CC_ANALYTICS=NO"),
542
542
  EVAL_OPERA_0: () => document.cookie.includes("cookie_consent_essential=true") && !document.cookie.includes("cookie_consent_marketing=true"),
@@ -558,7 +558,7 @@
558
558
  EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
559
559
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
560
560
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
561
- EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
561
+ EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)?.[0].includes("false"),
562
562
  EVAL_TAUNTON_TEST: () => document.cookie.includes("taunton_user_consent_submitted=true"),
563
563
  EVAL_TEALIUM_0: () => typeof window.utag !== "undefined" && typeof utag.gdpr === "object",
564
564
  EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2024.3.20",
4
+ "version": "2024.4.2",
5
5
  "background": {
6
6
  "service_worker": "background.bundle.js"
7
7
  },
@@ -1530,6 +1530,53 @@
1530
1530
  }
1531
1531
  ]
1532
1532
  },
1533
+ {
1534
+ "name": "Complianz opt-out",
1535
+ "prehideSelectors": [
1536
+ "[aria-describedby=\"cookieconsent:desc\"].cc-type-opt-out"
1537
+ ],
1538
+ "detectCmp": [
1539
+ {
1540
+ "exists": "[aria-describedby=\"cookieconsent:desc\"].cc-type-opt-out"
1541
+ }
1542
+ ],
1543
+ "detectPopup": [
1544
+ {
1545
+ "visible": "[aria-describedby=\"cookieconsent:desc\"].cc-type-opt-out"
1546
+ }
1547
+ ],
1548
+ "optIn": [
1549
+ {
1550
+ "click": ".cc-accept-all",
1551
+ "optional": true
1552
+ },
1553
+ {
1554
+ "click": ".cc-allow",
1555
+ "optional": true
1556
+ },
1557
+ {
1558
+ "click": ".cc-dismiss",
1559
+ "optional": true
1560
+ }
1561
+ ],
1562
+ "optOut": [
1563
+ {
1564
+ "if": {
1565
+ "exists": ".cc-deny"
1566
+ },
1567
+ "then": [
1568
+ {
1569
+ "click": ".cc-deny"
1570
+ }
1571
+ ],
1572
+ "else": [
1573
+ {
1574
+ "hide": "[aria-describedby=\"cookieconsent:desc\"]"
1575
+ }
1576
+ ]
1577
+ }
1578
+ ]
1579
+ },
1533
1580
  {
1534
1581
  "name": "Complianz optin",
1535
1582
  "prehideSelectors": [
@@ -2505,6 +2552,62 @@
2505
2552
  }
2506
2553
  ]
2507
2554
  },
2555
+ {
2556
+ "name": "Ensighten ensModal",
2557
+ "prehideSelectors": [
2558
+ ".ensModal"
2559
+ ],
2560
+ "detectCmp": [
2561
+ {
2562
+ "exists": ".ensModal"
2563
+ }
2564
+ ],
2565
+ "detectPopup": [
2566
+ {
2567
+ "visible": ".ensModal"
2568
+ }
2569
+ ],
2570
+ "optIn": [
2571
+ {
2572
+ "waitForThenClick": "#modalAcceptButton"
2573
+ }
2574
+ ],
2575
+ "optOut": [
2576
+ {
2577
+ "waitForThenClick": ".ensCheckbox:checked",
2578
+ "all": true
2579
+ },
2580
+ {
2581
+ "waitForThenClick": "#ensSave"
2582
+ }
2583
+ ]
2584
+ },
2585
+ {
2586
+ "name": "Ensighten ensNotifyBanner",
2587
+ "prehideSelectors": [
2588
+ "#ensNotifyBanner"
2589
+ ],
2590
+ "detectCmp": [
2591
+ {
2592
+ "exists": "#ensNotifyBanner"
2593
+ }
2594
+ ],
2595
+ "detectPopup": [
2596
+ {
2597
+ "visible": "#ensNotifyBanner"
2598
+ }
2599
+ ],
2600
+ "optIn": [
2601
+ {
2602
+ "waitForThenClick": "#ensCloseBanner"
2603
+ }
2604
+ ],
2605
+ "optOut": [
2606
+ {
2607
+ "waitForThenClick": "#ensRejectAll,#rejectAll,#ensRejectBanner"
2608
+ }
2609
+ ]
2610
+ },
2508
2611
  {
2509
2612
  "name": "etsy",
2510
2613
  "prehideSelectors": [
@@ -4081,7 +4184,7 @@
4081
4184
  ],
4082
4185
  "detectPopup": [
4083
4186
  {
4084
- "visible": "#moove_gdpr_cookie_info_bar"
4187
+ "visible": "#moove_gdpr_cookie_info_bar:not(.moove-gdpr-info-bar-hidden)"
4085
4188
  }
4086
4189
  ],
4087
4190
  "optIn": [
@@ -5446,7 +5549,7 @@
5446
5549
  ],
5447
5550
  "detectPopup": [
5448
5551
  {
5449
- "visible": "#tarteaucitronRoot #tarteaucitronAlertSmall,#tarteaucitronRoot #tarteaucitronAlertBig",
5552
+ "visible": "#tarteaucitronRoot #tarteaucitronAlertBig",
5450
5553
  "check": "any"
5451
5554
  }
5452
5555
  ],
@@ -558,8 +558,8 @@ var snippets = {
558
558
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
559
559
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
560
560
  EVAL_MOOVE_0: () => document.querySelectorAll("#moove_gdpr_cookie_modal input").forEach((i) => {
561
- if (!i.disabled && i.name !== "moove_gdpr_strict_cookies")
562
- i.checked = false;
561
+ if (!i.disabled)
562
+ i.checked = i.name === "moove_gdpr_strict_cookies" || i.id === "moove_gdpr_strict_cookies";
563
563
  }) || true,
564
564
  EVAL_ONENINETWO_0: () => document.cookie.includes("CC_ADVERTISING=NO") && document.cookie.includes("CC_ANALYTICS=NO"),
565
565
  EVAL_OPERA_0: () => document.cookie.includes("cookie_consent_essential=true") && !document.cookie.includes("cookie_consent_marketing=true"),
@@ -581,7 +581,7 @@ var snippets = {
581
581
  EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
582
582
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
583
583
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
584
- EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
584
+ EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)?.[0].includes("false"),
585
585
  EVAL_TAUNTON_TEST: () => document.cookie.includes("taunton_user_consent_submitted=true"),
586
586
  EVAL_TEALIUM_0: () => typeof window.utag !== "undefined" && typeof utag.gdpr === "object",
587
587
  EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,
@@ -533,8 +533,8 @@ var snippets = {
533
533
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
534
534
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
535
535
  EVAL_MOOVE_0: () => document.querySelectorAll("#moove_gdpr_cookie_modal input").forEach((i) => {
536
- if (!i.disabled && i.name !== "moove_gdpr_strict_cookies")
537
- i.checked = false;
536
+ if (!i.disabled)
537
+ i.checked = i.name === "moove_gdpr_strict_cookies" || i.id === "moove_gdpr_strict_cookies";
538
538
  }) || true,
539
539
  EVAL_ONENINETWO_0: () => document.cookie.includes("CC_ADVERTISING=NO") && document.cookie.includes("CC_ANALYTICS=NO"),
540
540
  EVAL_OPERA_0: () => document.cookie.includes("cookie_consent_essential=true") && !document.cookie.includes("cookie_consent_marketing=true"),
@@ -556,7 +556,7 @@ var snippets = {
556
556
  EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
557
557
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
558
558
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
559
- EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes("false"),
559
+ EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)?.[0].includes("false"),
560
560
  EVAL_TAUNTON_TEST: () => document.cookie.includes("taunton_user_consent_submitted=true"),
561
561
  EVAL_TEALIUM_0: () => typeof window.utag !== "undefined" && typeof utag.gdpr === "object",
562
562
  EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,