@duckduckgo/autoconsent 14.89.0 → 14.90.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 +16 -0
- 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 +1 -1
- package/rules/autoconsent/aylo-cookie-banner.json +45 -0
- package/rules/autoconsent/miles-and-more.json +36 -0
- package/rules/autoconsent/police-uk.json +17 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/aylo-cookie-banner.spec.ts +3 -0
- package/tests/miles-and-more.spec.ts +3 -0
- package/tests/police-uk.spec.ts +15 -0
- package/rules/autoconsent/youporn.json +0 -9
- package/rules/generated/auto_GB_tube8.com_0.json +0 -28
- package/rules/generated/auto_GB_youporn.com_0.json +0 -28
- package/tests/generated/auto_GB_tube8.com_0.spec.ts +0 -2
- package/tests/generated/auto_GB_youporn.com_0.spec.ts +0 -2
- package/tests/youporn.spec.ts +0 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'police-uk',
|
|
5
|
+
[
|
|
6
|
+
'https://www.merseyside.police.uk/',
|
|
7
|
+
'https://www.merseyside.police.uk/contact/af/contact-us-beta/contact-us/forms/contact-us-about-something-else/Complete',
|
|
8
|
+
'https://www.met.police.uk/',
|
|
9
|
+
'https://www.gmp.police.uk/',
|
|
10
|
+
'https://www.btp.police.uk/',
|
|
11
|
+
],
|
|
12
|
+
{
|
|
13
|
+
skipRegions: ['US', 'FR', 'DE'],
|
|
14
|
+
},
|
|
15
|
+
);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "youporn.com",
|
|
3
|
-
"cosmetic": true,
|
|
4
|
-
"prehideSelectors": [".euCookieModal, #js_euCookieModal"],
|
|
5
|
-
"detectCmp": [{ "exists": ".euCookieModal" }],
|
|
6
|
-
"detectPopup": [{ "exists": ".euCookieModal, #js_euCookieModal" }],
|
|
7
|
-
"optIn": [{ "click": "button[name=\"user_acceptCookie\"]" }],
|
|
8
|
-
"optOut": [{ "hide": ".euCookieModal" }]
|
|
9
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "auto_GB_tube8.com_0",
|
|
3
|
-
"vendorUrl": "https://www.tube8.com/",
|
|
4
|
-
"cosmetic": false,
|
|
5
|
-
"runContext": {
|
|
6
|
-
"main": true,
|
|
7
|
-
"frame": false,
|
|
8
|
-
"urlPattern": "^https?://(www\\.)?tube8\\.com/"
|
|
9
|
-
},
|
|
10
|
-
"prehideSelectors": [],
|
|
11
|
-
"detectCmp": [
|
|
12
|
-
{
|
|
13
|
-
"exists": "body:not([id]) > div#cookie_consent_wrapper > div:not([id]) > div:nth-child(4):not([id]) > button:nth-child(2)#consent_accept_essential"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"detectPopup": [
|
|
17
|
-
{
|
|
18
|
-
"visible": "body:not([id]) > div#cookie_consent_wrapper > div:not([id]) > div:nth-child(4):not([id]) > button:nth-child(2)#consent_accept_essential"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"optIn": [],
|
|
22
|
-
"optOut": [
|
|
23
|
-
{
|
|
24
|
-
"waitForThenClick": "body:not([id]) > div#cookie_consent_wrapper > div:not([id]) > div:nth-child(4):not([id]) > button:nth-child(2)#consent_accept_essential",
|
|
25
|
-
"comment": "Accept only essential cookies"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "auto_GB_youporn.com_0",
|
|
3
|
-
"vendorUrl": "https://www.youporn.com/",
|
|
4
|
-
"cosmetic": false,
|
|
5
|
-
"runContext": {
|
|
6
|
-
"main": true,
|
|
7
|
-
"frame": false,
|
|
8
|
-
"urlPattern": "^https?://(www\\.)?youporn\\.com/"
|
|
9
|
-
},
|
|
10
|
-
"prehideSelectors": [],
|
|
11
|
-
"detectCmp": [
|
|
12
|
-
{
|
|
13
|
-
"exists": "body:not([id]) > div#cookie_consent_wrapper > div:not([id]) > div:nth-child(4):not([id]) > button:nth-child(2)#consent_accept_essential"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"detectPopup": [
|
|
17
|
-
{
|
|
18
|
-
"visible": "body:not([id]) > div#cookie_consent_wrapper > div:not([id]) > div:nth-child(4):not([id]) > button:nth-child(2)#consent_accept_essential"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"optIn": [],
|
|
22
|
-
"optOut": [
|
|
23
|
-
{
|
|
24
|
-
"waitForThenClick": "body:not([id]) > div#cookie_consent_wrapper > div:not([id]) > div:nth-child(4):not([id]) > button:nth-child(2)#consent_accept_essential",
|
|
25
|
-
"comment": "Accept only essential cookies"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
package/tests/youporn.spec.ts
DELETED