@duckduckgo/autoconsent 16.39.0 → 16.40.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/massgeneralbrigham.json +35 -0
- package/rules/autoconsent/rspb.json +42 -0
- package/rules/autoconsent/scmp.json +11 -3
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/massgeneralbrigham.spec.ts +3 -0
- package/tests/rspb.spec.ts +3 -0
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "massgeneralbrigham",
|
|
3
|
+
"vendorUrl": "https://www.massgeneralbrigham.org/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://(\\w+\\.)?massgeneralbrigham\\.org/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": [".cookie-banner[data-block-name=\"cookie-banner\"]"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"exists": ".cookie-banner[data-block-name=\"cookie-banner\"] .alert-close"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": ".cookie-banner[data-block-name=\"cookie-banner\"] .alert-close"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": ".cookie-banner[data-block-name=\"cookie-banner\"] .alert-close"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": ".cookie-banner[data-block-name=\"cookie-banner\"] .alert-close"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"test": [
|
|
30
|
+
{
|
|
31
|
+
"exists": ".cookie-banner[data-block-name=\"cookie-banner\"]",
|
|
32
|
+
"negated": true
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rspb.org.uk",
|
|
3
|
+
"vendorUrl": "https://www.rspb.org.uk/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"main": true,
|
|
7
|
+
"frame": false,
|
|
8
|
+
"urlPattern": "^https://(\\w+\\.)?rspb\\.org\\.uk/"
|
|
9
|
+
},
|
|
10
|
+
"prehideSelectors": ["rspb-cookie-banner"],
|
|
11
|
+
"detectCmp": [
|
|
12
|
+
{
|
|
13
|
+
"exists": "rspb-cookie-banner"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"detectPopup": [
|
|
17
|
+
{
|
|
18
|
+
"visible": "rspb-cookie-banner"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"optIn": [
|
|
22
|
+
{
|
|
23
|
+
"waitForThenClick": "rspb-cookie-banner .buttons button.btn-primary"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"optOut": [
|
|
27
|
+
{
|
|
28
|
+
"waitForThenClick": "rspb-cookie-banner .buttons button.btn-light"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"waitForVisible": "rspb-cookie-banner [data-testid=\"options\"]"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"waitForThenClick": "rspb-cookie-banner button[label=\"Save settings\"]"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"test": [
|
|
38
|
+
{
|
|
39
|
+
"cookieContains": "RSPB.AllowMarketingCookies=No"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -7,18 +7,21 @@
|
|
|
7
7
|
"prehideSelectors": ["[data-qa=\"GDPRBanner-Container\"]"],
|
|
8
8
|
"detectCmp": [
|
|
9
9
|
{
|
|
10
|
-
"exists": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]"
|
|
10
|
+
"any": [{ "exists": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]" }, { "exists": ".fc-consent-root" }]
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"detectPopup": [
|
|
14
14
|
{
|
|
15
|
-
"
|
|
15
|
+
"any": [
|
|
16
|
+
{ "visible": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]" },
|
|
17
|
+
{ "visible": ".fc-consent-root .fc-dialog-container" }
|
|
18
|
+
]
|
|
16
19
|
}
|
|
17
20
|
],
|
|
18
21
|
"optIn": [
|
|
19
22
|
{
|
|
20
23
|
"waitForVisible": ".fc-consent-root .fc-dialog-container",
|
|
21
|
-
"timeout":
|
|
24
|
+
"timeout": 4000,
|
|
22
25
|
"optional": true
|
|
23
26
|
},
|
|
24
27
|
{
|
|
@@ -60,6 +63,11 @@
|
|
|
60
63
|
}
|
|
61
64
|
]
|
|
62
65
|
},
|
|
66
|
+
{
|
|
67
|
+
"waitForVisible": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]",
|
|
68
|
+
"timeout": 3000,
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
63
71
|
{
|
|
64
72
|
"hide": "[data-qa=\"GDPRBanner-Container\"]"
|
|
65
73
|
}
|