@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
|
@@ -51,6 +51,8 @@ export declare const snippets: {
|
|
|
51
51
|
EVAL_KALLES_THEME_TEST: () => boolean;
|
|
52
52
|
EVAL_KROWN_COOKIE_BANNER_TEST: () => boolean;
|
|
53
53
|
EVAL_LETHPOLYTECH_DECLINE: () => true;
|
|
54
|
+
EVAL_MERCADOLIBRE_CROSS_ORIGIN_PARENT: () => boolean;
|
|
55
|
+
EVAL_MERCADOLIBRE_SAVE: () => boolean;
|
|
54
56
|
EVAL_MICROSOFT_0: () => any;
|
|
55
57
|
EVAL_MICROSOFT_1: () => any;
|
|
56
58
|
EVAL_MICROSOFT_2: () => boolean;
|
package/lib/eval-snippets.ts
CHANGED
|
@@ -192,6 +192,16 @@ export const snippets = {
|
|
|
192
192
|
document
|
|
193
193
|
.querySelector('.consent-banner .cookie-decline')
|
|
194
194
|
.dispatchEvent(new MouseEvent('mouseup', { bubbles: true, cancelable: true, view: window })) || true,
|
|
195
|
+
// reading a cross-origin parent's document throws
|
|
196
|
+
EVAL_MERCADOLIBRE_CROSS_ORIGIN_PARENT: () => {
|
|
197
|
+
try {
|
|
198
|
+
return !window.parent.document;
|
|
199
|
+
} catch (e) {
|
|
200
|
+
return true;
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
// the embedded preferences page saves its current toggles on this message, normally sent by the parent's Save button
|
|
204
|
+
EVAL_MERCADOLIBRE_SAVE: () => window.postMessage({ eventName: 'saveCookiesPreference' }, '*') || true,
|
|
195
205
|
EVAL_MICROSOFT_0: () =>
|
|
196
206
|
Array.from(document.querySelectorAll('div > button'))
|
|
197
207
|
.filter((el) => el.innerText.match('Reject|Ablehnen'))[0]
|
package/package.json
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccm-dialog",
|
|
3
|
+
"prehideSelectors": ["#cookie-consent-manager:has([data-ccm-dialog])"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": "#cookie-consent-manager [data-ccm-dialog] button[data-cookie-consent=\"submit\"]"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": "#cookie-consent-manager [data-ccm-dialog]"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": "#cookie-consent-manager [data-ccm-dialog] button[data-cookie-consent=\"submit-all\"]",
|
|
17
|
+
"retry": 10,
|
|
18
|
+
"retryInterval": 500
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"optOut": [
|
|
22
|
+
{
|
|
23
|
+
"if": {
|
|
24
|
+
"exists": "#cookie-consent-manager [data-ccm-dialog] input[data-ccm-checkbox]:checked"
|
|
25
|
+
},
|
|
26
|
+
"then": [
|
|
27
|
+
{
|
|
28
|
+
"click": "#cookie-consent-manager [data-ccm-dialog] input[data-ccm-checkbox]:checked",
|
|
29
|
+
"all": true
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"waitForThenClick": "#cookie-consent-manager [data-ccm-dialog] button[data-cookie-consent=\"submit\"]",
|
|
35
|
+
"retry": 10,
|
|
36
|
+
"retryInterval": 500
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"test": [
|
|
40
|
+
{
|
|
41
|
+
"cookieContains": "cookie_consent_manager="
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"cookieContains": "ccm_statistics=",
|
|
45
|
+
"negated": true
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chesskid",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(\\w+\\.)?chesskid\\.com/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": [".cookie-banner"],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": ".cookie-banner .cookie-banner__button-wrap"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"detectPopup": [
|
|
13
|
+
{
|
|
14
|
+
"visible": ".cookie-banner .cookie-banner__button-wrap"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"optIn": [
|
|
18
|
+
{
|
|
19
|
+
"waitForThenClick": ".cookie-banner__button-wrap button.-default"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optOut": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": ".cookie-banner__button-wrap button.-interaction"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"waitForVisible": ".cookie-banner-consent-modal__button"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"click": ".cookie-banner-consent-modal input[type=checkbox]:checked:not(:disabled)",
|
|
31
|
+
"all": true,
|
|
32
|
+
"optional": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"click": ".cookie-banner-consent-modal__button"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"test": [
|
|
39
|
+
{
|
|
40
|
+
"cookieContains": "\"analytics_storage\":\"denied\""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "clio-online-matomo",
|
|
3
|
+
"vendorUrl": "https://www.clio-online.de/",
|
|
4
|
+
"prehideSelectors": [],
|
|
5
|
+
"detectCmp": [{ "exists": "#matomoConsentModal #matomoConsentReject" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#matomoConsentModal #matomoConsentReject" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "#matomoConsentModal #matomoConsentAccept" }],
|
|
8
|
+
"optOut": [{ "waitForThenClick": "#matomoConsentModal #matomoConsentReject" }],
|
|
9
|
+
"test": [{ "cookieContains": "mtm_consent_removed=1" }]
|
|
10
|
+
}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
"name": "cookieconsent2",
|
|
3
3
|
"vendorUrl": "https://www.github.com/orestbida/cookieconsent",
|
|
4
4
|
"comment": "supports v2.x.x of the library",
|
|
5
|
-
"prehideSelectors": ["#cc--main", "#cc_div:has(#s-cnt)"],
|
|
5
|
+
"prehideSelectors": ["#cc--main #cc_div", "#cc_div:has(#s-cnt)"],
|
|
6
6
|
"detectCmp": [
|
|
7
7
|
{
|
|
8
|
-
"
|
|
8
|
+
"comment": "the library always renders #cc_div; custom clones of its markup without it are left to the heuristic",
|
|
9
|
+
"exists": "#cc--main #cc_div, #cc_div #s-cnt"
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
12
|
"comment": "notice-only configs without settings or optional categories are left to the heuristic",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "foster-cookie-notice",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.teamfoster.nl/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": false,
|
|
7
|
+
"prehideSelectors": [".fstr-cookie-notice"],
|
|
8
|
+
"detectCmp": [{ "exists": ".fstr-cookie-notice :is(.button--settings, .button--reject)" }],
|
|
9
|
+
"detectPopup": [{ "visible": ".fstr-cookie-notice" }],
|
|
10
|
+
"optIn": [
|
|
11
|
+
{
|
|
12
|
+
"if": { "exists": ".fstr-cookie-notice .button--settings" },
|
|
13
|
+
"then": [{ "click": ".fstr-cookie-notice .button--primary" }],
|
|
14
|
+
"else": [
|
|
15
|
+
{ "click": ".fstr-cookie-notice input[type=checkbox]:not(:checked):not(:disabled)", "all": true, "optional": true },
|
|
16
|
+
{ "click": ".fstr-cookie-notice .button--primary" }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"if": { "exists": ".fstr-cookie-notice .button--reject" },
|
|
23
|
+
"then": [{ "click": ".fstr-cookie-notice .button--reject" }],
|
|
24
|
+
"else": [
|
|
25
|
+
{ "click": ".fstr-cookie-notice .button--settings" },
|
|
26
|
+
{ "waitFor": ".fstr-cookie-notice__form", "timeout": 2000 },
|
|
27
|
+
{ "comment": "the form may already exist hidden and only gets its values once opened", "wait": 500 },
|
|
28
|
+
{ "click": ".fstr-cookie-notice input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
|
|
29
|
+
{ "click": ".fstr-cookie-notice .button--primary" }
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"test": [{ "visible": ".fstr-cookie-notice", "check": "none" }]
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fulmo",
|
|
3
|
+
"vendorUrl": "https://fulmo.io/",
|
|
4
|
+
"prehideSelectors": ["#fulmo-consent-overlay"],
|
|
5
|
+
"detectCmp": [{ "exists": "#fulmo-consent-overlay [data-act=reject]" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#fulmo-consent-overlay .fulmo-modal" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "#fulmo-consent-overlay [data-act=accept]" }],
|
|
8
|
+
"optOut": [{ "waitForThenClick": "#fulmo-consent-overlay [data-act=reject]" }],
|
|
9
|
+
"test": [{ "cookieContains": "&a=0&" }]
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gsb-cookiebanner-close",
|
|
3
|
+
"prehideSelectors": ["#cookiebanner.c-banner--cookie"],
|
|
4
|
+
"detectCmp": [{ "exists": "#cookiebanner .js-close-banner" }],
|
|
5
|
+
"detectPopup": [{ "visible": "#cookiebanner .js-close-banner", "check": "any" }],
|
|
6
|
+
"optIn": [
|
|
7
|
+
{
|
|
8
|
+
"if": { "exists": "#cookiebanner .js-close-banner.consentToAll" },
|
|
9
|
+
"then": [{ "waitForThenClick": "#cookiebanner .js-close-banner.consentToAll" }],
|
|
10
|
+
"else": [
|
|
11
|
+
{ "click": "#cookiebanner input[type=checkbox]:not(:checked):not(:disabled)", "all": true, "optional": true },
|
|
12
|
+
{ "waitForThenClick": "#cookiebanner .js-close-banner" }
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"optOut": [
|
|
17
|
+
{
|
|
18
|
+
"if": { "exists": "#cookiebanner .js-close-banner.rejectAll" },
|
|
19
|
+
"then": [{ "waitForThenClick": "#cookiebanner .js-close-banner.rejectAll" }],
|
|
20
|
+
"else": [
|
|
21
|
+
{ "click": "#cookiebanner input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
|
|
22
|
+
{ "waitForThenClick": "#cookiebanner .js-close-banner:not(.consentToAll)" }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"test": [{ "cookieContains": "cookiebanner=closed" }, { "cookieContains": "matomoTracking=true", "negated": true }]
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hetgoed",
|
|
3
|
+
"vendorUrl": "https://www.hetgoed.nl/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?hetgoed\\.nl/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["[aria-labelledby=cookieModalTitle]:has(.cookie-bar-buttons)"],
|
|
8
|
+
"detectCmp": [{ "exists": "[aria-labelledby=cookieModalTitle] .cookie-bar-buttons" }],
|
|
9
|
+
"detectPopup": [{ "visible": "[aria-labelledby=cookieModalTitle] .cookie-bar-buttons" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": "[aria-labelledby=cookieModalTitle] .cookie-bar-buttons > div:last-child > button" }],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{ "waitForThenClick": "[aria-labelledby=cookieModalTitle] .cookie-bar-buttons > div:first-child > button" },
|
|
13
|
+
{ "waitForVisible": "[aria-labelledby=cookieModalTitle] label[for=tracking]" },
|
|
14
|
+
{
|
|
15
|
+
"if": { "exists": "[aria-labelledby=cookieModalTitle] #tracking:checked" },
|
|
16
|
+
"then": [{ "click": "[aria-labelledby=cookieModalTitle] label[for=tracking]" }]
|
|
17
|
+
},
|
|
18
|
+
{ "waitForThenClick": "[aria-labelledby=cookieModalTitle] .cookie-bar-buttons > div:first-child > button" }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hutshopping",
|
|
3
|
+
"prehideSelectors": ["#c-cookie-banner:has(#c-cookie-min)"],
|
|
4
|
+
"detectCmp": [{ "exists": "#c-cookie-banner #c-cookie-min" }],
|
|
5
|
+
"detectPopup": [{ "visible": "#c-cookie-banner" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": "#c-cookie-banner #c-cookie-all" }],
|
|
7
|
+
"optOut": [{ "waitForThenClick": "#c-cookie-banner #c-cookie-min" }],
|
|
8
|
+
"test": [{ "cookieContains": "datenschutz_notwendig=1" }]
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "icn-cookie-notice",
|
|
3
|
+
"prehideSelectors": ["#icn_cookie_notice"],
|
|
4
|
+
"detectCmp": [{ "exists": "#icn_cookie_notice" }],
|
|
5
|
+
"detectPopup": [{ "visible": "#icn_cookie_notice button", "check": "any" }],
|
|
6
|
+
"optIn": [
|
|
7
|
+
{
|
|
8
|
+
"if": { "exists": "#icn-cookie-notification__button-accept-all" },
|
|
9
|
+
"then": [{ "click": "#icn-cookie-notification__button-accept-all" }],
|
|
10
|
+
"else": [{ "waitForThenClick": "#ICN_complete" }, { "click": "#icn-cookie-notification__button-accept" }]
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"optOut": [
|
|
14
|
+
{
|
|
15
|
+
"if": { "exists": "#icn-cookie-notification__button-decline" },
|
|
16
|
+
"then": [{ "click": "#icn-cookie-notification__button-decline" }],
|
|
17
|
+
"else": [
|
|
18
|
+
{
|
|
19
|
+
"if": { "exists": "#icn-cookie-notification__button-decline-inline" },
|
|
20
|
+
"then": [{ "click": "#icn-cookie-notification__button-decline-inline" }],
|
|
21
|
+
"else": [
|
|
22
|
+
{
|
|
23
|
+
"if": { "visible": ".icn-cookie-notification__information-info" },
|
|
24
|
+
"then": [{ "click": ".icn-cookie-notification__information-info" }]
|
|
25
|
+
},
|
|
26
|
+
{ "waitForThenClick": "#ICN_anonymous" },
|
|
27
|
+
{ "click": "#icn-cookie-notification__button-accept" }
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"test": [{ "waitForVisible": "#icn_cookie_notice button", "check": "none", "timeout": 3000 }, { "cookieContains": "consent=anonymous" }]
|
|
34
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "internetvergelijk",
|
|
3
|
+
"vendorUrl": "https://www.internetvergelijk.nl/",
|
|
4
|
+
"prehideSelectors": [".cookie-banner[data-cookie-banner]"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".cookie-banner[data-cookie-banner] .cookie-banner__settings[data-cookie-settings] [data-cookie-deny]"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": ".cookie-banner[data-cookie-banner] .cookie-banner__card"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": ".cookie-banner[data-cookie-banner] [data-cookie-actions] [data-cookie-accept]"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"if": {
|
|
23
|
+
"visible": ".cookie-banner[data-cookie-banner] [data-cookie-actions] [data-cookie-deny]"
|
|
24
|
+
},
|
|
25
|
+
"then": [
|
|
26
|
+
{
|
|
27
|
+
"click": ".cookie-banner[data-cookie-banner] [data-cookie-actions] [data-cookie-deny]"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"else": [
|
|
31
|
+
{
|
|
32
|
+
"waitForThenClick": ".cookie-banner[data-cookie-banner] [data-cookie-open]"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"waitForThenClick": ".cookie-banner[data-cookie-banner] [data-cookie-settings] [data-cookie-deny]"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"test": [
|
|
41
|
+
{
|
|
42
|
+
"waitForVisible": ".cookie-banner[data-cookie-banner] .cookie-banner__card",
|
|
43
|
+
"check": "none",
|
|
44
|
+
"timeout": 2000
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "isn-cookie-consent",
|
|
3
|
+
"vendorUrl": "https://isn.nl/",
|
|
4
|
+
"prehideSelectors": [".isn__cookie-consent"],
|
|
5
|
+
"detectCmp": [{ "exists": ".isn__cookie-consent .isn__cookie-consent__choice.required" }],
|
|
6
|
+
"detectPopup": [{ "visible": ".isn__cookie-consent" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": ".isn__cookie-consent__choice.accept" }],
|
|
8
|
+
"optOut": [{ "waitForThenClick": ".isn__cookie-consent__choice.required" }],
|
|
9
|
+
"test": [{ "waitForVisible": ".isn__cookie-consent", "check": "none", "timeout": 1000 }]
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "knowunity",
|
|
3
|
+
"vendorUrl": "https://knowunity.com/",
|
|
4
|
+
"prehideSelectors": ["[data-cy=\"kn-consent-sheet\"]"],
|
|
5
|
+
"detectCmp": [{ "exists": "[data-cy=\"kn-consent-sheet\"] button[data-cy=\"accept-all\"]" }],
|
|
6
|
+
"detectPopup": [{ "visible": "[data-cy=\"kn-consent-sheet\"]" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "[data-cy=\"kn-consent-sheet\"] button[data-cy=\"accept-all\"]" }],
|
|
8
|
+
"optOut": [{ "waitForThenClick": "[data-cy=\"kn-consent-sheet\"] button[data-cy=\"accept-all\"] + button" }],
|
|
9
|
+
"test": [{ "waitForVisible": "[data-cy=\"kn-consent-sheet\"]", "check": "none", "timeout": 1000 }]
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lightspeed-cookielaw",
|
|
3
|
+
"vendorUrl": "https://www.lightspeedhq.com/ecommerce/",
|
|
4
|
+
"prehideSelectors": [".wsa-cookielaw"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".wsa-cookielaw a[href*='/cookielaw/optOut']"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": ".wsa-cookielaw"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": ".wsa-cookielaw a[href*='/cookielaw/optIn']"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": ".wsa-cookielaw a[href*='/cookielaw/optOut']"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"test": [
|
|
26
|
+
{
|
|
27
|
+
"cookieContains": "COOKIELAW=optout"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lobbes",
|
|
3
|
+
"_metadata": { "vendorUrl": "https://www.lobbes.nl/" },
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?(lobbes\\.nl|lobbesspielzeug\\.de|lobbesjouet\\.fr)/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#accept_cookies_modal"],
|
|
8
|
+
"detectCmp": [{ "exists": "#accept_cookies_modal #edit_cookies_btn" }],
|
|
9
|
+
"detectPopup": [{ "visible": "#accept_cookies_modal.show" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": "#accept_cookies_modal #accept_all_cookies_btn" }],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{ "waitForThenClick": "#accept_cookies_modal #edit_cookies_btn" },
|
|
13
|
+
{ "waitForVisible": "#accept_cookies_modal #cookie_customize" },
|
|
14
|
+
{ "click": "#cookie_customize input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
|
|
15
|
+
{ "waitForThenClick": "#accept_cookies_modal #save_cookies_btn" }
|
|
16
|
+
],
|
|
17
|
+
"test": [{ "cookieContains": "analytics_storage=denied" }, { "cookieContains": "ad_storage=denied" }]
|
|
18
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mercadolibre-frame",
|
|
3
|
+
"vendorUrl": "https://www.mercadolibre.com/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"intermediate": true,
|
|
6
|
+
"runContext": {
|
|
7
|
+
"main": false,
|
|
8
|
+
"frame": true,
|
|
9
|
+
"urlPattern": "^https://www\\.mercado(libre|livre|pago)\\.[a-z.]+/"
|
|
10
|
+
},
|
|
11
|
+
"prehideSelectors": [],
|
|
12
|
+
"detectCmp": [{ "exists": ".pp-cookies-item-switch .andes-ui-switch" }, { "eval": "EVAL_MERCADOLIBRE_CROSS_ORIGIN_PARENT" }],
|
|
13
|
+
"detectPopup": [{ "visible": ".pp-cookies-item-switch .andes-ui-switch:not(.andes-ui-switch--disabled)" }],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{ "waitFor": ".pp-cookies-item-switch .andes-ui-switch:not(.andes-ui-switch--disabled)", "timeout": 10000 },
|
|
16
|
+
{ "eval": "EVAL_MERCADOLIBRE_SAVE" }
|
|
17
|
+
],
|
|
18
|
+
"optOut": [
|
|
19
|
+
{
|
|
20
|
+
"comment": "toggles are server-rendered as disabled until the page hydrates",
|
|
21
|
+
"waitFor": ".pp-cookies-item-switch .andes-ui-switch:not(.andes-ui-switch--disabled)",
|
|
22
|
+
"timeout": 10000
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"if": { "exists": ".pp-cookies-item-switch .andes-ui-switch[data-andes-state=checked]:not(.andes-ui-switch--disabled)" },
|
|
26
|
+
"then": [
|
|
27
|
+
{
|
|
28
|
+
"waitForThenClick": ".pp-cookies-item-switch .andes-ui-switch[data-andes-state=checked]:not(.andes-ui-switch--disabled)",
|
|
29
|
+
"all": true,
|
|
30
|
+
"retry": 5,
|
|
31
|
+
"retryInterval": 500
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"waitForVisible": ".pp-cookies-item-switch .andes-ui-switch[data-andes-state=checked]:not(.andes-ui-switch--disabled)",
|
|
37
|
+
"check": "none",
|
|
38
|
+
"timeout": 3000
|
|
39
|
+
},
|
|
40
|
+
{ "eval": "EVAL_MERCADOLIBRE_SAVE" }
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mercadolibre-subdomain",
|
|
3
|
+
"vendorUrl": "https://www.mercadolibre.com/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https://(?!www\\.)[\\w-]+\\.mercado(libre|livre|pago)\\.[a-z.]+/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": [".cookie-consent-banner-opt-out"],
|
|
9
|
+
"detectCmp": [{ "exists": ".cookie-consent-banner-opt-out" }],
|
|
10
|
+
"detectPopup": [{ "visible": ".cookie-consent-banner-opt-out" }],
|
|
11
|
+
"optIn": [{ "waitForThenClick": ".cookie-consent-banner-opt-out__action--key-accept" }],
|
|
12
|
+
"optOut": [
|
|
13
|
+
{
|
|
14
|
+
"comment": "the banner script defines the modal element when it attaches the button handlers",
|
|
15
|
+
"waitFor": ".cookie-consent-banner-opt-out__modal:defined",
|
|
16
|
+
"timeout": 15000
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"comment": "the banner is removed once the modal opens",
|
|
20
|
+
"waitForThenClick": ".cookie-consent-banner-opt-out__action--key-customize",
|
|
21
|
+
"retry": 2,
|
|
22
|
+
"retryInterval": 1000
|
|
23
|
+
},
|
|
24
|
+
{ "waitFor": ".cookie-consent-banner-opt-out__modal iframe" },
|
|
25
|
+
{
|
|
26
|
+
"comment": "the settings iframe is cross-origin here, mercadolibre-frame unchecks the toggles and saves from inside it",
|
|
27
|
+
"waitForVisible": ".cookie-consent-banner-opt-out__modal",
|
|
28
|
+
"check": "none",
|
|
29
|
+
"timeout": 15000
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"test": [{ "cookieContains": "%22advertising%22%3Afalse" }, { "cookieContains": "%22traceability%22%3Afalse" }]
|
|
33
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mindshape-cookie-consent",
|
|
3
|
+
"vendorUrl": "https://extensions.typo3.org/extension/mindshape_cookie_consent",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"frame": false,
|
|
6
|
+
"main": true
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#cookie-consent.cookie-consent-container .consent-modal"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"exists": "#cookie-consent button[name^='tx_mindshapecookieconsent_consent[consent]']"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": "#cookie-consent:not([style*='display: none']):not([style*='visibility: hidden']) .consent-modal"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"cookieContains": "cookie_consent=%7B",
|
|
20
|
+
"negated": true
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optIn": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": "#cookie-consent button[name='tx_mindshapecookieconsent_consent[consent][selectAll]'][value='1']"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"optOut": [
|
|
29
|
+
{
|
|
30
|
+
"if": {
|
|
31
|
+
"exists": "#cookie-consent button[name='tx_mindshapecookieconsent_consent[consent][deny]']"
|
|
32
|
+
},
|
|
33
|
+
"then": [
|
|
34
|
+
{
|
|
35
|
+
"waitForThenClick": "#cookie-consent button[name='tx_mindshapecookieconsent_consent[consent][deny]']"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"else": [
|
|
39
|
+
{
|
|
40
|
+
"click": "#cookie-consent .consent-modal input.option:checked",
|
|
41
|
+
"all": true,
|
|
42
|
+
"optional": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"click": "#cookie-consent .consent-modal .cookieoptions input[type='checkbox']:checked",
|
|
46
|
+
"all": true,
|
|
47
|
+
"optional": true
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"waitForThenClick": "#cookie-consent button[name='tx_mindshapecookieconsent_consent[consent][selectAll]'][value='0']"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"test": [
|
|
56
|
+
{
|
|
57
|
+
"cookieContains": "cookie_consent=%7B%22consent%22:true,%22options%22:%5B%5D"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "moneywise",
|
|
3
|
+
"vendorUrl": "https://www.moneywise.nl/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(\\w+\\.)?moneywise\\.nl/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#cookieDialog"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "dialog#cookieDialog #cookieSettings"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "dialog#cookieDialog[open]"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": "#cookieDialog [data-cc='accept-all'], #cookieDialog #ccAccepteer"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"if": {
|
|
26
|
+
"exists": "#cookieDialog #ccWeiger"
|
|
27
|
+
},
|
|
28
|
+
"then": [
|
|
29
|
+
{
|
|
30
|
+
"waitForThenClick": "#cookieDialog #ccWeiger"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"else": [
|
|
34
|
+
{
|
|
35
|
+
"waitForThenClick": "#cookieDialog [data-cc='toggle-settings']"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"waitForVisible": "#cookieSettings"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"click": "#cookieSettings input[type=checkbox]:checked:not(:disabled)",
|
|
42
|
+
"all": true,
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"waitForThenClick": "#cookieSettings [data-cc='save']"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"test": [
|
|
52
|
+
{
|
|
53
|
+
"cookieContains": "cookieConsent=%7B%22analytics%22%3Afalse%2C%22marketing%22%3Afalse"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "netwerknotarissen",
|
|
3
|
+
"vendorUrl": "https://netwerknotarissen.nl/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(\\w+\\.)?netwerknotarissen\\.nl/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#cookie-banner"],
|
|
8
|
+
"detectCmp": [{ "exists": "#cookie-banner a[onclick^=cookieSettings]" }],
|
|
9
|
+
"detectPopup": [{ "visible": "#cookie-banner" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": "#cookie-banner a[onclick^=acceptCookies]" }],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{ "waitForThenClick": "#cookie-banner a[onclick^=cookieSettings]" },
|
|
13
|
+
{ "waitForVisible": "#cookie-message .save-settings" },
|
|
14
|
+
{ "click": "#cookie-message input[type=checkbox]:checked:not([disabled])", "all": true, "optional": true },
|
|
15
|
+
{ "click": "#cookie-message .save-settings" },
|
|
16
|
+
{ "waitForVisible": "#cookie-message", "check": "none" }
|
|
17
|
+
],
|
|
18
|
+
"test": [
|
|
19
|
+
{ "cookieContains": "_nnco_cookiesettings=functional" },
|
|
20
|
+
{ "cookieContains": "_nnco_cookiesettings=functionalperformance", "negated": true },
|
|
21
|
+
{ "cookieContains": "_nnco_cookiesettings=functionaltargeting", "negated": true }
|
|
22
|
+
]
|
|
23
|
+
}
|