@duckduckgo/autoconsent 14.89.0 → 14.91.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 +29 -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/aytm.json +28 -0
- package/rules/autoconsent/miles-and-more.json +36 -0
- package/rules/autoconsent/opera.com.json +6 -1
- 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/aytm.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
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aylo-cookie-banner",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.redtube.com/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#cookie_consent_wrapper, #cookie_consent_min_wrapper, #manage_cookie_consent_modal"],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": "#cookie_consent_wrapper:not(.hideConsent)"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"exists": "#cookie_consent_wrapper #consent_accept_essential, #manage_cookie_consent_modal #modal_consent_accept_essential"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"detectPopup": [
|
|
16
|
+
{
|
|
17
|
+
"visible": "#cookie_consent_wrapper:not(.hideConsent)"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"visible": "#age_disclaimer_window,#ageDisclaimerWrapper",
|
|
21
|
+
"check": "none"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optIn": [
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": "#cookie_consent_wrapper #consent_accept_all, #manage_cookie_consent_modal #modal_consent_accept_all"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"optOut": [
|
|
30
|
+
{
|
|
31
|
+
"waitForThenClick": "#cookie_consent_wrapper #consent_accept_essential, #manage_cookie_consent_modal #modal_consent_accept_essential",
|
|
32
|
+
"all": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"waitForThenClick": "#cookie_consent_min_wrapper #close_minimized_banner",
|
|
36
|
+
"comment": "dismiss the 'Some features may not be available...' minimized banner that may appear after opting out",
|
|
37
|
+
"optional": true
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"test": [
|
|
41
|
+
{
|
|
42
|
+
"cookieContains": "cookieConsent=1"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aytm",
|
|
3
|
+
"vendorUrl": "https://aytm.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.|)?aytm\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#cookie-consent"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "#cookie-consent[style*=\"max-height\"] #cookie-status-reject"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "#cookie-consent[style*=\"max-height\"] #cookie-status-reject"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": "#cookie-consent[style*=\"max-height\"] #cookie-status-agree"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": "#cookie-consent[style*=\"max-height\"] #cookie-status-reject"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "miles-and-more",
|
|
3
|
+
"vendorUrl": "https://www.miles-and-more.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https://(www\\.)?miles-and-more\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["dialog.cookieconsent__dialog"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": ".cookieconsent__base[data-component=\"cookieconsent\"]"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": ".cookieconsent__buttonAcceptNecessary"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": ".cookieconsent__buttonAcceptAll"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"wait": 500
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"waitForThenClick": ".cookieconsent__buttonAcceptNecessary"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"test": [
|
|
32
|
+
{
|
|
33
|
+
"cookieContains": "consent_choice="
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -22,7 +22,12 @@
|
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
24
|
"optOut": [
|
|
25
|
-
{
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": "#cookie-consent .cookie-consent__switch.active:not(.always_on)",
|
|
27
|
+
"all": true,
|
|
28
|
+
"timeout": 500,
|
|
29
|
+
"optional": true
|
|
30
|
+
},
|
|
26
31
|
{ "waitForThenClick": "#cookie-consent .cookie-selection__btn" }
|
|
27
32
|
],
|
|
28
33
|
"test": [{ "cookieContains": "cookie_consent_essential=true" }, { "cookieContains": "cookie_consent_marketing=true", "negated": true }]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "police-uk",
|
|
3
|
+
"prehideSelectors": ["#js-consent-banner"],
|
|
4
|
+
"detectCmp": [{ "exists": "#js-consent-banner #js-cookie-reject-button" }],
|
|
5
|
+
"detectPopup": [{ "visible": "#js-consent-banner #js-cookie-reject-button" }],
|
|
6
|
+
"optIn": [
|
|
7
|
+
{ "waitForThenClick": "#js-consent-banner #js-cookie-accept-button" },
|
|
8
|
+
{ "waitForVisible": "#js-consent-banner #js-cookie-dismiss-button", "timeout": 5000, "optional": true },
|
|
9
|
+
{ "click": "#js-consent-banner #js-cookie-dismiss-button", "optional": true }
|
|
10
|
+
],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{ "waitForThenClick": "#js-consent-banner #js-cookie-reject-button" },
|
|
13
|
+
{ "waitForVisible": "#js-consent-banner #js-cookie-dismiss-button", "timeout": 5000, "optional": true },
|
|
14
|
+
{ "click": "#js-consent-banner #js-cookie-dismiss-button", "optional": true }
|
|
15
|
+
],
|
|
16
|
+
"test": [{ "cookieContains": "cookie-consent=" }]
|
|
17
|
+
}
|