@duckduckgo/autoconsent 16.52.0 → 16.54.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/AGENTS.md +1 -1
- package/CHANGELOG.md +111 -0
- package/data/coverage.json +3302 -2383
- 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 +2 -2
- package/rules/autoconsent/accurx.json +26 -0
- package/rules/autoconsent/admetricspro.json +53 -0
- package/rules/autoconsent/aliexpress.json +37 -13
- package/rules/autoconsent/bigid.json +29 -13
- package/rules/autoconsent/bnes-cc.json +27 -0
- package/rules/autoconsent/burpee-com.json +22 -10
- package/rules/autoconsent/c-banner-allow-cookies.json +17 -0
- package/rules/autoconsent/ccm19.json +31 -0
- package/rules/autoconsent/channel4.json +5 -5
- package/rules/autoconsent/citizensadvice.json +43 -0
- package/rules/autoconsent/civic-cookie-control.json +9 -9
- package/rules/autoconsent/clasohlson.com.json +13 -0
- package/rules/autoconsent/cm-cookie-manager.json +20 -0
- package/rules/autoconsent/complianz-optin.json +11 -1
- package/rules/autoconsent/concept3d.json +19 -0
- package/rules/autoconsent/conextra.json +18 -0
- package/rules/autoconsent/cookie-script.json +23 -2
- package/rules/autoconsent/cookiecuttr.json +3 -2
- package/rules/autoconsent/costco-travel.json +44 -0
- package/rules/autoconsent/craft-cookie-consent.json +65 -0
- package/rules/autoconsent/cz-eshop-cookies-consent.json +9 -0
- package/rules/autoconsent/depop.json +16 -14
- package/rules/autoconsent/dsgvo.json +8 -2
- package/rules/autoconsent/dwaalzin-nu.json +13 -0
- package/rules/autoconsent/eastlink.json +66 -0
- package/rules/autoconsent/elsevier.json +3 -3
- package/rules/autoconsent/eneba.json +66 -0
- package/rules/autoconsent/ensighten.json +2 -2
- package/rules/autoconsent/eset.json +57 -0
- package/rules/autoconsent/europa-eu.json +11 -7
- package/rules/autoconsent/figma.json +37 -0
- package/rules/autoconsent/finna.json +29 -0
- package/rules/autoconsent/gla.ac.uk.json +45 -0
- package/rules/autoconsent/head-fi.json +35 -0
- package/rules/autoconsent/istore-co-za.json +18 -0
- package/rules/autoconsent/kiwico.json +48 -0
- package/rules/autoconsent/klaxit-cookie-consent.json +9 -0
- package/rules/autoconsent/kwik-fit.json +16 -0
- package/rules/autoconsent/malaysiaairlines.com.json +42 -0
- package/rules/autoconsent/meridiancu.json +15 -0
- package/rules/autoconsent/meteored.json +40 -0
- package/rules/autoconsent/mobirise-cookies-alert-cosmetic.json +30 -0
- package/rules/autoconsent/mobirise-cookies-alert.json +34 -0
- package/rules/autoconsent/msg-cookie.json +9 -0
- package/rules/autoconsent/nestpensions.json +14 -0
- package/rules/autoconsent/nhs-jobs.json +11 -0
- package/rules/autoconsent/occ-gdpr.json +17 -0
- package/rules/autoconsent/piwik-pro.json +83 -0
- package/rules/autoconsent/plentyshop.json +27 -0
- package/rules/autoconsent/posthog.json +35 -0
- package/rules/autoconsent/quantcast.json +11 -0
- package/rules/autoconsent/quick-cookie-consent.json +70 -0
- package/rules/autoconsent/savills.json +44 -0
- package/rules/autoconsent/schadefonds.json +15 -0
- package/rules/autoconsent/scottish-government-design-system.json +14 -0
- package/rules/autoconsent/service2school.json +45 -0
- package/rules/autoconsent/smallpdf.json +44 -0
- package/rules/autoconsent/somerset-council.json +16 -0
- package/rules/autoconsent/sportmedizin-rheuma.json +17 -0
- package/rules/autoconsent/stepstone-ccm.json +19 -0
- package/rules/autoconsent/teacherspensions.co.uk.json +46 -0
- package/rules/autoconsent/thenude.json +108 -0
- package/rules/autoconsent/tna-cookie-banner.json +43 -0
- package/rules/autoconsent/toyota.json +14 -0
- package/rules/autoconsent/tracsis-delay-repay.json +13 -0
- package/rules/autoconsent/truendo.json +28 -0
- package/rules/autoconsent/truevault-polaris.json +8 -0
- package/rules/autoconsent/tti-cookie-popup.json +72 -0
- package/rules/autoconsent/u-cookie-consent.json +9 -0
- package/rules/autoconsent/ubisoft-com.json +64 -0
- package/rules/autoconsent/volvocars-com.json +1 -1
- package/rules/autoconsent/wbd-legal-terms.json +28 -10
- package/rules/autoconsent/what3words.json +53 -0
- package/rules/autoconsent/whitepages-gpc-banner.json +14 -0
- package/rules/autoconsent/wp-cookie-notice.json +1 -1
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/accurx.spec.ts +3 -0
- package/tests/admetricspro.spec.ts +21 -0
- package/tests/aliexpress.spec.ts +5 -1
- package/tests/bigid.spec.ts +6 -0
- package/tests/bnes-cc.spec.ts +3 -0
- package/tests/burpee-com.spec.ts +3 -0
- package/tests/c-banner-allow-cookies.spec.ts +3 -0
- package/tests/ccm19.spec.ts +11 -0
- package/tests/channel4.spec.ts +7 -3
- package/tests/citizensadvice.spec.ts +3 -0
- package/tests/civic-cookie-control.spec.ts +9 -1
- package/tests/clasohlson.com.spec.ts +3 -0
- package/tests/cm-cookie-manager.spec.ts +11 -0
- package/tests/complianz-optin.spec.ts +5 -1
- package/tests/concept3d.spec.ts +8 -0
- package/tests/conextra.spec.ts +8 -0
- package/tests/cookie-script.spec.ts +8 -3
- package/tests/cookiecuttr.spec.ts +8 -1
- package/tests/costco-travel.spec.ts +5 -0
- package/tests/craft-cookie-consent.spec.ts +9 -0
- package/tests/cz-eshop-cookies-consent.spec.ts +10 -0
- package/tests/depop.spec.ts +3 -1
- package/tests/dsgvo.spec.ts +8 -10
- package/tests/dwaalzin-nu.spec.ts +6 -0
- package/tests/eastlink.spec.ts +3 -0
- package/tests/elsevier.spec.ts +5 -1
- package/tests/eneba.spec.ts +3 -0
- package/tests/eset.spec.ts +9 -0
- package/tests/europa-eu.spec.ts +6 -1
- package/tests/figma.spec.ts +5 -0
- package/tests/finna.spec.ts +3 -0
- package/tests/gla.ac.uk.spec.ts +6 -0
- package/tests/head-fi.spec.ts +3 -0
- package/tests/istore-co-za.spec.ts +3 -0
- package/tests/kiwico.spec.ts +5 -0
- package/tests/klaxit-cookie-consent.spec.ts +7 -0
- package/tests/kwik-fit.spec.ts +3 -0
- package/tests/malaysiaairlines.com.spec.ts +3 -0
- package/tests/meridiancu.spec.ts +3 -0
- package/tests/meteored.spec.ts +9 -0
- package/tests/mobirise-cookies-alert-cosmetic.spec.ts +8 -0
- package/tests/mobirise-cookies-alert.spec.ts +3 -0
- package/tests/msg-cookie.spec.ts +10 -0
- package/tests/nestpensions.spec.ts +3 -0
- package/tests/nhs-jobs.spec.ts +5 -0
- package/tests/occ-gdpr.spec.ts +3 -0
- package/tests/piwik-pro.spec.ts +10 -0
- package/tests/plentyshop.spec.ts +7 -0
- package/tests/posthog.spec.ts +3 -0
- package/tests/quantcast.spec.ts +2 -2
- package/tests/quick-cookie-consent.spec.ts +8 -0
- package/tests/savills.spec.ts +3 -0
- package/tests/schadefonds.spec.ts +3 -0
- package/tests/scottish-government-design-system.spec.ts +8 -0
- package/tests/service2school.spec.ts +3 -0
- package/tests/smallpdf.spec.ts +5 -0
- package/tests/somerset-council.spec.ts +8 -0
- package/tests/sportmedizin-rheuma.spec.ts +3 -0
- package/tests/stepstone-ccm.spec.ts +8 -0
- package/tests/teacherspensions.co.uk.spec.ts +3 -0
- package/tests/thenude.spec.ts +3 -0
- package/tests/tna-cookie-banner.spec.ts +8 -0
- package/tests/tracsis-delay-repay.spec.ts +6 -0
- package/tests/truendo.spec.ts +9 -0
- package/tests/tti-cookie-popup.spec.ts +8 -0
- package/tests/u-cookie-consent.spec.ts +9 -0
- package/tests/ubisoft-com.spec.ts +12 -0
- package/tests/wbd-legal-terms.spec.ts +2 -0
- package/tests/what3words.spec.ts +3 -0
- package/tests/whitepages-gpc-banner.spec.ts +4 -0
- package/tests/wp-cookie-notice.spec.ts +4 -1
- package/rules/autoconsent/sandhills.json +0 -26
- package/tests/sandhills.spec.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckduckgo/autoconsent",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.54.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"types": "./dist/types/web.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"bulma": "^1.0.2",
|
|
66
66
|
"chai": "^6.0.1",
|
|
67
67
|
"chokidar-cli": "^3.0.0",
|
|
68
|
-
"csv-parse": "^
|
|
68
|
+
"csv-parse": "^7.0.3",
|
|
69
69
|
"esbuild": "^0.28.0",
|
|
70
70
|
"eslint": "^10.0.3",
|
|
71
71
|
"globals": "^17.4.0",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "accurx",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https://(accurx\\.nhs\\.uk|patient\\.accurx\\.com)/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#__next > div:has(> p > a[href*='cookie-policy'])"],
|
|
7
|
+
"detectCmp": [{ "exists": "xpath///div[@id='__next']/div[h2[normalize-space(.)='Cookies on this website']]" }],
|
|
8
|
+
"detectPopup": [{ "visible": "xpath///div[@id='__next']/div[h2[normalize-space(.)='Cookies on this website']]" }],
|
|
9
|
+
"optIn": [
|
|
10
|
+
{
|
|
11
|
+
"waitForThenClick": "xpath///div[@id='__next']/div[h2[normalize-space(.)='Cookies on this website']]//button[contains(., 'Yes, I agree')]"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optOut": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": "xpath///div[@id='__next']/div[h2[normalize-space(.)='Cookies on this website']]//button[contains(., 'do not use analytics cookies')]"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"test": [
|
|
20
|
+
{
|
|
21
|
+
"waitForVisible": "xpath///div[@id='__next']/div[h2[normalize-space(.)='Cookies on this website']]",
|
|
22
|
+
"check": "none",
|
|
23
|
+
"timeout": 2000
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "admetricspro",
|
|
3
|
+
"vendorUrl": "https://admetricspro.com/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"prehideSelectors": ["#__cmp_overlay", "#__cmp_body"],
|
|
6
|
+
"detectCmp": [
|
|
7
|
+
{
|
|
8
|
+
"exists": "#__cmp_body .cmpButtonLink"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"detectPopup": [
|
|
12
|
+
{
|
|
13
|
+
"visible": "#__cmp_body .cmpLayer"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"optIn": [
|
|
17
|
+
{
|
|
18
|
+
"waitForThenClick": "#__cmp_body .cmpLayer .acceptLink"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"optOut": [
|
|
22
|
+
{
|
|
23
|
+
"if": {
|
|
24
|
+
"exists": "#__cmp_body .cmpLayer .vue-js-switch"
|
|
25
|
+
},
|
|
26
|
+
"then": [
|
|
27
|
+
{
|
|
28
|
+
"click": "#__cmp_body .vue-js-switch.toggled .v-switch-input",
|
|
29
|
+
"all": true,
|
|
30
|
+
"optional": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"waitForThenClick": "#__cmp_body .manageLink:not(.buttonDisabled)"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"else": [
|
|
37
|
+
{
|
|
38
|
+
"waitForThenClick": "#__cmp_body .manageLink"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"waitForThenClick": "#__cmp_body .rejectLink"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"test": [
|
|
47
|
+
{
|
|
48
|
+
"waitForVisible": "#__cmp_body .cmpLayer",
|
|
49
|
+
"check": "none",
|
|
50
|
+
"timeout": 3000
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
"prehideSelectors": ["#gdpr-new-container"],
|
|
8
8
|
"detectCmp": [
|
|
9
9
|
{
|
|
10
|
-
"exists": "#gdpr-new-container,#voyager-gdpr > div"
|
|
10
|
+
"exists": "#gdpr-new-container,#voyager-gdpr > div,#voyager-gdpr-2025 > div > div > button"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"detectPopup": [
|
|
14
14
|
{
|
|
15
|
-
"visible": "#gdpr-new-container,#voyager-gdpr > div",
|
|
15
|
+
"visible": "#gdpr-new-container,#voyager-gdpr > div,#voyager-gdpr-2025 > div > div > button",
|
|
16
16
|
"check": "any"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"optIn": [
|
|
20
20
|
{
|
|
21
|
-
"waitForThenClick": "#gdpr-new-container button:last-of-type,#voyager-gdpr > div > div > button:nth-child(1)"
|
|
21
|
+
"waitForThenClick": "#gdpr-new-container button:last-of-type,#voyager-gdpr > div > div > button:nth-child(1),#voyager-gdpr-2025 > div > div > button:first-of-type"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
24
|
"optOut": [
|
|
@@ -31,22 +31,46 @@
|
|
|
31
31
|
],
|
|
32
32
|
"else": [
|
|
33
33
|
{
|
|
34
|
-
"if": { "exists": "#gdpr-
|
|
34
|
+
"if": { "exists": "#voyager-gdpr-2025 > div > div > button" },
|
|
35
35
|
"then": [
|
|
36
36
|
{
|
|
37
|
-
"
|
|
37
|
+
"if": { "exists": "#voyager-gdpr-2025 > div > div > button:nth-of-type(3)" },
|
|
38
|
+
"then": [
|
|
39
|
+
{
|
|
40
|
+
"waitForThenClick": "#voyager-gdpr-2025 > div > div > button:nth-of-type(2)"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"else": [
|
|
44
|
+
{
|
|
45
|
+
"waitForThenClick": "#voyager-gdpr-2025 > div > div > button:last-of-type"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"waitForThenClick": "#voyager-gdpr-2025 > div > div > div > button:last-of-type",
|
|
49
|
+
"timeout": 5000
|
|
50
|
+
}
|
|
51
|
+
]
|
|
38
52
|
}
|
|
39
53
|
],
|
|
40
54
|
"else": [
|
|
41
55
|
{
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
"if": { "exists": "#gdpr-new-container button:nth-of-type(3)" },
|
|
57
|
+
"then": [
|
|
58
|
+
{
|
|
59
|
+
"waitForThenClick": "#gdpr-new-container button:nth-of-type(2)"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"else": [
|
|
63
|
+
{
|
|
64
|
+
"waitForThenClick": "#gdpr-new-container button:first-of-type"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"waitForVisible": "#voyager-gdpr-2025",
|
|
68
|
+
"timeout": 5000
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"waitForThenClick": "#voyager-gdpr-2025 button:last-of-type"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
50
74
|
}
|
|
51
75
|
]
|
|
52
76
|
}
|
|
@@ -31,19 +31,35 @@
|
|
|
31
31
|
],
|
|
32
32
|
"else": [
|
|
33
33
|
{
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
"if": {
|
|
35
|
+
"exists": ["#bigidcmp-banner-widget", "#cmp-custom-permissions"]
|
|
36
|
+
},
|
|
37
|
+
"then": [
|
|
38
|
+
{
|
|
39
|
+
"waitForThenClick": ["#bigidcmp-banner-widget", "#cmp-custom-permissions"]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"waitForVisible": ["#bigidcmp-banner-widget", "#cmp-submit"]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"comment": "aria-checked is always false; the knob position marks enabled toggles",
|
|
46
|
+
"click": [
|
|
47
|
+
"#bigidcmp-banner-widget",
|
|
48
|
+
"button[role=\"switch\"]:not([disabled]) > span[class*=\"translate-x-[1.1rem]\"]"
|
|
49
|
+
],
|
|
50
|
+
"all": true,
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"waitForThenClick": ["#bigidcmp-banner-widget", "#cmp-submit"]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"else": [
|
|
58
|
+
{
|
|
59
|
+
"comment": "notice-only layout: dismiss with the close icon",
|
|
60
|
+
"waitForThenClick": ["#bigidcmp-banner-widget", "div[tabindex=\"0\"]:has(> svg #times-solid)"]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
47
63
|
}
|
|
48
64
|
]
|
|
49
65
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bnes-cc",
|
|
3
|
+
"prehideSelectors": ["#CookieConsentContainer:has(#BtnCCPrefs) > .container"],
|
|
4
|
+
"detectCmp": [{ "exists": "#CookieConsentContainer #BtnCCPrefs" }],
|
|
5
|
+
"detectPopup": [{ "visible": "#CookieConsentContainer #BtnCCAll" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": "#CookieConsentContainer #BtnCCAll" }],
|
|
7
|
+
"optOut": [
|
|
8
|
+
{
|
|
9
|
+
"if": { "exists": "#CookieConsentContainer #BtnCCNone" },
|
|
10
|
+
"then": [{ "waitForThenClick": "#CookieConsentContainer #BtnCCNone" }],
|
|
11
|
+
"else": [
|
|
12
|
+
{ "waitForThenClick": "#CookieConsentContainer #BtnCCPrefs" },
|
|
13
|
+
{ "waitForVisible": "#CookieConsentPanel #BtnCCSave" },
|
|
14
|
+
{
|
|
15
|
+
"if": { "exists": "#ConsentAnalytics:checked" },
|
|
16
|
+
"then": [{ "click": "#ConsentAnalytics" }]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"if": { "exists": "#ConsentThirdParty:checked" },
|
|
20
|
+
"then": [{ "click": "#ConsentThirdParty" }]
|
|
21
|
+
},
|
|
22
|
+
{ "click": "#CookieConsentPanel #BtnCCSave" }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"test": [{ "cookieContains": "-saved=true" }, { "cookieContains": "-analytics=true", "negated": true }]
|
|
27
|
+
}
|
|
@@ -2,24 +2,36 @@
|
|
|
2
2
|
"name": "burpee.com",
|
|
3
3
|
"minimumRuleStepVersion": 2,
|
|
4
4
|
"prehideSelectors": [".cookie-modal", "#notice-cookie-block"],
|
|
5
|
-
"detectCmp": [{ "exists": "#notice-cookie-block" }],
|
|
5
|
+
"detectCmp": [{ "exists": "#notice-cookie-block" }, { "exists": "#notice-cookie-block #cm-selectSpecific", "negated": true }],
|
|
6
6
|
"detectPopup": [{ "visible": "#html-body #notice-cookie-block" }],
|
|
7
|
-
"optIn": [
|
|
7
|
+
"optIn": [
|
|
8
|
+
{
|
|
9
|
+
"if": { "exists": "#notice-cookie-block button[\\@click^='acceptAll']" },
|
|
10
|
+
"then": [{ "waitForThenClick": "#notice-cookie-block button[\\@click^='acceptAll']" }],
|
|
11
|
+
"else": [{ "waitForThenClick": "#btn-cookie-allow" }]
|
|
12
|
+
}
|
|
13
|
+
],
|
|
8
14
|
"optOut": [
|
|
9
15
|
{
|
|
10
16
|
"if": { "exists": "#notice-cookie-block #btn-cookie-decline" },
|
|
11
17
|
"then": [{ "waitForThenClick": "#notice-cookie-block #btn-cookie-decline" }],
|
|
12
18
|
"else": [
|
|
13
19
|
{
|
|
14
|
-
"if": { "exists": "#
|
|
15
|
-
"then": [
|
|
16
|
-
{ "waitForThenClick": "#btn-cookie-manage" },
|
|
17
|
-
{ "click": "#notice-cookie-block input:checked", "all": true },
|
|
18
|
-
{ "click": "#btn-cookie-save" }
|
|
19
|
-
],
|
|
20
|
+
"if": { "exists": "#notice-cookie-block button[\\@click^='rejectAll']" },
|
|
21
|
+
"then": [{ "waitForThenClick": "#notice-cookie-block button[\\@click^='rejectAll']" }],
|
|
20
22
|
"else": [
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
+
{
|
|
24
|
+
"if": { "exists": "#btn-cookie-manage" },
|
|
25
|
+
"then": [
|
|
26
|
+
{ "waitForThenClick": "#btn-cookie-manage" },
|
|
27
|
+
{ "click": "#notice-cookie-block input:checked", "all": true },
|
|
28
|
+
{ "click": "#btn-cookie-save" }
|
|
29
|
+
],
|
|
30
|
+
"else": [
|
|
31
|
+
{ "hide": "#html-body #notice-cookie-block, #notice-cookie" },
|
|
32
|
+
{ "removeClass": "cookie-notification-active", "selector": "body", "optional": true }
|
|
33
|
+
]
|
|
34
|
+
}
|
|
23
35
|
]
|
|
24
36
|
}
|
|
25
37
|
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "c-banner-allow-cookies",
|
|
3
|
+
"cosmetic": false,
|
|
4
|
+
"runContext": {
|
|
5
|
+
"main": true,
|
|
6
|
+
"frame": false
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#cookieBanner.c-banner"],
|
|
9
|
+
"detectCmp": [{ "exists": "#cookieBanner.c-banner button[data-allow-cookies=false]" }],
|
|
10
|
+
"detectPopup": [{ "visible": "#cookieBanner.c-banner" }],
|
|
11
|
+
"optIn": [{ "waitForThenClick": "#cookieBanner.c-banner button[data-allow-cookies=true]" }],
|
|
12
|
+
"optOut": [
|
|
13
|
+
{ "waitForThenClick": "#cookieBanner.c-banner button[data-allow-cookies=false]" },
|
|
14
|
+
{ "waitForVisible": "#cookieBanner.c-banner", "check": "none" }
|
|
15
|
+
],
|
|
16
|
+
"test": [{ "cookieContains": "cookies_allow=false" }]
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccm19",
|
|
3
|
+
"vendorUrl": "https://www.ccm19.de/",
|
|
4
|
+
"prehideSelectors": ["#ccm-widget.ccm-show"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"any": [{ "exists": "#ccm-widget" }, { "exists": "script[src*='ccm19'][src*='/app.js?apiKey=']" }],
|
|
8
|
+
"comment": "the widget is injected late, so detect the loader too"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"detectPopup": [{ "visible": "#ccm-widget.ccm-show" }],
|
|
12
|
+
"optIn": [{ "waitForThenClick": "#ccm-widget .ccm--save-settings[data-full-consent='true']" }],
|
|
13
|
+
"optOut": [
|
|
14
|
+
{
|
|
15
|
+
"if": { "exists": "#ccm-widget .ccm--decline-cookies" },
|
|
16
|
+
"then": [{ "waitForThenClick": "#ccm-widget .ccm--decline-cookies" }],
|
|
17
|
+
"else": [
|
|
18
|
+
{ "waitForThenClick": "#ccm-widget [data-ccm-modal='ccm-control-panel']" },
|
|
19
|
+
{ "waitForThenClick": "#ccm-control-panel .ccm--save-settings:not([data-full-consent='true'])" }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"test": [
|
|
24
|
+
{
|
|
25
|
+
"waitForVisible": "#ccm-widget.ccm-show",
|
|
26
|
+
"timeout": 2000,
|
|
27
|
+
"check": "none",
|
|
28
|
+
"comment": "consent is stored in a cookie or localStorage depending on setup"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
"frame": false,
|
|
6
6
|
"urlPattern": "^https?://(www\\.)?channel4\\.com/"
|
|
7
7
|
},
|
|
8
|
-
"prehideSelectors": ["#cookie-consent-banner"],
|
|
9
|
-
"detectCmp": [{ "exists": "
|
|
8
|
+
"prehideSelectors": ["#cookie-consent-banner", ".cookie-banner"],
|
|
9
|
+
"detectCmp": [{ "exists": ".cookie-banner .all4-cc-primary-button" }],
|
|
10
10
|
"detectPopup": [
|
|
11
11
|
{
|
|
12
|
-
"visible": "
|
|
12
|
+
"visible": ".cookie-banner .all4-cc-primary-button"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"optIn": [
|
|
16
16
|
{
|
|
17
|
-
"waitForThenClick": "
|
|
17
|
+
"waitForThenClick": ".cookie-banner .all4-cc-primary-button"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"optOut": [
|
|
21
21
|
{
|
|
22
|
-
"waitForThenClick": "
|
|
22
|
+
"waitForThenClick": ".cookie-banner button[aria-label=\"Reject non-essential cookies and continue.\"]"
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
25
|
"test": [{ "cookieContains": "C4_CC=eyJ2ZXJzaW9uIjoxLCJjb25zZW50ZWQiOnRydWUs" }]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "citizensadvice",
|
|
3
|
+
"vendorUrl": "https://www.citizensadvice.org.uk/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(\\w+\\.)?citizensadvice\\.org\\.uk/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": [".js-cookie-banner"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "#js-cookie-banner__button-reject"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "#js-cookie-banner__button-reject"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": "#js-cookie-banner__button-accept"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"waitForThenClick": "#js-cookie-banner__button-hide",
|
|
24
|
+
"timeout": 2000,
|
|
25
|
+
"optional": true
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"optOut": [
|
|
29
|
+
{
|
|
30
|
+
"waitForThenClick": "#js-cookie-banner__button-reject"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"waitForThenClick": "#js-cookie-banner__button-hide",
|
|
34
|
+
"timeout": 2000,
|
|
35
|
+
"optional": true
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"test": [
|
|
39
|
+
{
|
|
40
|
+
"cookieContains": "%22analytics%22%3Afalse"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -11,17 +11,11 @@
|
|
|
11
11
|
"else": [
|
|
12
12
|
{
|
|
13
13
|
"if": {
|
|
14
|
-
"exists":
|
|
15
|
-
"#ccc #ccc-notify .ccc-notify-buttons",
|
|
16
|
-
"xpath///button[contains(., 'Settings') or contains(., 'Cookie Preferences') or contains(., 'Einstellungen️')]"
|
|
17
|
-
]
|
|
14
|
+
"exists": "#ccc-notify .ccc-notify-buttons .ccc-notify-button:not(.ccc-accept-button):not(.ccc-reject-button)"
|
|
18
15
|
},
|
|
19
16
|
"then": [
|
|
20
17
|
{
|
|
21
|
-
"waitForThenClick":
|
|
22
|
-
"#ccc #ccc-notify .ccc-notify-buttons",
|
|
23
|
-
"xpath///button[contains(., 'Settings') or contains(., 'Cookie Preferences') or contains(., 'Einstellungen️')]"
|
|
24
|
-
]
|
|
18
|
+
"waitForThenClick": "#ccc-notify .ccc-notify-buttons .ccc-notify-button:not(.ccc-accept-button):not(.ccc-reject-button)"
|
|
25
19
|
},
|
|
26
20
|
{ "waitForVisible": "#ccc-module" }
|
|
27
21
|
]
|
|
@@ -29,7 +23,13 @@
|
|
|
29
23
|
{
|
|
30
24
|
"if": { "visible": ".ccc-reject-button" },
|
|
31
25
|
"then": [{ "waitForThenClick": ".ccc-reject-button" }],
|
|
32
|
-
"else": [
|
|
26
|
+
"else": [
|
|
27
|
+
{
|
|
28
|
+
"if": { "exists": "#ccc-dismiss-button" },
|
|
29
|
+
"then": [{ "waitForThenClick": "#ccc-dismiss-button" }],
|
|
30
|
+
"else": [{ "waitForThenClick": "#ccc-close" }]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
35
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "clasohlson.com",
|
|
3
|
+
"runContext": { "urlPattern": "^https?://(www\\.)?clasohlson\\.com/" },
|
|
4
|
+
"prehideSelectors": [".cookie-bar-backdrop"],
|
|
5
|
+
"detectCmp": [{ "exists": "#js-cookie-notification .js-reject-cookie" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#js-cookie-notification.opened" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "#js-cookie-notification.opened .js-cookie-notification-accept", "retry": 10, "retryInterval": 500 }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{ "waitForThenClick": "#js-cookie-notification.opened .js-reject-cookie", "retry": 10, "retryInterval": 500 },
|
|
10
|
+
{ "waitForVisible": "#js-cookie-notification.opened", "check": "none" }
|
|
11
|
+
],
|
|
12
|
+
"test": [{ "cookieContains": "cookie-notification=REJECTED" }]
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cm-cookie-manager",
|
|
3
|
+
"prehideSelectors": ["#cm-wrapper:has(#cm-selectSpecific)", "#cookie-consent:has(#cm-selectSpecific)"],
|
|
4
|
+
"detectCmp": [{ "exists": "#cm-selectSpecific" }, { "exists": "#cm-selectAllCheckboxes" }],
|
|
5
|
+
"detectPopup": [{ "visible": "#cm-selectAllCheckboxes" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": "#cm-selectAllCheckboxes" }],
|
|
7
|
+
"optOut": [
|
|
8
|
+
{
|
|
9
|
+
"if": { "visible": "#cm-openSettings" },
|
|
10
|
+
"then": [{ "click": "#cm-openSettings" }]
|
|
11
|
+
},
|
|
12
|
+
{ "waitForVisible": "#cm-selectSpecific" },
|
|
13
|
+
{
|
|
14
|
+
"if": { "exists": ".cmCat-checkboxes:checked:not(:disabled)" },
|
|
15
|
+
"then": [{ "click": ".cmCat-checkboxes:checked:not(:disabled)", "all": true }]
|
|
16
|
+
},
|
|
17
|
+
{ "click": "#cm-selectSpecific" }
|
|
18
|
+
],
|
|
19
|
+
"test": [{ "visible": "#cm-selectAllCheckboxes", "check": "none" }]
|
|
20
|
+
}
|
|
@@ -21,7 +21,17 @@
|
|
|
21
21
|
{ "click": ".cc-settings-view input[type=checkbox]:not([disabled]):checked", "all": true, "optional": true },
|
|
22
22
|
{ "click": ".cc-settings-view .cc-btn-accept-selected" }
|
|
23
23
|
],
|
|
24
|
-
"else": [
|
|
24
|
+
"else": [
|
|
25
|
+
{
|
|
26
|
+
"if": { "exists": ".cc-dismiss" },
|
|
27
|
+
"then": [{ "click": ".cc-dismiss" }],
|
|
28
|
+
"else": [
|
|
29
|
+
{ "click": ".cmp-pref-link" },
|
|
30
|
+
{ "waitForThenClick": ".cmp-body [id*=rejectAll]" },
|
|
31
|
+
{ "waitForThenClick": ".cmp-body .cmp-save-btn" }
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
25
35
|
}
|
|
26
36
|
]
|
|
27
37
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "concept3d",
|
|
3
|
+
"vendorUrl": "https://www.concept3d.com/",
|
|
4
|
+
"prehideSelectors": [".cookie-consent-card:has([data-cy=cookie-customize])"],
|
|
5
|
+
"detectCmp": [{ "exists": ".cookie-consent-card [data-cy=cookie-customize]" }],
|
|
6
|
+
"detectPopup": [{ "visible": ".cookie-consent-card [data-cy=cookie-customize]" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": ".cookie-consent-card [data-cy=cookie-accept-all]" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{ "waitForThenClick": ".cookie-consent-card [data-cy=cookie-customize]" },
|
|
10
|
+
{ "waitForVisible": "#cookie-preferences-dialog [data-cy=cookie-save-preferences]" },
|
|
11
|
+
{
|
|
12
|
+
"click": "#cookie-preferences-dialog button[role=switch][aria-checked=true]:not([aria-disabled=true])",
|
|
13
|
+
"all": true,
|
|
14
|
+
"optional": true
|
|
15
|
+
},
|
|
16
|
+
{ "waitForThenClick": "#cookie-preferences-dialog [data-cy=cookie-save-preferences]" }
|
|
17
|
+
],
|
|
18
|
+
"test": [{ "cookieContains": "_cookieConsent=%7B%22analytics%22%3Afalse%2C%22marketing%22%3Afalse" }]
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "conextra",
|
|
3
|
+
"prehideSelectors": [".cookiebanner:has(> #cookieform .chooseCookies)", ".diffusion_layer:has(#cookieform)"],
|
|
4
|
+
"detectCmp": [{ "exists": ".cookiebanner #cookieform .chooseCookies" }],
|
|
5
|
+
"detectPopup": [{ "visible": ".cookiebanner #cookieform .chooseCookies" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": ".cookiebanner [onclick^='sendForm(2']" }],
|
|
7
|
+
"optOut": [
|
|
8
|
+
{
|
|
9
|
+
"if": { "exists": ".cookiebanner [onclick^='sendForm(0']" },
|
|
10
|
+
"then": [{ "waitForThenClick": ".cookiebanner [onclick^='sendForm(0']" }],
|
|
11
|
+
"else": [
|
|
12
|
+
{ "click": ".cookiebanner .chooseCookies input[type='checkbox']:checked:not([onclick])", "all": true, "optional": true },
|
|
13
|
+
{ "waitForThenClick": ".cookiebanner [onclick^='sendForm(1']" }
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"test": [{ "waitForVisible": ".cookiebanner #cookieform .chooseCookies", "timeout": 1000, "check": "none" }]
|
|
18
|
+
}
|
|
@@ -10,8 +10,29 @@
|
|
|
10
10
|
"then": [{ "wait": 100 }, { "click": "#cookiescript_reject" }],
|
|
11
11
|
"else": [
|
|
12
12
|
{ "click": "#cookiescript_manage" },
|
|
13
|
-
{ "waitForVisible": ".cookiescript_fsd_main" },
|
|
14
|
-
{
|
|
13
|
+
{ "waitForVisible": ".cookiescript_fsd_main, #cookiescript_save", "timeout": 3000, "optional": true },
|
|
14
|
+
{
|
|
15
|
+
"if": { "exists": ".cookiescript_fsd_main" },
|
|
16
|
+
"then": [{ "waitForThenClick": "#cookiescript_reject" }],
|
|
17
|
+
"else": [
|
|
18
|
+
{
|
|
19
|
+
"if": { "visible": "#cookiescript_save" },
|
|
20
|
+
"then": [
|
|
21
|
+
{
|
|
22
|
+
"if": { "exists": "#cookiescript_injected input.cookiescript_checkbox_input:checked:not(:disabled)" },
|
|
23
|
+
"then": [
|
|
24
|
+
{
|
|
25
|
+
"click": "#cookiescript_injected input.cookiescript_checkbox_input:checked:not(:disabled)",
|
|
26
|
+
"all": true
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{ "waitForThenClick": "#cookiescript_save", "retry": 6, "retryInterval": 1000 }
|
|
31
|
+
],
|
|
32
|
+
"else": [{ "click": "#cookiescript_close" }]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
15
36
|
]
|
|
16
37
|
}
|
|
17
38
|
],
|
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
],
|
|
15
15
|
"detectPopup": [
|
|
16
16
|
{
|
|
17
|
-
"visible": ".cc-cookies .cc-cookie-accept"
|
|
17
|
+
"visible": ".cc-cookies:not(#cookies_declinedbar) .cc-cookie-accept",
|
|
18
|
+
"check": "any"
|
|
18
19
|
}
|
|
19
20
|
],
|
|
20
21
|
"optIn": [
|
|
21
22
|
{
|
|
22
|
-
"waitForThenClick": ".cc-cookies .cc-cookie-accept"
|
|
23
|
+
"waitForThenClick": ".cc-cookies:not(#cookies_declinedbar) .cc-cookie-accept"
|
|
23
24
|
}
|
|
24
25
|
],
|
|
25
26
|
"optOut": [
|