@duckduckgo/autoconsent 16.8.1 → 16.10.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 +26 -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/abetterrouteplanner.json +33 -0
- package/rules/autoconsent/datagrail.json +90 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/abetterrouteplanner.spec.ts +3 -0
- package/tests/datagrail.spec.ts +13 -0
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "abetterrouteplanner",
|
|
3
|
+
"vendorUrl": "https://abetterrouteplanner.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?abetterrouteplanner\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": "[data-testid=\"cookies_reject\"]"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"detectPopup": [
|
|
13
|
+
{
|
|
14
|
+
"visible": "[data-testid=\"cookies_reject\"]"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"optIn": [
|
|
18
|
+
{
|
|
19
|
+
"waitForThenClick": "[data-testid=\"cookies_ok_all\"]"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optOut": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": "[data-testid=\"cookies_reject\"]"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"test": [
|
|
28
|
+
{
|
|
29
|
+
"exists": "[data-testid=\"cookies_reject\"]",
|
|
30
|
+
"negated": true
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "datagrail",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.datagrail.io/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": [".dg-consent-banner"],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": ".dg-consent-banner"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"exists": [".dg-consent-banner", ".dg-app"]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"detectPopup": [
|
|
16
|
+
{
|
|
17
|
+
"visible": ".dg-consent-banner"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optIn": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": [".dg-consent-banner", "button.dg-button.accept_all"]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"optOut": [
|
|
26
|
+
{
|
|
27
|
+
"if": {
|
|
28
|
+
"exists": [".dg-consent-banner", "button.dg-button.reject_all, button.dg-button.accept_some"]
|
|
29
|
+
},
|
|
30
|
+
"then": [
|
|
31
|
+
{
|
|
32
|
+
"waitForThenClick": [".dg-consent-banner", "button.dg-button.reject_all, button.dg-button.accept_some"]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"else": [
|
|
36
|
+
{
|
|
37
|
+
"if": {
|
|
38
|
+
"exists": [".dg-consent-banner", ".dg-browser-signal-notice"]
|
|
39
|
+
},
|
|
40
|
+
"then": [
|
|
41
|
+
{
|
|
42
|
+
"if": {
|
|
43
|
+
"exists": [".dg-consent-banner", "button.dg-button.open_layer"]
|
|
44
|
+
},
|
|
45
|
+
"then": [
|
|
46
|
+
{
|
|
47
|
+
"waitForThenClick": [".dg-consent-banner", "button.dg-button.open_layer"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"waitForThenClick": [
|
|
51
|
+
".dg-consent-banner",
|
|
52
|
+
"button.dg-button.reject_all, button.dg-button.accept_some, button.dg-button.essential_only, button.dg-button.custom"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"else": [
|
|
57
|
+
{
|
|
58
|
+
"waitForThenClick": [".dg-consent-banner", "button.dg-header-close"]
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"else": [
|
|
64
|
+
{
|
|
65
|
+
"waitForThenClick": [".dg-consent-banner", "button.dg-button.open_layer"]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"waitForThenClick": [
|
|
69
|
+
".dg-consent-banner",
|
|
70
|
+
"button.dg-button.reject_all, button.dg-button.accept_some, button.dg-button.essential_only"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"test": [
|
|
79
|
+
{
|
|
80
|
+
"any": [
|
|
81
|
+
{
|
|
82
|
+
"cookieContains": "datagrail_consent"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"exists": [".dg-consent-banner", ".dg-browser-signal-notice"]
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|