@duckduckgo/autoconsent 17.3.0 → 18.0.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/.prettierignore +1 -0
- package/AGENTS.md +2 -0
- package/CHANGELOG.md +90 -0
- package/dist/addon-firefox/background.bundle.js +28 -7
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +624 -54
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/popup.bundle.js +19 -7
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +28 -7
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +624 -54
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +19 -7
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +630 -60
- package/dist/autoconsent.esm.js +630 -60
- package/dist/autoconsent.playwright.js +624 -54
- package/dist/autoconsent.standalone.js +631 -61
- package/dist/heuristics.cjs.js +621 -52
- package/dist/heuristics.mjs +609 -50
- package/dist/types/cmps/trustarc-top.d.ts +1 -0
- package/dist/types/eval-snippets.d.ts +2 -0
- package/dist/types/heuristic-classify.d.ts +2 -6
- package/dist/types/heuristic-detect.d.ts +32 -0
- package/dist/types/heuristic-literals.d.ts +1 -0
- package/dist/types/heuristic-negatives.d.ts +25 -0
- package/dist/types/heuristic-patterns.d.ts +18 -2
- package/dist/types/heuristic-prefilter.d.ts +13 -0
- package/docs/heuristic-detection.md +78 -0
- package/docs/heuristic-prefilter.md +62 -0
- package/eslint.config.mjs +16 -1
- package/lib/cmps/admiral.ts +10 -0
- package/lib/cmps/trustarc-top.ts +10 -1
- package/lib/eval-snippets.ts +9 -0
- package/lib/heuristic-classify.ts +4 -39
- package/lib/heuristic-detect.ts +209 -0
- package/lib/heuristic-literals.ts +207 -0
- package/lib/heuristic-negatives.ts +173 -0
- package/lib/heuristic-patterns.ts +104 -31
- package/lib/heuristic-prefilter.ts +40 -0
- package/lib/heuristics.ts +8 -4
- package/lib/web.ts +1 -1
- package/package.json +2 -1
- package/rules/autoconsent/adblockplus.json +94 -0
- package/rules/autoconsent/alertamodal-cookies.json +29 -0
- package/rules/autoconsent/altamar-cookieconsent.json +45 -0
- package/rules/autoconsent/autohero.json +49 -0
- package/rules/autoconsent/bing.com-notice-cosmetic.json +28 -0
- package/rules/autoconsent/bing.com-notice.json +13 -0
- package/rules/autoconsent/binogi.json +32 -0
- package/rules/autoconsent/bokio.json +32 -0
- package/rules/autoconsent/botble-cookie-consent.json +16 -0
- package/rules/autoconsent/bsgdprcookies.json +16 -0
- package/rules/autoconsent/calcolo-tools.json +23 -0
- package/rules/autoconsent/casasrurales.json +15 -0
- package/rules/autoconsent/ccoo.json +40 -0
- package/rules/autoconsent/cdu-edu-au.json +29 -0
- package/rules/autoconsent/cnmc-gob-es.json +14 -0
- package/rules/autoconsent/comparandonos.json +66 -0
- package/rules/autoconsent/consent-backdrop.json +34 -0
- package/rules/autoconsent/consilium-europa-eu.json +35 -0
- package/rules/autoconsent/cookie-accordion-settings.json +56 -0
- package/rules/autoconsent/cookies-tip-v1.json +9 -0
- package/rules/autoconsent/cookiesplus.json +20 -0
- package/rules/autoconsent/crtm.json +36 -0
- package/rules/autoconsent/dtu-findit.json +47 -0
- package/rules/autoconsent/edebe.json +22 -0
- package/rules/autoconsent/eduardolosilla.json +12 -0
- package/rules/autoconsent/educastur-alojaweb.json +13 -0
- package/rules/autoconsent/flatsome-cookies.json +25 -0
- package/rules/autoconsent/gameforge.json +42 -0
- package/rules/autoconsent/gamefound-com.json +12 -0
- package/rules/autoconsent/generalitat-catalunya.json +15 -0
- package/rules/autoconsent/hikvision.com.json +18 -0
- package/rules/autoconsent/hurra-consent.json +16 -0
- package/rules/autoconsent/ihavecookies.json +5 -1
- package/rules/autoconsent/imarina.json +25 -0
- package/rules/autoconsent/isidewith.com.json +38 -0
- package/rules/autoconsent/jobtoday.json +18 -0
- package/rules/autoconsent/kaggle.json +21 -0
- package/rules/autoconsent/landgate.json +10 -0
- package/rules/autoconsent/mblock.json +28 -0
- package/rules/autoconsent/mirasvit-gdpr.json +18 -7
- package/rules/autoconsent/mites.gob.es.json +18 -0
- package/rules/autoconsent/pakamera.json +19 -0
- package/rules/autoconsent/purecookie-cosmetic.json +13 -0
- package/rules/autoconsent/random-org.json +41 -0
- package/rules/autoconsent/react-cookie-consent-cosmetic.json +40 -0
- package/rules/autoconsent/supercontable.json +19 -0
- package/rules/autoconsent/tallink.json +13 -0
- package/rules/autoconsent/tealium.json +4 -1
- package/rules/autoconsent/tusclasesparticulares.com.json +14 -0
- package/rules/autoconsent/typo3-cookieconsent.json +9 -0
- package/rules/autoconsent/udg.edu.json +47 -0
- package/rules/autoconsent/uned-barbastro.json +58 -0
- package/rules/autoconsent/uregina.json +35 -0
- package/rules/autoconsent/vinnies-org-au.json +29 -0
- package/rules/autoconsent/vrg-bottom-cookies.json +52 -0
- package/rules/autoconsent/wiki.gg.json +1 -1
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/scripts/build-heuristic-literals.ts +24 -0
- package/scripts/required-literals.ts +177 -0
- package/tests/adblockplus.spec.ts +7 -0
- package/tests/admiral.spec.ts +5 -4
- package/tests/alertamodal-cookies.spec.ts +8 -0
- package/tests/altamar-cookieconsent.spec.ts +6 -0
- package/tests/autohero.spec.ts +3 -0
- package/tests/bing.com-notice-cosmetic.spec.ts +5 -0
- package/tests/bing.com-notice.spec.ts +6 -0
- package/tests/binogi.spec.ts +3 -0
- package/tests/bokio.spec.ts +6 -0
- package/tests/botble-cookie-consent.spec.ts +11 -0
- package/tests/bsgdprcookies.spec.ts +6 -0
- package/tests/calcolo-tools.spec.ts +3 -0
- package/tests/casasrurales.spec.ts +3 -0
- package/tests/ccoo.spec.ts +5 -0
- package/tests/cdu-edu-au.spec.ts +3 -0
- package/tests/cnmc-gob-es.spec.ts +3 -0
- package/tests/comparandonos.spec.ts +3 -0
- package/tests/consent-backdrop.spec.ts +9 -0
- package/tests/consilium-europa-eu.spec.ts +3 -0
- package/tests/cookie-accordion-settings.spec.ts +5 -0
- package/tests/cookies-tip-v1.spec.ts +3 -0
- package/tests/cookiesplus.spec.ts +6 -0
- package/tests/crtm.spec.ts +3 -0
- package/tests/dtu-findit.spec.ts +3 -0
- package/tests/edebe.spec.ts +3 -0
- package/tests/eduardolosilla.spec.ts +3 -0
- package/tests/educastur-alojaweb.spec.ts +6 -0
- package/tests/flatsome-cookies.spec.ts +3 -0
- package/tests/gameforge.spec.ts +8 -0
- package/tests/gamefound-com.spec.ts +3 -0
- package/tests/generalitat-catalunya.spec.ts +3 -0
- package/tests/hikvision.com.spec.ts +3 -0
- package/tests/hurra-consent.spec.ts +8 -0
- package/tests/ihavecookies.spec.ts +7 -1
- package/tests/imarina.spec.ts +8 -0
- package/tests/isidewith.com.spec.ts +3 -0
- package/tests/jobtoday.spec.ts +5 -0
- package/tests/kaggle.spec.ts +3 -0
- package/tests/landgate.spec.ts +3 -0
- package/tests/mblock.spec.ts +3 -0
- package/tests/mirasvit-gdpr.spec.ts +5 -0
- package/tests/mites.gob.es.spec.ts +3 -0
- package/tests/pakamera.spec.ts +5 -0
- package/tests/purecookie-cosmetic.spec.ts +8 -0
- package/tests/random-org.spec.ts +3 -0
- package/tests/react-cookie-consent-cosmetic.spec.ts +9 -0
- package/tests/supercontable.spec.ts +3 -0
- package/tests/tallink.spec.ts +3 -0
- package/tests/trustarc.spec.ts +7 -0
- package/tests/tusclasesparticulares.com.spec.ts +3 -0
- package/tests/typo3-cookieconsent.spec.ts +10 -0
- package/tests/udg.edu.spec.ts +3 -0
- package/tests/uned-barbastro.spec.ts +3 -0
- package/tests/uregina.spec.ts +3 -0
- package/tests/vinnies-org-au.spec.ts +3 -0
- package/tests/vrg-bottom-cookies.spec.ts +3 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +222 -8
- package/tests-wtr/heuristics/regex-syntax.test.ts +81 -0
- package/rules/generated/auto_CA_promessedefleurs.com_noy.json +0 -40
- package/rules/generated/auto_FR_ludum.fr_gl5.json +0 -40
- package/rules/generated/auto_FR_meillandrichardier.com_c2f.json +0 -40
- package/rules/generated/auto_NL_bonprix.nl_ovi.json +0 -40
- package/tests/generated/auto_CA_promessedefleurs.com_noy.spec.ts +0 -6
- package/tests/generated/auto_FR_ludum.fr_gl5.spec.ts +0 -2
- package/tests/generated/auto_FR_meillandrichardier.com_c2f.spec.ts +0 -6
- package/tests/generated/auto_NL_bonprix.nl_ovi.spec.ts +0 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bokio",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(www\\.)?bokio\\.(se|co\\.uk)/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#cookiemodal"],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": "#cookiemodal #cookie-donottrack"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"detectPopup": [
|
|
13
|
+
{
|
|
14
|
+
"visible": "#cookiemodal:not(.cookiemodal--hidden) #cookie-donottrack"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"optIn": [
|
|
18
|
+
{
|
|
19
|
+
"waitForThenClick": "#cookiemodal #cookie-dotrack"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optOut": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": "#cookiemodal #cookie-donottrack"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"test": [
|
|
28
|
+
{
|
|
29
|
+
"cookieContains": "BokioDNT=DoNotTrack"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "botble-cookie-consent",
|
|
3
|
+
"vendorUrl": "https://botble.com/",
|
|
4
|
+
"prehideSelectors": [".js-cookie-consent:has(.js-cookie-consent-reject)"],
|
|
5
|
+
"detectCmp": [{ "exists": ".js-cookie-consent .js-cookie-consent-reject" }],
|
|
6
|
+
"detectPopup": [{ "visible": ".js-cookie-consent:not(.is-hidden) .js-cookie-consent-reject" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": ".js-cookie-consent :is(.js-cookie-consent-agree, .js-cookie-consent-accept)" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{
|
|
10
|
+
"waitForThenClick": ".js-cookie-consent:not(.is-hidden) .js-cookie-consent-reject",
|
|
11
|
+
"retry": 5,
|
|
12
|
+
"retryInterval": 500
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"test": [{ "visible": ".js-cookie-consent:not(.is-hidden) .js-cookie-consent-reject", "check": "none" }]
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bsgdprcookies",
|
|
3
|
+
"vendorUrl": "https://github.com/Aleksander98/bsgdprcookies",
|
|
4
|
+
"prehideSelectors": ["#bs-gdpr-cookies-modal"],
|
|
5
|
+
"detectCmp": [{ "exists": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-advanced-btn" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-accept-btn" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-accept-btn" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{ "waitForThenClick": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-advanced-btn" },
|
|
10
|
+
{ "waitForVisible": "#bs-gdpr-cookies-modal-advanced-types" },
|
|
11
|
+
{ "click": "#bs-gdpr-cookies-modal-advanced-types input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
|
|
12
|
+
{ "click": "#bs-gdpr-cookies-modal #bs-gdpr-cookies-modal-accept-btn" },
|
|
13
|
+
{ "waitForVisible": "#bs-gdpr-cookies-modal", "check": "none", "timeout": 2000, "optional": true }
|
|
14
|
+
],
|
|
15
|
+
"test": [{ "cookieContains": "CookieShow=true" }]
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "calcolo.tools",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(www\\.)?calcolo\\.tools/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#cc-banner"],
|
|
7
|
+
"detectCmp": [{ "visible": "#cc-banner #cc-reject" }],
|
|
8
|
+
"detectPopup": [{ "visible": "#cc-banner #cc-reject" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": "#cc-banner #cc-accept" }],
|
|
10
|
+
"optOut": [
|
|
11
|
+
{ "waitForThenClick": "#cc-banner #cc-reject" },
|
|
12
|
+
{ "waitFor": ".fc-cta-do-not-consent,.fc-cta-manage-options,.fc-li-only-placeholder", "timeout": 5000, "optional": true },
|
|
13
|
+
{
|
|
14
|
+
"if": { "exists": ".fc-cta-do-not-consent,.fc-cta-manage-options,.fc-li-only-placeholder" },
|
|
15
|
+
"then": [
|
|
16
|
+
{ "click": ".fc-cta-do-not-consent,.fc-cta-manage-options", "optional": true },
|
|
17
|
+
{ "click": ".fc-preference-consent:checked,.fc-preference-legitimate-interest:checked", "all": true, "optional": true },
|
|
18
|
+
{ "click": ".fc-confirm-choices", "optional": true }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"test": [{ "visible": "#cc-banner", "check": "none" }]
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "casasrurales",
|
|
3
|
+
"vendorUrl": "https://www.casasrurales.net/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"prehideSelectors": ["#cookiesLayer"],
|
|
6
|
+
"detectCmp": [{ "exists": "#cookiesLayerInn .act-cook[data-cook='2']" }],
|
|
7
|
+
"detectPopup": [{ "visible": "#cookiesLayerInn" }],
|
|
8
|
+
"optIn": [{ "waitForThenClick": "#cookiesLayerInn .act-cook[data-cook='1']" }],
|
|
9
|
+
"optOut": [
|
|
10
|
+
{ "waitForThenClick": "#cookiesLayerInn .act-cook[data-cook='2']" },
|
|
11
|
+
{ "waitForThenClick": "#cookiesLayerConfig #btn_no_cookies" },
|
|
12
|
+
{ "waitForVisible": "#cookiesLayer", "check": "none", "timeout": 3000, "optional": true }
|
|
13
|
+
],
|
|
14
|
+
"test": [{ "cookieContains": "conf_cookies=2%3A2%3A2%3A2" }]
|
|
15
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccoo",
|
|
3
|
+
"prehideSelectors": [".ccoo-cc-root"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": ".ccoo-cc-root #sn-b-save"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": ".ccoo-cc-root .ccoo-cc-dialog"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": ".ccoo-cc-root #adv-cookies-1 #accept-choices"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": ".ccoo-cc-root #sn-b-custom"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"waitForVisible": ".ccoo-cc-root #adv-cookies-3"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"click": ".ccoo-cc-root #adv-cookies-3 input[type=checkbox]:checked",
|
|
28
|
+
"all": true,
|
|
29
|
+
"optional": true
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"waitForThenClick": ".ccoo-cc-root #sn-b-save"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"test": [
|
|
36
|
+
{
|
|
37
|
+
"cookieContains": "config=0"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cdu-edu-au",
|
|
3
|
+
"vendorUrl": "https://www.cdu.edu.au/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://(\\w+\\.)?cdu\\.edu\\.au/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#cookie-compliance"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"exists": "#cookie-compliance [data-cookie-accept]"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": "#cookie-compliance"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#cookie-compliance [data-cookie-accept]"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"hide": "#cookie-compliance"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cnmc.gob.es",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(\\w+\\.)?cnmc\\.gob\\.es/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#cookiesjsr #cookiesSize.cookiesjsr-banner"],
|
|
7
|
+
"detectCmp": [{ "exists": "#cookiesjsr #cookiesSize.cookiesjsr-banner" }],
|
|
8
|
+
"detectPopup": [{ "visible": "#cookiesjsr" }, { "exists": "#cookiesSize.cookiesjsr-banner.active" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": "#cookiesSize .cookiesjsr-banner--action .cookiesjsr-btn.important" }],
|
|
10
|
+
"optOut": [
|
|
11
|
+
{ "waitForThenClick": "#cookiesSize .cookiesjsr-banner--action .cookiesjsr-btn:not(.important)" },
|
|
12
|
+
{ "waitForVisible": "#cookiesjsr", "timeout": 2000, "check": "none" }
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "comparandonos",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"main": true,
|
|
5
|
+
"frame": false,
|
|
6
|
+
"urlPattern": "^https?://(www\\.)?comparandonos\\.com/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#cookie-banner"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"exists": "#cookie-banner #customizeCookies"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": "#cookie-banner"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#cookie-banner #acceptCookies"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": "#cookie-banner #customizeCookies"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"waitForVisible": "#cookie-settings #saveCookies"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"if": {
|
|
33
|
+
"exists": "#analytics-cookies:checked"
|
|
34
|
+
},
|
|
35
|
+
"then": [
|
|
36
|
+
{
|
|
37
|
+
"click": "#analytics-cookies"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"if": {
|
|
43
|
+
"exists": "#marketing-cookies:checked"
|
|
44
|
+
},
|
|
45
|
+
"then": [
|
|
46
|
+
{
|
|
47
|
+
"click": "#marketing-cookies"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"click": "#cookie-settings #saveCookies"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"test": [
|
|
56
|
+
{
|
|
57
|
+
"waitForVisible": "#cookie-settings",
|
|
58
|
+
"timeout": 1000,
|
|
59
|
+
"check": "none"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"visible": "#cookie-banner",
|
|
63
|
+
"check": "none"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "consent-backdrop",
|
|
3
|
+
"prehideSelectors": [".consent-backdrop > .consent[role=dialog][aria-labelledby=consent-title]"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": ".consent-backdrop > .consent[role=dialog][aria-labelledby=consent-title] .consent__actions .consent__action--secondary"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": ".consent-backdrop > .consent[role=dialog][aria-labelledby=consent-title]"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": ".consent-backdrop .consent__actions .consent__action--primary"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"click": ".consent-backdrop .consent__groups input[type=checkbox]:checked:not(:disabled)",
|
|
22
|
+
"all": true,
|
|
23
|
+
"optional": true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": ".consent-backdrop .consent__actions .consent__action--secondary"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"test": [
|
|
30
|
+
{
|
|
31
|
+
"cookieContains": "consent_"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "consilium-europa-eu",
|
|
3
|
+
"vendorUrl": "https://www.consilium.europa.eu/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https://(www\\.)?consilium\\.europa\\.eu/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": [],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "gsc-cookie-banner"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": ["gsc-cookie-banner", "dialog[data-consent-banner]"]
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": ["gsc-cookie-banner", ".gsc-cookie-banner__actions gsc-button:last-child"]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": ["gsc-cookie-banner", ".gsc-cookie-banner__actions gsc-button:first-child"]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"test": [
|
|
29
|
+
{
|
|
30
|
+
"waitForVisible": ["gsc-cookie-banner", "dialog[data-consent-banner]"],
|
|
31
|
+
"check": "none",
|
|
32
|
+
"timeout": 2000
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cookie-accordion-settings",
|
|
3
|
+
"vendorUrl": "https://unknown",
|
|
4
|
+
"prehideSelectors": [".cookie.cookie--open"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".cookie .cookie__settings .cookie__save-settings"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"exists": ".cookie .cookie__open-settings"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": ".cookie.cookie--open .cookie__open-settings"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": ".cookie.cookie--open .cookie__accept-all"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": ".cookie.cookie--open .cookie__open-settings"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"waitForVisible": ".cookie .cookie__settings .cookie__save-settings"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"if": {
|
|
32
|
+
"visible": ".cookie .cookie__settings .cookie__decline-all"
|
|
33
|
+
},
|
|
34
|
+
"then": [
|
|
35
|
+
{
|
|
36
|
+
"click": ".cookie .cookie__settings .cookie__decline-all"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"else": [
|
|
40
|
+
{
|
|
41
|
+
"click": ".cookie .cookie__settings input.switch-toggler__checkbox:checked:not(:disabled)",
|
|
42
|
+
"all": true,
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"click": ".cookie .cookie__settings .cookie__save-settings"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"waitForVisible": ".cookie .cookie__open-settings",
|
|
52
|
+
"check": "none",
|
|
53
|
+
"timeout": 3000
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cookies-tip-v1",
|
|
3
|
+
"prehideSelectors": [".cookies-tip-v1-consent-container"],
|
|
4
|
+
"detectCmp": [{ "exists": ".cookies-tip-v1-consent-container [data-cky-tag=close-button]" }],
|
|
5
|
+
"detectPopup": [{ "visible": ".cookies-tip-v1-consent-container" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": ".cookies-tip-v1-consent-container [data-cky-tag=accept-button]" }],
|
|
7
|
+
"optOut": [{ "waitForThenClick": ".cookies-tip-v1-consent-container [data-cky-tag=close-button]" }],
|
|
8
|
+
"test": [{ "waitForVisible": ".cookies-tip-v1-consent-container", "timeout": 1000, "check": "none" }]
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cookiesplus",
|
|
3
|
+
"_metadata": { "vendorUrl": "https://www.idnovate.com/" },
|
|
4
|
+
"prehideSelectors": ["#cookiesplus-modal-container", "#cookiesplus-overlay"],
|
|
5
|
+
"detectCmp": [{ "exists": "#cookiesplus-modal #cookiesplus-form" }],
|
|
6
|
+
"detectPopup": [{ "visible": "#cookiesplus-modal" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "#cookiesplus-modal .cookiesplus-accept" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{
|
|
10
|
+
"if": { "visible": "#cookiesplus-modal .cookiesplus-reject", "check": "any" },
|
|
11
|
+
"then": [{ "click": "#cookiesplus-modal .cookiesplus-reject" }],
|
|
12
|
+
"else": [
|
|
13
|
+
{ "click": "#cookiesplus-modal .cookiesplus-more-information" },
|
|
14
|
+
{ "waitForThenClick": "#cookiesplus-modal .cookiesplus-save" }
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{ "waitForVisible": "#cookiesplus-modal", "check": "none", "timeout": 5000 }
|
|
18
|
+
],
|
|
19
|
+
"test": [{ "cookieContains": "C_P_DISPLAY_MODAL%22%3Afalse" }]
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "crtm",
|
|
3
|
+
"vendorUrl": "https://crtm.es/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(\\w+\\.)?crtm\\.es/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#cookie-banner", "#cookie-config-panel"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "#cookie-banner #configure-cookies"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "#cookie-banner"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": "#cookie-banner #accept-all-cookies"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": "#cookie-banner #configure-cookies"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"waitForThenClick": "#cookie-config-panel #reject-cookies"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"test": [
|
|
32
|
+
{
|
|
33
|
+
"cookieContains": "cookiesRejected=1"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dtu-findit",
|
|
3
|
+
"vendorUrl": "https://findit.dtu.dk/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://findit\\.dtu\\.dk/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": [],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": ".js-overlay .js-consent .js-consent-selected"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": ".js-overlay .js-consent .js-consent-selected"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": ".js-consent .js-consent-allow"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"if": {
|
|
26
|
+
"exists": ".js-consent .js-consent-option.is-selected[data-value=stat]"
|
|
27
|
+
},
|
|
28
|
+
"then": [
|
|
29
|
+
{
|
|
30
|
+
"click": ".js-consent .js-consent-option.is-selected[data-value=stat]"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"waitForThenClick": ".js-consent .js-consent-selected"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"test": [
|
|
39
|
+
{
|
|
40
|
+
"cookieContains": "cks=req"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"cookieContains": "stat",
|
|
44
|
+
"negated": true
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "edebe",
|
|
3
|
+
"vendorUrl": "https://plus.edebe.com/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://plus\\.edebe\\.com/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#cookieBanner"],
|
|
9
|
+
"detectCmp": [{ "exists": "#cookieBanner button[data-fragment=button]" }],
|
|
10
|
+
"detectPopup": [{ "visible": "#cookieBanner button[data-fragment=button]" }],
|
|
11
|
+
"optIn": [{ "waitForThenClick": "#cookieBanner button[data-fragment=button]:first-of-type" }],
|
|
12
|
+
"optOut": [
|
|
13
|
+
{ "waitForThenClick": "#cookieBanner button[data-fragment=button]:last-of-type" },
|
|
14
|
+
{ "waitForVisible": "[role=dialog][data-smtype=Dialog_alert] button[data-fragment=button]" },
|
|
15
|
+
{
|
|
16
|
+
"if": { "exists": "[role=dialog][data-smtype=Dialog_alert] [data-fragment=switch] input:not([disabled])[value=true]" },
|
|
17
|
+
"then": [{ "click": "[role=dialog][data-smtype=Dialog_alert] [data-fragment=switch] input:not([disabled])[value=true]" }]
|
|
18
|
+
},
|
|
19
|
+
{ "waitForThenClick": "[role=dialog][data-smtype=Dialog_alert] button[data-fragment=button]:last-of-type" }
|
|
20
|
+
],
|
|
21
|
+
"test": [{ "cookieContains": "cookies_analytics=false" }]
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "eduardolosilla.es",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(www\\.)?eduardolosilla\\.es/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["app-aviso-cookies .c-aviso-cookies"],
|
|
7
|
+
"detectCmp": [{ "exists": "app-aviso-cookies .c-aviso-cookies" }],
|
|
8
|
+
"detectPopup": [{ "visible": "app-aviso-cookies .c-aviso-cookies" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": "app-aviso-cookies .c-aviso-cookies__btn" }],
|
|
10
|
+
"optOut": [{ "waitForThenClick": "app-aviso-cookies .c-aviso-cookies__btn" }],
|
|
11
|
+
"test": [{ "waitForVisible": "app-aviso-cookies .c-aviso-cookies", "check": "none", "timeout": 1000 }]
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "educastur-alojaweb",
|
|
3
|
+
"vendorUrl": "https://alojaweb.educastur.es/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://alojaweb\\.educastur\\.es/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#educacentrosPrivacyPolicyLayer"],
|
|
9
|
+
"detectCmp": [{ "exists": "#educacentrosPrivacyPolicyLayer" }],
|
|
10
|
+
"detectPopup": [{ "visible": "#educacentrosPrivacyPolicyLayer" }],
|
|
11
|
+
"optIn": [{ "waitForThenClick": "#educacentrosPrivacyPolicyCloseButton" }],
|
|
12
|
+
"optOut": [{ "hide": "#educacentrosPrivacyPolicyLayer" }]
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "flatsome-cookies",
|
|
3
|
+
"cosmetic": true,
|
|
4
|
+
"prehideSelectors": [".flatsome-cookies"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".flatsome-cookies--active .flatsome-cookies__accept-btn"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": ".flatsome-cookies--active"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": ".flatsome-cookies--active .flatsome-cookies__accept-btn"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"hide": ".flatsome-cookies"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gameforge",
|
|
3
|
+
"vendorUrl": "https://gameforge.com/",
|
|
4
|
+
"prehideSelectors": [".cookiebanner1"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": "script[src*='consent.gameforge.com/']"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"exists": ".cookiebanner1 .cookiebanner4 > button.cookiebanner6"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": ".cookiebanner1 .cookiebanner2"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": ".cookiebanner1 .cookiebanner4 > button:not(.cookiebanner6)"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": ".cookiebanner1 .cookiebanner4 > button.cookiebanner6"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"waitForVisible": ".cookiebanner1 .cookiebanner11"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"waitForThenClick": ".cookiebanner1 .cookiebanner11 > button:last-child"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"test": [
|
|
35
|
+
{
|
|
36
|
+
"cookieContains": "gf-cookie-consent-"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"cookieContains": "=|0|"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gamefound-com",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https://(www\\.)?gamefound\\.com/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": true,
|
|
7
|
+
"prehideSelectors": [".gfu-floating-notification-box--fixed:has([data-qa^=\"cookie-policy-box\"])"],
|
|
8
|
+
"detectCmp": [{ "exists": "[data-qa^=\"cookie-policy-box\"] [data-qa=\"cookie-policy-button:AcceptAll\"]" }],
|
|
9
|
+
"detectPopup": [{ "visible": "[data-qa^=\"cookie-policy-box\"]" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": "[data-qa=\"cookie-policy-button:AcceptAll\"]" }],
|
|
11
|
+
"optOut": [{ "hide": ".gfu-floating-notification-box--fixed:has([data-qa^=\"cookie-policy-box\"])" }]
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "generalitat-catalunya",
|
|
3
|
+
"prehideSelectors": ["gov-core-cookies .cl-cookies"],
|
|
4
|
+
"detectCmp": [{ "exists": "gov-core-cookies .cl-cookies__bar" }],
|
|
5
|
+
"detectPopup": [{ "visible": "gov-core-cookies .cl-cookies__bar" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": "gov-core-cookies .cl-cookies__bar gov-core-button:last-of-type button" }],
|
|
7
|
+
"optOut": [
|
|
8
|
+
{
|
|
9
|
+
"comment": "open the settings modal, where all optional purposes are off by default",
|
|
10
|
+
"waitForThenClick": "gov-core-cookies .cl-cookies__bar gov-core-button:first-of-type button"
|
|
11
|
+
},
|
|
12
|
+
{ "waitForThenClick": "ngb-modal-window .modal-footer gov-core-button button" }
|
|
13
|
+
],
|
|
14
|
+
"test": [{ "cookieContains": "gen_consent=" }]
|
|
15
|
+
}
|