@duckduckgo/autoconsent 18.11.0 → 18.12.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 +45 -0
- package/dist/addon-firefox/background.bundle.js +10 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +10 -0
- 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/background.bundle.js +10 -0
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +10 -0
- 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.cjs.js +10 -0
- package/dist/autoconsent.esm.js +10 -0
- package/dist/autoconsent.playwright.js +10 -0
- package/dist/autoconsent.standalone.js +11 -1
- package/dist/types/eval-snippets.d.ts +2 -0
- package/lib/eval-snippets.ts +10 -0
- package/package.json +1 -1
- package/rules/autoconsent/ccm-dialog.json +48 -0
- package/rules/autoconsent/chesskid.json +43 -0
- package/rules/autoconsent/clinch.json +1 -1
- package/rules/autoconsent/clio-online-matomo.json +10 -0
- package/rules/autoconsent/cookieconsent2.json +3 -2
- package/rules/autoconsent/foster-cookie-notice.json +34 -0
- package/rules/autoconsent/fulmo.json +10 -0
- package/rules/autoconsent/gsb-cookiebanner-close.json +27 -0
- package/rules/autoconsent/hetgoed.json +20 -0
- package/rules/autoconsent/hutshopping.json +9 -0
- package/rules/autoconsent/icn-cookie-notice.json +34 -0
- package/rules/autoconsent/internetvergelijk.json +47 -0
- package/rules/autoconsent/isn-cookie-consent.json +10 -0
- package/rules/autoconsent/knowunity.json +10 -0
- package/rules/autoconsent/lightspeed-cookielaw.json +30 -0
- package/rules/autoconsent/lobbes.json +18 -0
- package/rules/autoconsent/mercadolibre-frame.json +42 -0
- package/rules/autoconsent/mercadolibre-subdomain.json +33 -0
- package/rules/autoconsent/mindshape-cookie-consent.json +60 -0
- package/rules/autoconsent/moneywise.json +56 -0
- package/rules/autoconsent/netwerknotarissen.json +23 -0
- package/rules/autoconsent/perplex-cookie-consent.json +12 -0
- package/rules/autoconsent/radish-cookie-consent.json +36 -0
- package/rules/autoconsent/reliving.json +39 -0
- package/rules/autoconsent/scriptex.json +11 -0
- package/rules/autoconsent/shopware5.json +30 -4
- package/rules/autoconsent/spreekwoorden.json +31 -0
- package/rules/autoconsent/stoffe-hemmers.json +21 -0
- package/rules/autoconsent/stripinfo.be.json +18 -0
- package/rules/autoconsent/thisiseindhoven.json +17 -0
- package/rules/autoconsent/tinycookie.json +36 -0
- package/rules/autoconsent/vendic-cookiebar.json +27 -4
- package/rules/autoconsent/wpj-cookiebar.json +45 -0
- package/rules/autoconsent/yunders.json +16 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/sites/ccm-dialog.json +9 -0
- package/tests/sites/chesskid.json +10 -0
- package/tests/sites/clio-online-matomo.json +9 -0
- package/tests/sites/foster-cookie-notice.json +18 -0
- package/tests/sites/fulmo.json +14 -0
- package/tests/sites/gsb-cookiebanner-close.json +22 -0
- package/tests/sites/hetgoed.json +9 -0
- package/tests/sites/hutshopping.json +15 -0
- package/tests/sites/icn-cookie-notice.json +21 -0
- package/tests/sites/internetvergelijk.json +13 -0
- package/tests/sites/isn-cookie-consent.json +8 -0
- package/tests/sites/knowunity.json +22 -0
- package/tests/sites/lightspeed-cookielaw.json +19 -0
- package/tests/sites/lobbes.json +10 -0
- package/tests/sites/mercadolibre-subdomain.json +15 -0
- package/tests/sites/mindshape-cookie-consent.json +23 -0
- package/tests/sites/moneywise.json +14 -0
- package/tests/sites/netwerknotarissen.json +8 -0
- package/tests/sites/perplex-cookie-consent.json +22 -0
- package/tests/sites/radish-cookie-consent.json +16 -0
- package/tests/sites/reliving.json +8 -0
- package/tests/sites/scriptex.json +8 -0
- package/tests/sites/shopware5.json +14 -0
- package/tests/sites/spreekwoorden.json +9 -0
- package/tests/sites/stoffe-hemmers.json +8 -0
- package/tests/sites/stripinfo.be.json +9 -0
- package/tests/sites/thisiseindhoven.json +8 -0
- package/tests/sites/tinycookie.json +13 -0
- package/tests/sites/vendic-cookiebar.json +5 -0
- package/tests/sites/wpj-cookiebar.json +13 -0
- package/tests/sites/yunders.json +8 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "perplex-cookie-consent",
|
|
3
|
+
"prehideSelectors": [
|
|
4
|
+
".consent__bar:has([data-cookie-consent-accept-necessary-btn])",
|
|
5
|
+
".c-consent__bar:has([data-cookie-consent-accept-necessary-btn])"
|
|
6
|
+
],
|
|
7
|
+
"detectCmp": [{ "exists": "[data-cookie-consent-accept-necessary-btn]" }],
|
|
8
|
+
"detectPopup": [{ "visible": "[data-cookie-consent-accept-necessary-btn]" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": "[data-cookie-consent-accept-all-btn]", "retry": 20, "retryInterval": 1000 }],
|
|
10
|
+
"optOut": [{ "waitForThenClick": "[data-cookie-consent-accept-necessary-btn]", "retry": 20, "retryInterval": 1000 }],
|
|
11
|
+
"test": [{ "waitForVisible": "[data-cookie-consent-accept-necessary-btn]", "check": "none", "timeout": 2000 }]
|
|
12
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "radish-cookie-consent",
|
|
3
|
+
"vendorUrl": "https://radishconcepts.com/",
|
|
4
|
+
"prehideSelectors": [".radish-cookie-bar"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".radish-cookie-bar .cookie-bar-settings .cookie-approve"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": ".radish-cookie-bar"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": ".radish-cookie-bar .cookie-agree-all-cookies, .radish-cookie-bar .cookie-bar-footer > .cookie-bar-buttons .cookie-approve"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": ".radish-cookie-bar .cookie-bar-footer > .cookie-bar-buttons .cookie-settings-toggle"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"waitForVisible": ".radish-cookie-bar .cookie-bar-settings"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"click": ".radish-cookie-bar .rcc-allow-cookie-type:checked:not(:disabled):not([data-cookietype='functional'])",
|
|
29
|
+
"all": true,
|
|
30
|
+
"optional": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"waitForThenClick": ".radish-cookie-bar .cookie-bar-settings .cookie-approve"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "reliving",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(www\\.)?reliving\\.(nl|be|fr)/"
|
|
5
|
+
},
|
|
6
|
+
"detectCmp": [{ "exists": "div.fixed:has(input#marketing):has(input#statistics)" }],
|
|
7
|
+
"detectPopup": [{ "visible": "div.fixed:has(input#marketing):has(input#statistics)" }],
|
|
8
|
+
"optIn": [
|
|
9
|
+
{
|
|
10
|
+
"waitFor": "next-route-announcer",
|
|
11
|
+
"timeout": 10000,
|
|
12
|
+
"optional": true,
|
|
13
|
+
"comment": "server-rendered popup ignores clicks until hydration"
|
|
14
|
+
},
|
|
15
|
+
{ "waitForThenClick": "div.fixed:has(input#marketing):has(input#statistics) > div:last-child > button:first-child" }
|
|
16
|
+
],
|
|
17
|
+
"optOut": [
|
|
18
|
+
{
|
|
19
|
+
"waitFor": "next-route-announcer",
|
|
20
|
+
"timeout": 10000,
|
|
21
|
+
"optional": true,
|
|
22
|
+
"comment": "server-rendered popup ignores clicks until hydration"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"if": { "exists": "div.fixed:has(input#marketing):has(input#statistics) input#marketing:checked" },
|
|
26
|
+
"then": [{ "click": "div.fixed:has(input#marketing):has(input#statistics) input#marketing" }]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"if": { "exists": "div.fixed:has(input#marketing):has(input#statistics) input#statistics:checked" },
|
|
30
|
+
"then": [{ "click": "div.fixed:has(input#marketing):has(input#statistics) input#statistics" }]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"waitForThenClick": "div.fixed:has(input#marketing):has(input#statistics) > div:last-child > button:last-child",
|
|
34
|
+
"retry": 3,
|
|
35
|
+
"retryInterval": 1000
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"test": [{ "cookieContains": "%22marketingConsent%22%3Afalse%2C%22statisticsConsent%22%3Afalse" }]
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "scriptex",
|
|
3
|
+
"vendorUrl": "https://www.scriptex.nl/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"prehideSelectors": ["scriptex-consent-banner"],
|
|
6
|
+
"detectCmp": [{ "exists": ["scriptex-consent-banner", "#scriptexConsentBannerBox"] }],
|
|
7
|
+
"detectPopup": [{ "visible": ["scriptex-consent-banner", "#scriptexConsentBannerBox"] }],
|
|
8
|
+
"optIn": [{ "waitForThenClick": ["scriptex-consent-banner", "#scriptexConsentAgree"] }],
|
|
9
|
+
"optOut": [{ "waitForThenClick": ["scriptex-consent-banner", "#scriptexConsentDeny"] }],
|
|
10
|
+
"test": [{ "visible": "scriptex-consent-banner", "check": "none" }]
|
|
11
|
+
}
|
|
@@ -7,12 +7,27 @@
|
|
|
7
7
|
"detectCmp": [
|
|
8
8
|
{
|
|
9
9
|
"comment": "the spx theme's variant is handled by shopware5-spx",
|
|
10
|
-
"
|
|
10
|
+
"any": [
|
|
11
|
+
{
|
|
12
|
+
"exists": ".page-wrap--cookie-permission[data-cookie-permission]:not(.spx-cookie-wrapper) .cookie-permission--decline-button"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"exists": ".page-wrap--cookie-permission[data-cookie-permission]:not(.spx-cookie-wrapper) .cookie-permission--configure-button[data-openconsentmanager]"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
11
18
|
}
|
|
12
19
|
],
|
|
13
20
|
"detectPopup": [
|
|
14
21
|
{
|
|
15
|
-
"
|
|
22
|
+
"comment": "some themes show the banner's content in a modal instead",
|
|
23
|
+
"any": [
|
|
24
|
+
{
|
|
25
|
+
"visible": ".page-wrap--cookie-permission[data-cookie-permission]"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"visible": ".js--modal.cookiePermissions"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
16
31
|
}
|
|
17
32
|
],
|
|
18
33
|
"optIn": [
|
|
@@ -56,17 +71,28 @@
|
|
|
56
71
|
"else": [
|
|
57
72
|
{
|
|
58
73
|
"comment": "non-essential groups are unchecked by default in the consent manager",
|
|
59
|
-
"waitForThenClick": ".page-wrap--cookie-permission .cookie-permission--configure-button"
|
|
74
|
+
"waitForThenClick": ".js--modal.cookiePermissions .cookie-permission--configure-button, .page-wrap--cookie-permission:not(.is--hidden) .cookie-permission--configure-button"
|
|
60
75
|
},
|
|
61
76
|
{
|
|
62
77
|
"waitForThenClick": ".cookie-consent--save-button"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"comment": "some themes keep the consent manager open after saving",
|
|
81
|
+
"if": {
|
|
82
|
+
"visible": "#cookie-consent.is--open .cookie-consent--close"
|
|
83
|
+
},
|
|
84
|
+
"then": [
|
|
85
|
+
{
|
|
86
|
+
"click": "#cookie-consent.is--open .cookie-consent--close"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
63
89
|
}
|
|
64
90
|
]
|
|
65
91
|
}
|
|
66
92
|
],
|
|
67
93
|
"test": [
|
|
68
94
|
{
|
|
69
|
-
"waitForVisible": ".page-wrap--cookie-permission[data-cookie-permission]",
|
|
95
|
+
"waitForVisible": ".page-wrap--cookie-permission[data-cookie-permission], .js--modal.cookiePermissions",
|
|
70
96
|
"timeout": 2000,
|
|
71
97
|
"check": "none"
|
|
72
98
|
},
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spreekwoorden",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://spreekwoorden.nl/"
|
|
5
|
+
},
|
|
6
|
+
"runContext": {
|
|
7
|
+
"urlPattern": "^https?://(www\\.)?spreekwoorden\\.nl/"
|
|
8
|
+
},
|
|
9
|
+
"cosmetic": true,
|
|
10
|
+
"prehideSelectors": ["div[x-data*=\"hide-gdpr-banner\"] > div"],
|
|
11
|
+
"detectCmp": [
|
|
12
|
+
{
|
|
13
|
+
"exists": "div[x-data*=\"hide-gdpr-banner\"]"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"detectPopup": [
|
|
17
|
+
{
|
|
18
|
+
"visible": "div[x-data*=\"hide-gdpr-banner\"] > div"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"optIn": [
|
|
22
|
+
{
|
|
23
|
+
"waitForThenClick": "div[x-data*=\"hide-gdpr-banner\"] button"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"optOut": [
|
|
27
|
+
{
|
|
28
|
+
"hide": "div[x-data*=\"hide-gdpr-banner\"]"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stoffe-hemmers",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(\\w+\\.)?(stoffen?|tissus|fabrics)-hemmers\\.(de|nl|fr|com)/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": [".app__misc-cookie__consent", ".app__misc-cookie__consent-background"],
|
|
7
|
+
"detectCmp": [{ "exists": ".app__misc-cookie__consent button.settings" }],
|
|
8
|
+
"detectPopup": [{ "visible": ".app__misc-cookie__consent button.settings" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": ".app__misc-cookie__consent-outer__shell-button__container button.consent" }],
|
|
10
|
+
"optOut": [
|
|
11
|
+
{ "waitForThenClick": ".app__misc-cookie__consent-outer__shell-button__container button.settings" },
|
|
12
|
+
{ "waitForVisible": ".app__modal-cookie__settings button.confirm" },
|
|
13
|
+
{
|
|
14
|
+
"click": ".app__modal-cookie__settings label.app__switch:not(.is__locked) input:checked",
|
|
15
|
+
"all": true,
|
|
16
|
+
"optional": true
|
|
17
|
+
},
|
|
18
|
+
{ "click": ".app__modal-cookie__settings button.confirm" }
|
|
19
|
+
],
|
|
20
|
+
"test": [{ "cookieContains": "\"active\":false" }, { "cookieContains": "\"active\":true", "negated": true }]
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stripinfo.be",
|
|
3
|
+
"runContext": { "urlPattern": "^https?://(www\\.)?stripinfo\\.be/" },
|
|
4
|
+
"prehideSelectors": ["#askToAcceptCookies"],
|
|
5
|
+
"detectCmp": [{ "exists": "#askToAcceptCookies #askToAcceptCookiesClose" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#askToAcceptCookies" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "#askToAcceptCookiesClose", "retry": 5, "retryInterval": 600 }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{
|
|
10
|
+
"waitForThenClick": "#askToAcceptCookiesClose",
|
|
11
|
+
"retry": 5,
|
|
12
|
+
"retryInterval": 600,
|
|
13
|
+
"comment": "notice-only banner, 'Deze melding verbergen' dismisses it; retry in case the jQuery handler is not attached yet"
|
|
14
|
+
},
|
|
15
|
+
{ "waitForVisible": "#askToAcceptCookies", "check": "none" }
|
|
16
|
+
],
|
|
17
|
+
"test": [{ "cookieContains": "si_acceptedCookies=true" }]
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "thisiseindhoven",
|
|
3
|
+
"vendorUrl": "https://www.thisiseindhoven.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?thisiseindhoven\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["aside:has([data-gtm-cookie-types])"],
|
|
8
|
+
"detectCmp": [{ "exists": "aside button[data-gtm-cookie-types]" }],
|
|
9
|
+
"detectPopup": [{ "visible": "aside button[data-gtm-cookie-types]" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": "aside button[data-gtm-cookie-types*=marketing]" }],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{ "waitForThenClick": "aside button[data-gtm-cookie-types] + button" },
|
|
13
|
+
{ "waitForThenClick": "aside label:has(> input[type=radio][value=functional])" },
|
|
14
|
+
{ "waitForThenClick": "aside div:has(> fieldset[role=radiogroup]) + div > button" }
|
|
15
|
+
],
|
|
16
|
+
"test": [{ "cookieContains": "ConsentName=FunctionalConsent" }]
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tinycookie",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://apps.shopify.com/tinycookie"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#tinycookie-wrapper"],
|
|
7
|
+
"detectCmp": [{ "exists": "#tinycookie-wrapper" }],
|
|
8
|
+
"detectPopup": [
|
|
9
|
+
{ "visible": "#tinycookie-wrapper" },
|
|
10
|
+
{ "exists": "#tinycookie-wrapper .tinycookie-button:not(.tinycookie-accept-all)" }
|
|
11
|
+
],
|
|
12
|
+
"optIn": [{ "waitForThenClick": "#tinycookie-wrapper .tinycookie-accept-all" }],
|
|
13
|
+
"optOut": [
|
|
14
|
+
{
|
|
15
|
+
"if": { "exists": "#tinycookie-wrapper .tinycookie-main-buttons > .tinycookie-button:not(.tinycookie-accept-all)" },
|
|
16
|
+
"then": [{ "click": "#tinycookie-wrapper .tinycookie-main-buttons > .tinycookie-button:not(.tinycookie-accept-all)" }],
|
|
17
|
+
"else": [
|
|
18
|
+
{ "click": "#tinycookie-wrapper .tinycookie-buttons > .tinycookie-button:not(.tinycookie-accept-all)" },
|
|
19
|
+
{ "waitForVisible": "#tinycookie-preferences-wrapper", "timeout": 2000 },
|
|
20
|
+
{
|
|
21
|
+
"if": { "exists": "#tinycookie-preferences-wrapper .tinycookie-preferences-required" },
|
|
22
|
+
"then": [{ "click": "#tinycookie-preferences-wrapper .tinycookie-preferences-required" }],
|
|
23
|
+
"else": [
|
|
24
|
+
{
|
|
25
|
+
"click": "#tinycookie-preferences-wrapper .tinycookie-preferences-preference-checkbox:checked:not([disabled])",
|
|
26
|
+
"all": true,
|
|
27
|
+
"optional": true
|
|
28
|
+
},
|
|
29
|
+
{ "click": "#tinycookie-preferences-wrapper .tinycookie-preferences-save" }
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"test": [{ "cookieContains": "tinycookie_acc=req" }, { "cookieContains": "tinycookie_acc=req,", "negated": true }]
|
|
36
|
+
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"prehideSelectors": ["#cookie-bar-modal[x-data^=\"initCookieBar\"]", ".cookie-bar-wrapper:has(.allow-only-functional-cookie)"],
|
|
5
5
|
"detectCmp": [
|
|
6
6
|
{
|
|
7
|
-
"exists": ":is([x-data^=\"initCookieBar\"], .cookie-bar-wrapper) .allow-only-functional-cookie"
|
|
7
|
+
"exists": ":is([x-data^=\"initCookieBar\"], .cookie-bar-wrapper) .allow-only-functional-cookie, [x-data^=\"initCookieBar\"] #cookie-bar-customize"
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
10
|
"detectPopup": [
|
|
11
11
|
{
|
|
12
|
-
"visible": ":is([x-data^=\"initCookieBar\"], .cookie-bar-wrapper.active) .allow-only-functional-cookie"
|
|
12
|
+
"visible": ":is([x-data^=\"initCookieBar\"], .cookie-bar-wrapper.active) .allow-only-functional-cookie, [x-data^=\"initCookieBar\"] #cookie-bar-customize"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"optIn": [
|
|
@@ -19,12 +19,35 @@
|
|
|
19
19
|
],
|
|
20
20
|
"optOut": [
|
|
21
21
|
{
|
|
22
|
-
"
|
|
22
|
+
"if": {
|
|
23
|
+
"exists": ":is([x-data^=\"initCookieBar\"], .cookie-bar-wrapper) .allow-only-functional-cookie"
|
|
24
|
+
},
|
|
25
|
+
"then": [
|
|
26
|
+
{
|
|
27
|
+
"waitForThenClick": ":is([x-data^=\"initCookieBar\"], .cookie-bar-wrapper) .allow-only-functional-cookie"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"else": [
|
|
31
|
+
{
|
|
32
|
+
"waitForThenClick": "[x-data^=\"initCookieBar\"] #cookie-bar-customize"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"waitForVisible": "[x-data^=\"initCookieBar\"] #cookie-allow-selection"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"click": "[x-data^=\"initCookieBar\"] input[data-cookie-code]:checked:not(:disabled)",
|
|
39
|
+
"all": true,
|
|
40
|
+
"optional": true
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"waitForThenClick": "[x-data^=\"initCookieBar\"] #cookie-allow-selection"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
23
46
|
}
|
|
24
47
|
],
|
|
25
48
|
"test": [
|
|
26
49
|
{
|
|
27
|
-
"waitForVisible": ":is([x-data^=\"initCookieBar\"], .cookie-bar-wrapper.active) .allow-only-functional-cookie",
|
|
50
|
+
"waitForVisible": ":is([x-data^=\"initCookieBar\"], .cookie-bar-wrapper.active) .allow-only-functional-cookie, [x-data^=\"initCookieBar\"] :is(#cookie-bar-customize, #cookie-allow-selection)",
|
|
28
51
|
"check": "none",
|
|
29
52
|
"timeout": 3000
|
|
30
53
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wpj-cookiebar",
|
|
3
|
+
"vendorUrl": "https://www.wpj.cz/",
|
|
4
|
+
"prehideSelectors": ["#cookieBara"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": "#cookieBara [data-cookie-bar=simple]"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": "#cookieBara [data-cookie-bar=simple]"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": "#cookieBara [data-cookie-bar=simpleAccept]"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"if": {
|
|
23
|
+
"exists": "#cookieBara [data-cookie-bar=reject]"
|
|
24
|
+
},
|
|
25
|
+
"then": [
|
|
26
|
+
{
|
|
27
|
+
"waitForThenClick": "#cookieBara [data-cookie-bar=reject]"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"else": [
|
|
31
|
+
{
|
|
32
|
+
"waitForThenClick": "#cookieBara [data-cookie-bar=details]"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"waitForThenClick": "#cookieBara [data-cookie-bar=custom]:not([data-cookie-custom])"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"test": [
|
|
41
|
+
{
|
|
42
|
+
"cookieContains": "cookie-bar=0"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "yunders",
|
|
3
|
+
"vendorUrl": "https://www.yunders.com/",
|
|
4
|
+
"prehideSelectors": [".ycc-notice", ".ycc-notice-backdrop"],
|
|
5
|
+
"detectCmp": [{ "exists": ".ycc-notice #ycc_consent_save" }, { "visible": ".ycc-notice" }],
|
|
6
|
+
"detectPopup": [{ "visible": ".ycc-notice" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": ".ycc-notice #ycc_consent_save" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{ "waitForThenClick": ".ycc-notice #ycc_consent_modify" },
|
|
10
|
+
{ "waitForVisible": "#ycc_consent_options" },
|
|
11
|
+
{ "if": { "exists": "#ycc_analytics:checked" }, "then": [{ "click": "#ycc_analytics" }] },
|
|
12
|
+
{ "if": { "exists": "#ycc_advertisements:checked" }, "then": [{ "click": "#ycc_advertisements" }] },
|
|
13
|
+
{ "click": ".ycc-notice #ycc_consent_save" }
|
|
14
|
+
],
|
|
15
|
+
"test": [{ "cookieContains": "\"analytics\":false" }, { "cookieContains": "\"advertisements\":false" }]
|
|
16
|
+
}
|