@duckduckgo/autoconsent 10.4.0 → 10.5.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 +2 -2
- package/dist/addon-firefox/content.bundle.js +2 -2
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +104 -1
- package/dist/addon-mv3/background.bundle.js +2 -2
- package/dist/addon-mv3/content.bundle.js +2 -2
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +104 -1
- package/dist/autoconsent.cjs.js +2 -2
- package/dist/autoconsent.esm.js +2 -2
- package/dist/autoconsent.playwright.js +1 -1
- package/dist/autoconsent.unit.js +106 -3
- package/lib/eval-snippets.ts +1 -1
- package/package.json +1 -1
- package/rules/autoconsent/complianz-opt-out.json +47 -0
- package/rules/autoconsent/ens-modal.json +13 -0
- package/rules/autoconsent/ens-notify-banner.json +12 -0
- package/rules/autoconsent/moove.json +1 -1
- package/rules/rules.json +104 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# v10.5.0 (Tue Apr 02 2024)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Fix Moove on mitglieder.franzspitzer.de [#409](https://github.com/duckduckgo/autoconsent/pull/409) ([@muodov](https://github.com/muodov))
|
|
6
|
+
- Add .cc-type-out-out variant of Complianz popup [#402](https://github.com/duckduckgo/autoconsent/pull/402) ([@sammacbeth](https://github.com/sammacbeth))
|
|
7
|
+
- Rules for two Ensighten banner variants [#403](https://github.com/duckduckgo/autoconsent/pull/403) ([@sammacbeth](https://github.com/sammacbeth))
|
|
8
|
+
|
|
9
|
+
#### Authors: 2
|
|
10
|
+
|
|
11
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
12
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
1
16
|
# v10.4.0 (Tue Mar 26 2024)
|
|
2
17
|
|
|
3
18
|
#### 🚀 Enhancement
|
|
@@ -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
|
|
92
|
-
i.checked =
|
|
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"),
|
|
@@ -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
|
|
539
|
-
i.checked =
|
|
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"),
|
|
@@ -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": [
|
|
@@ -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
|
|
92
|
-
i.checked =
|
|
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"),
|
|
@@ -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
|
|
539
|
-
i.checked =
|
|
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"),
|
|
@@ -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": [
|
package/dist/autoconsent.cjs.js
CHANGED
|
@@ -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
|
|
562
|
-
i.checked =
|
|
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"),
|
package/dist/autoconsent.esm.js
CHANGED
|
@@ -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
|
|
537
|
-
i.checked =
|
|
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"),
|