@duckduckgo/autoconsent 14.94.0 → 14.95.1
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 +34 -0
- package/data/coverage.json +1424 -1485
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/manifest.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/rules.json +1 -1
- package/package.json +2 -1
- package/rules/autoconsent/aws-amazon.json +23 -13
- package/rules/autoconsent/didomi.json +1 -1
- package/rules/autoconsent/yachtclubgames.json +35 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rules.json +1 -1
- package/scripts/bundle-config-rules.ts +16 -10
- package/tests/didomi.spec.ts +1 -2
- package/tests/yachtclubgames.spec.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckduckgo/autoconsent",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.95.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"types": "./dist/types/web.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"esbuild": "^0.28.0",
|
|
73
73
|
"eslint": "^10.0.3",
|
|
74
74
|
"globals": "^17.4.0",
|
|
75
|
+
"jsonc-parser": "^3.3.1",
|
|
75
76
|
"markdown-it": "^14.0.0",
|
|
76
77
|
"mocha": "^11.0.1",
|
|
77
78
|
"prettier": "3.8.3",
|
|
@@ -3,21 +3,31 @@
|
|
|
3
3
|
"prehideSelectors": ["#awsccc-cb-content", "#awsccc-cs-container", "#awsccc-cs-modalOverlay", "#awsccc-cs-container-inner"],
|
|
4
4
|
"detectCmp": [{ "exists": "#awsccc-cb-content" }],
|
|
5
5
|
"detectPopup": [{ "visible": "#awsccc-cb-content" }],
|
|
6
|
-
"optIn": [{ "click": "button[data-id=awsccc-cb-btn-accept" }],
|
|
6
|
+
"optIn": [{ "click": "button[data-id=awsccc-cb-btn-accept]" }],
|
|
7
7
|
"optOut": [
|
|
8
8
|
{
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
"if": { "exists": "button[data-id=awsccc-cb-btn-decline]" },
|
|
10
|
+
"then": [
|
|
11
|
+
{
|
|
12
|
+
"click": "button[data-id=awsccc-cb-btn-decline]"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"else": [
|
|
16
|
+
{
|
|
17
|
+
"click": "button[data-id=awsccc-cb-btn-customize]"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"waitFor": "input[aria-checked]"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"click": "input[aria-checked=true]",
|
|
24
|
+
"all": true,
|
|
25
|
+
"optional": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"click": "button[data-id=awsccc-cs-btn-save]"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
21
31
|
}
|
|
22
32
|
]
|
|
23
33
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"detectCmp": [{ "exists": "#didomi-host" }],
|
|
7
7
|
"detectPopup": [
|
|
8
8
|
{
|
|
9
|
-
"visible": "#didomi-popup, #didomi-notice, .didomi-popup-notice, .didomi-notice-banner, #didomi-host:not(:empty)",
|
|
9
|
+
"visible": "#didomi-popup, #didomi-notice, .didomi-popup-notice, .didomi-notice-banner, #didomi-host:not([aria-hidden=\"true\"]):not(:empty)",
|
|
10
10
|
"check": "any"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "yachtclubgames.com",
|
|
3
|
+
"vendorUrl": "https://www.yachtclubgames.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?yachtclubgames\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["div.cookie.flex.flex-wrap"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "div.cookie.flex.flex-wrap"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "div.cookie.flex.flex-wrap"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": "xpath///div[contains(@class,'cookie')]//button[normalize-space()='Accept']"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": "xpath///div[contains(@class,'cookie')]//button[normalize-space()='Deny']"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"test": [
|
|
29
|
+
{
|
|
30
|
+
"waitForVisible": "div.cookie.flex.flex-wrap",
|
|
31
|
+
"timeout": 1000,
|
|
32
|
+
"check": "none"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|