@duckduckgo/autoconsent 16.34.0 → 16.35.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/compact-rules.json +1 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.standalone.js +1 -1
- package/package.json +1 -1
- package/rules/autoconsent/coolblue.json +33 -0
- package/rules/autoconsent/postnl.json +28 -3
- package/rules/autoconsent/twitch.json +8 -3
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/coolblue.spec.ts +7 -0
- package/tests/twitch.spec.ts +1 -1
- package/rules/generated/auto_CH_coolblue.de_egw.json +0 -40
- package/tests/generated/auto_CH_coolblue.de_egw.spec.ts +0 -2
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "coolblue",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.coolblue.nl/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": false,
|
|
7
|
+
"runContext": {
|
|
8
|
+
"main": true,
|
|
9
|
+
"frame": false
|
|
10
|
+
},
|
|
11
|
+
"prehideSelectors": ["dialog:has(#cookie-banner-2025-form)"],
|
|
12
|
+
"detectCmp": [
|
|
13
|
+
{
|
|
14
|
+
"exists": "#cookie-banner-2025-form"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"detectPopup": [
|
|
18
|
+
{
|
|
19
|
+
"visible": "button[form=\"cookie-banner-2025-form\"][name=\"accept_cookie\"]"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optIn": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": "button[form=\"cookie-banner-2025-form\"][name=\"accept_cookie\"][value=\"all_categories\"]"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"optOut": [
|
|
28
|
+
{
|
|
29
|
+
"comment": "Submits the banner with only the pre-checked strictly necessary categories",
|
|
30
|
+
"waitForThenClick": "button[form=\"cookie-banner-2025-form\"][name=\"accept_cookie\"][value=\"selection\"]"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"urlPattern": "^https://([a-z]*\\.)?postnl\\.nl/"
|
|
7
7
|
},
|
|
8
8
|
"prehideSelectors": ["pnl-cookie-wall-widget"],
|
|
9
|
+
"minimumRuleStepVersion": 2,
|
|
9
10
|
"detectCmp": [
|
|
10
11
|
{
|
|
11
12
|
"exists": "pnl-cookie-wall-widget"
|
|
@@ -13,17 +14,41 @@
|
|
|
13
14
|
],
|
|
14
15
|
"detectPopup": [
|
|
15
16
|
{
|
|
16
|
-
"visible": "pnl-cookie-wall-widget"
|
|
17
|
+
"visible": ["pnl-cookie-wall-widget", ".pnl-cookie-wall"]
|
|
17
18
|
}
|
|
18
19
|
],
|
|
19
20
|
"optIn": [
|
|
20
21
|
{
|
|
21
|
-
"waitForThenClick": ["pnl-cookie-wall-widget", "button.
|
|
22
|
+
"waitForThenClick": ["pnl-cookie-wall-widget", ".cookie-overview__footer button.stamp-button--variant-primary"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"waitForVisible": ["pnl-cookie-wall-widget", ".pnl-cookie-wall"],
|
|
26
|
+
"check": "none",
|
|
27
|
+
"timeout": 3000,
|
|
28
|
+
"optional": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"comment": "the wall locks and dims body via inline styles, and sometimes fails to restore them",
|
|
32
|
+
"setStyle": "",
|
|
33
|
+
"selector": "body",
|
|
34
|
+
"optional": true
|
|
22
35
|
}
|
|
23
36
|
],
|
|
24
37
|
"optOut": [
|
|
25
38
|
{
|
|
26
|
-
"waitForThenClick": ["pnl-cookie-wall-widget", "button.
|
|
39
|
+
"waitForThenClick": ["pnl-cookie-wall-widget", ".cookie-overview__footer button.stamp-button--variant-secondary:last-child"]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"waitForVisible": ["pnl-cookie-wall-widget", ".pnl-cookie-wall"],
|
|
43
|
+
"check": "none",
|
|
44
|
+
"timeout": 3000,
|
|
45
|
+
"optional": true
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"comment": "the wall locks and dims body via inline styles, and sometimes fails to restore them",
|
|
49
|
+
"setStyle": "",
|
|
50
|
+
"selector": "body",
|
|
51
|
+
"optional": true
|
|
27
52
|
}
|
|
28
53
|
],
|
|
29
54
|
"test": [
|
|
@@ -17,14 +17,19 @@
|
|
|
17
17
|
{
|
|
18
18
|
"if": { "exists": "[data-a-target=\"consent-banner-accept\"]" },
|
|
19
19
|
"then": [
|
|
20
|
-
{
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "[data-a-target=\"consent-banner\"] button:not([data-a-target])",
|
|
22
|
+
"retry": 3,
|
|
23
|
+
"retryInterval": 1000
|
|
24
|
+
},
|
|
21
25
|
{ "waitForVisible": "[data-a-target=\"consent-banner\"]", "check": "none" }
|
|
22
26
|
],
|
|
23
27
|
"else": [
|
|
24
|
-
{ "
|
|
25
|
-
{ "waitFor": "input[type=checkbox][data-a-target=tw-checkbox]" },
|
|
28
|
+
{ "waitForThenClick": "button[data-a-target=\"consent-banner-manage-preferences\"]" },
|
|
29
|
+
{ "waitFor": "input[type=checkbox][data-a-target=tw-checkbox]:not([disabled])" },
|
|
26
30
|
{
|
|
27
31
|
"click": "input[type=checkbox][data-a-target=tw-checkbox]:not(:checked):not([disabled])",
|
|
32
|
+
"all": true,
|
|
28
33
|
"optional": true
|
|
29
34
|
},
|
|
30
35
|
{ "waitForThenClick": "[data-a-target=consent-modal-save]" },
|