@duckduckgo/autoconsent 18.9.0 → 18.10.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/lib/regional-testing/harness.mjs +73 -6
- package/.agents/skills/oxylabs-testing/SKILL.md +4 -3
- package/.agents/skills/oxylabs-testing/scripts/oxylabs.mjs +26 -3
- package/.agents/skills/oxylabs-testing/scripts/oxylabs.test.mjs +27 -1
- package/.agents/skills/proxy-testing/SKILL.md +7 -2
- package/.agents/skills/proxy-testing/scripts/regional-proxy.mjs +4 -2
- package/.agents/skills/proxy-testing/scripts/regional-proxy.test.mjs +152 -2
- package/CHANGELOG.md +164 -0
- package/Jenkinsfile +22 -27
- package/data/coverage.json +14165 -3824
- package/dist/addon-firefox/background.bundle.js +9 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +14 -2
- 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 +9 -0
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +14 -2
- 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 +14 -2
- package/dist/autoconsent.esm.js +14 -2
- package/dist/autoconsent.playwright.js +14 -2
- package/dist/autoconsent.standalone.js +15 -3
- package/dist/heuristics.cjs.js +5 -2
- package/dist/heuristics.mjs +5 -2
- package/dist/types/eval-snippets.d.ts +2 -0
- package/lib/eval-snippets.ts +9 -0
- package/lib/heuristic-literals.ts +2 -1
- package/lib/heuristic-patterns.ts +3 -1
- package/package.json +1 -1
- package/playwright/runner.ts +30 -2
- package/rules/autoconsent/7plus.json +44 -0
- package/rules/autoconsent/adv-gr-jp.json +29 -0
- package/rules/autoconsent/agentii-getsbet-ro.json +19 -0
- package/rules/autoconsent/alza-cookies-info.json +36 -0
- package/rules/autoconsent/amasty-gdpr-hyva.json +73 -50
- package/rules/autoconsent/amazon.json +5 -2
- package/rules/autoconsent/amgueddfa-cms.json +46 -0
- package/rules/autoconsent/anowave-gtm.json +21 -0
- package/rules/autoconsent/anthropic.json +2 -2
- package/rules/autoconsent/apteka911-ua.json +29 -0
- package/rules/autoconsent/artfund.json +18 -0
- package/rules/autoconsent/babylonbee.json +1 -1
- package/rules/autoconsent/betsson-fr.json +45 -0
- package/rules/autoconsent/bladehq.json +13 -0
- package/rules/autoconsent/brandfetch.json +24 -0
- package/rules/autoconsent/bravissimo.json +18 -0
- package/rules/autoconsent/bristan-group.json +58 -0
- package/rules/autoconsent/bswhealth.json +11 -8
- package/rules/autoconsent/captain-compliance.json +30 -0
- package/rules/autoconsent/cardiff-university.json +37 -0
- package/rules/autoconsent/cgov-cookiebanner.json +9 -0
- package/rules/autoconsent/chrono24.json +54 -0
- package/rules/autoconsent/civic-govuk-cookiecontrol.json +16 -0
- package/rules/autoconsent/classbento.json +38 -0
- package/rules/autoconsent/collectingcars.json +18 -0
- package/rules/autoconsent/conscious-solutions.json +25 -0
- package/rules/autoconsent/consentik-notice.json +15 -0
- package/rules/autoconsent/consentik.json +25 -0
- package/rules/autoconsent/cookie-banner-required-only.json +17 -0
- package/rules/autoconsent/cookiebanner-closecookie.json +9 -0
- package/rules/autoconsent/cookieconsent3.json +1 -1
- package/rules/autoconsent/cookiesjsr.json +12 -8
- package/rules/autoconsent/copaair.json +33 -0
- package/rules/autoconsent/crocobet.json +35 -0
- package/rules/autoconsent/crosswater.co.uk.json +41 -0
- package/rules/autoconsent/de-volksbank.json +28 -5
- package/rules/autoconsent/derby-council.json +46 -0
- package/rules/autoconsent/detector-aero.json +21 -0
- package/rules/autoconsent/disturbia.json +38 -0
- package/rules/autoconsent/dobarkod-cookiebanner.json +10 -0
- package/rules/autoconsent/dpgmedia-nl.json +8 -8
- package/rules/autoconsent/energydashboard.co.uk.json +19 -0
- package/rules/autoconsent/ensighten.json +25 -1
- package/rules/autoconsent/eon-nl-cookiewall.json +30 -0
- package/rules/autoconsent/exceed-lms.json +10 -0
- package/rules/autoconsent/expressvpn.json +55 -0
- package/rules/autoconsent/fictionexpress.json +33 -0
- package/rules/autoconsent/food-standards-agency.json +46 -0
- package/rules/autoconsent/freak-no.json +16 -0
- package/rules/autoconsent/fullertonhotels.com.json +37 -6
- package/rules/autoconsent/fundednext.json +16 -0
- package/rules/autoconsent/furniture-com.json +68 -0
- package/rules/autoconsent/globes.json +40 -0
- package/rules/autoconsent/gm-consent.json +20 -0
- package/rules/autoconsent/gotrust.json +95 -0
- package/rules/autoconsent/grocefully.json +25 -0
- package/rules/autoconsent/hds-cookie-consent.json +10 -0
- package/rules/autoconsent/headfirstbristol.json +12 -0
- package/rules/autoconsent/healthysupplies.json +18 -0
- package/rules/autoconsent/helvy.co.uk.json +21 -0
- package/rules/autoconsent/holland-watch-group.json +12 -0
- package/rules/autoconsent/hubspot-cosmetic.json +15 -0
- package/rules/autoconsent/hubspot.json +4 -1
- package/rules/autoconsent/hyperoptic.json +44 -0
- package/rules/autoconsent/hypovereinsbank.json +39 -0
- package/rules/autoconsent/incogni.json +23 -0
- package/rules/autoconsent/islamqa.org.json +31 -0
- package/rules/autoconsent/itemsatis.json +41 -0
- package/rules/autoconsent/ixo-cookie-prompt.json +12 -0
- package/rules/autoconsent/kela-fi.json +32 -0
- package/rules/autoconsent/kenstechtips.json +12 -0
- package/rules/autoconsent/keurig.com.json +47 -0
- package/rules/autoconsent/krillion.json +13 -0
- package/rules/autoconsent/lawhive.json +27 -0
- package/rules/autoconsent/laxd.json +29 -0
- package/rules/autoconsent/lessonup.json +24 -0
- package/rules/autoconsent/ligonier.json +13 -0
- package/rules/autoconsent/madeiramadeira.json +31 -0
- package/rules/autoconsent/manage-cookie-modal.json +52 -0
- package/rules/autoconsent/marriott-notice.json +28 -0
- package/rules/autoconsent/mccoysguide.json +40 -0
- package/rules/autoconsent/mercadolibre.json +3 -3
- package/rules/autoconsent/myfooddiary.json +36 -0
- package/rules/autoconsent/nationwidevehiclecontracts.json +37 -0
- package/rules/autoconsent/natural-intelligence.json +21 -0
- package/rules/autoconsent/naturalnews.json +32 -0
- package/rules/autoconsent/nfl.json +32 -0
- package/rules/autoconsent/noon.json +41 -0
- package/rules/autoconsent/odia.json +12 -0
- package/rules/autoconsent/op-consent-manager.json +17 -0
- package/rules/autoconsent/opencart-google-consent-v2.json +27 -0
- package/rules/autoconsent/pandectes.json +13 -4
- package/rules/autoconsent/paperlesspost.json +64 -0
- package/rules/autoconsent/passenger-cookie-opt-in.json +15 -0
- package/rules/autoconsent/peda-net.json +34 -0
- package/rules/autoconsent/peterchristian.json +35 -0
- package/rules/autoconsent/pieeye.json +25 -0
- package/rules/autoconsent/playdoit-mx.json +32 -0
- package/rules/autoconsent/pmc-privacy-banner.json +40 -6
- package/rules/autoconsent/prestigeflowers.json +21 -0
- package/rules/autoconsent/profootballmania.json +21 -0
- package/rules/autoconsent/pvh.json +29 -0
- package/rules/autoconsent/quorn.json +17 -0
- package/rules/autoconsent/randewoo.ru.json +37 -0
- package/rules/autoconsent/rct-cookies-modal.json +36 -0
- package/rules/autoconsent/realfoods-co-uk.json +18 -0
- package/rules/autoconsent/roguefitness.json +18 -0
- package/rules/autoconsent/rosbalt-ru.json +35 -0
- package/rules/autoconsent/securiti-hybrid.json +30 -0
- package/rules/autoconsent/shopblocks.json +41 -0
- package/rules/autoconsent/sicredi-frame.json +16 -0
- package/rules/autoconsent/sicredi.json +0 -1
- package/rules/autoconsent/simplepractice.com.json +60 -0
- package/rules/autoconsent/skroutz.json +33 -0
- package/rules/autoconsent/spares2repair.json +42 -0
- package/rules/autoconsent/spusu.json +18 -0
- package/rules/autoconsent/sykescottages.json +49 -0
- package/rules/autoconsent/termsfeed.json +4 -4
- package/rules/autoconsent/truecar.json +5 -5
- package/rules/autoconsent/trustarc-newcm.json +37 -6
- package/rules/autoconsent/ubuy.json +10 -0
- package/rules/autoconsent/ukplanettools.json +45 -0
- package/rules/autoconsent/vidal-ru.json +12 -0
- package/rules/autoconsent/virginwines-co-uk.json +32 -0
- package/rules/autoconsent/visualsoft.json +24 -0
- package/rules/autoconsent/vsco.json +27 -0
- package/rules/autoconsent/vystarcu.json +17 -0
- package/rules/autoconsent/web-labs-cookie-consent.json +69 -0
- package/rules/autoconsent/webnetism.json +42 -0
- package/rules/autoconsent/whatnot.json +32 -0
- package/rules/autoconsent/wow-forever.json +33 -0
- package/rules/autoconsent/wso2-identity-server.json +30 -0
- package/rules/autoconsent/xhamster-eu.json +1 -1
- package/rules/autoconsent/xhamster-us.json +1 -1
- package/rules/autoconsent/yourparkingspace.json +47 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/7plus.spec.ts +6 -0
- package/tests/adv-gr-jp.spec.ts +3 -0
- package/tests/agentii-getsbet-ro.spec.ts +3 -0
- package/tests/alza-cookies-info.spec.ts +10 -0
- package/tests/amasty-gdpr-hyva.spec.ts +9 -0
- package/tests/amazon.spec.ts +7 -14
- package/tests/amgueddfa-cms.spec.ts +3 -0
- package/tests/anowave-gtm.spec.ts +8 -0
- package/tests/anthropic.spec.ts +6 -1
- package/tests/apteka911-ua.spec.ts +3 -0
- package/tests/artfund.spec.ts +3 -0
- package/tests/babylonbee.spec.ts +1 -1
- package/tests/betsson-fr.spec.ts +12 -0
- package/tests/bladehq.spec.ts +3 -0
- package/tests/brandfetch.spec.ts +5 -0
- package/tests/bravissimo.spec.ts +9 -0
- package/tests/bristan-group.spec.ts +3 -0
- package/tests/bswhealth.spec.ts +1 -1
- package/tests/captain-compliance.spec.ts +15 -0
- package/tests/cardiff-university.spec.ts +3 -0
- package/tests/cgov-cookiebanner.spec.ts +6 -0
- package/tests/chrono24.spec.ts +3 -0
- package/tests/civic-govuk-cookiecontrol.spec.ts +9 -0
- package/tests/classbento.spec.ts +3 -0
- package/tests/collectingcars.spec.ts +3 -0
- package/tests/conscious-solutions.spec.ts +10 -0
- package/tests/consentik-notice.spec.ts +3 -0
- package/tests/consentik.spec.ts +8 -0
- package/tests/cookie-banner-required-only.spec.ts +9 -0
- package/tests/cookiebanner-closecookie.spec.ts +3 -0
- package/tests/cookieconsent3.spec.ts +4 -5
- package/tests/cookiesjsr.spec.ts +3 -0
- package/tests/copaair.spec.ts +3 -0
- package/tests/crocobet.spec.ts +11 -0
- package/tests/crosswater.co.uk.spec.ts +3 -0
- package/tests/de-volksbank.spec.ts +14 -3
- package/tests/derby-council.spec.ts +8 -0
- package/tests/detector-aero.spec.ts +3 -0
- package/tests/disturbia.spec.ts +6 -0
- package/tests/dobarkod-cookiebanner.spec.ts +8 -0
- package/tests/energydashboard.co.uk.spec.ts +3 -0
- package/tests/ensighten.spec.ts +9 -0
- package/tests/eon-nl-cookiewall.spec.ts +6 -0
- package/tests/exceed-lms.spec.ts +8 -0
- package/tests/expressvpn.spec.ts +3 -0
- package/tests/fictionexpress.spec.ts +3 -0
- package/tests/food-standards-agency.spec.ts +3 -0
- package/tests/freak-no.spec.ts +4 -0
- package/tests/fullertonhotels.com.spec.ts +17 -2
- package/tests/fundednext.spec.ts +6 -0
- package/tests/furniture-com.spec.ts +6 -0
- package/tests/globes.spec.ts +3 -0
- package/tests/gm-consent.spec.ts +9 -0
- package/tests/gotrust.spec.ts +9 -0
- package/tests/grocefully.spec.ts +5 -0
- package/tests/hds-cookie-consent.spec.ts +8 -0
- package/tests/headfirstbristol.spec.ts +3 -0
- package/tests/healthysupplies.spec.ts +3 -0
- package/tests/helvy.co.uk.spec.ts +3 -0
- package/tests/holland-watch-group.spec.ts +8 -0
- package/tests/hubspot-cosmetic.spec.ts +6 -0
- package/tests/hyperoptic.spec.ts +3 -0
- package/tests/hypovereinsbank.spec.ts +4 -0
- package/tests/incogni.spec.ts +3 -0
- package/tests/islamqa.org.spec.ts +3 -0
- package/tests/itemsatis.spec.ts +3 -0
- package/tests/ixo-cookie-prompt.spec.ts +8 -0
- package/tests/kela-fi.spec.ts +3 -0
- package/tests/kenstechtips.spec.ts +3 -0
- package/tests/keurig.com.spec.ts +3 -0
- package/tests/krillion.spec.ts +6 -0
- package/tests/lawhive.spec.ts +3 -0
- package/tests/laxd.spec.ts +6 -0
- package/tests/lessonup.spec.ts +3 -0
- package/tests/ligonier.spec.ts +3 -0
- package/tests/madeiramadeira.spec.ts +3 -0
- package/tests/manage-cookie-modal.spec.ts +3 -0
- package/tests/marriott-notice.spec.ts +8 -0
- package/tests/mccoysguide.spec.ts +3 -0
- package/tests/myfooddiary.spec.ts +3 -0
- package/tests/nationwidevehiclecontracts.spec.ts +3 -0
- package/tests/natural-intelligence.spec.ts +9 -0
- package/tests/naturalnews.spec.ts +3 -0
- package/tests/nfl.spec.ts +3 -0
- package/tests/noon.spec.ts +5 -0
- package/tests/odia.spec.ts +3 -0
- package/tests/op-consent-manager.spec.ts +3 -0
- package/tests/opencart-google-consent-v2.spec.ts +8 -0
- package/tests/pandectes.spec.ts +3 -0
- package/tests/paperlesspost.spec.ts +5 -0
- package/tests/passenger-cookie-opt-in.spec.ts +14 -0
- package/tests/peda-net.spec.ts +3 -0
- package/tests/peterchristian.spec.ts +3 -0
- package/tests/pieeye.spec.ts +16 -0
- package/tests/playdoit-mx.spec.ts +3 -0
- package/tests/pmc-privacy-banner.spec.ts +3 -0
- package/tests/prestigeflowers.spec.ts +5 -0
- package/tests/profootballmania.spec.ts +3 -0
- package/tests/pvh.spec.ts +8 -0
- package/tests/quorn.spec.ts +3 -0
- package/tests/randewoo.ru.spec.ts +3 -0
- package/tests/rct-cookies-modal.spec.ts +13 -0
- package/tests/realfoods-co-uk.spec.ts +3 -0
- package/tests/roguefitness.spec.ts +3 -0
- package/tests/rosbalt-ru.spec.ts +3 -0
- package/tests/securiti-hybrid.spec.ts +13 -0
- package/tests/shopblocks.spec.ts +8 -0
- package/tests/sicredi-frame.spec.ts +11 -0
- package/tests/sicredi.spec.ts +1 -1
- package/tests/simplepractice.com.spec.ts +4 -0
- package/tests/skroutz.spec.ts +6 -0
- package/tests/spares2repair.spec.ts +5 -0
- package/tests/spusu.spec.ts +3 -0
- package/tests/sykescottages.spec.ts +3 -0
- package/tests/termsfeed.spec.ts +6 -2
- package/tests/truecar.spec.ts +1 -1
- package/tests/trustarc-newcm.spec.ts +16 -0
- package/tests/ubuy.spec.ts +5 -0
- package/tests/ukplanettools.spec.ts +3 -0
- package/tests/vidal-ru.spec.ts +3 -0
- package/tests/virginwines-co-uk.spec.ts +3 -0
- package/tests/visualsoft.spec.ts +3 -0
- package/tests/vsco.spec.ts +7 -0
- package/tests/vystarcu.spec.ts +3 -0
- package/tests/web-labs-cookie-consent.spec.ts +12 -0
- package/tests/webnetism.spec.ts +10 -0
- package/tests/whatnot.spec.ts +3 -0
- package/tests/wow-forever.spec.ts +3 -0
- package/tests/wso2-identity-server.spec.ts +3 -0
- package/tests/xhamster-eu.spec.ts +2 -0
- package/tests/xhamster-us.spec.ts +2 -0
- package/tests/yourparkingspace.spec.ts +3 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +3 -0
- package/rules/generated/auto_AU_u-buy.com.au_rg0.json +0 -37
- package/rules/generated/auto_CH_seetickets.com_4b2.json +0 -40
- package/rules/generated/auto_GB_charlesclinkard.co.uk_0.json +0 -37
- package/tests/generated/auto_AU_u-buy.com.au_rg0.spec.ts +0 -2
- package/tests/generated/auto_CH_seetickets.com_4b2.spec.ts +0 -6
- package/tests/generated/auto_GB_charlesclinkard.co.uk_0.spec.ts +0 -6
package/dist/heuristics.cjs.js
CHANGED
|
@@ -135,6 +135,8 @@ var DETECT_PATTERNS = [
|
|
|
135
135
|
/\bwe use (?:[\w-]+ )?analytics (?:to|for)\b|\bwe use google analytics\b.{0,100}\bcookie/gi,
|
|
136
136
|
/\b(?:con|senza) il (?:tuo|vostro) consenso\b/gi,
|
|
137
137
|
/\baccept or (?:reject|decline) (?:all |optional |non-essential )?cookies\b/gi,
|
|
138
|
+
// the consent choice itself, as in FR/IT/ES: "continuer sans accepter"
|
|
139
|
+
/\bcontinue without accepting\b/gi,
|
|
138
140
|
// it might be tempting to add the patterns below, but they cause too many false positives. Don't do it :)
|
|
139
141
|
// /cookies? settings/i,
|
|
140
142
|
// /cookies? preferences/i,
|
|
@@ -310,7 +312,7 @@ var DETECT_PATTERNS = [
|
|
|
310
312
|
/strona.{0,50} używa (ciasteczek|cookie)/gi,
|
|
311
313
|
/ta strona korzysta z ciasteczek/gi,
|
|
312
314
|
/uzyskujemy dostęp i przechowujemy informacje na urządzeniu/gi,
|
|
313
|
-
/używa plik[ió]w? cookie/gi,
|
|
315
|
+
/używa(?:ją)? plik[ió]w? cookie/gi,
|
|
314
316
|
/używamy plików.{0,20}cookie/gi,
|
|
315
317
|
/wykorzystują .{0,100}cookie/gi,
|
|
316
318
|
/za pomocą plików cookies.{0,100} my lub nasi partnerzy/gi,
|
|
@@ -1199,6 +1201,7 @@ var DETECT_PATTERN_LITERALS = [
|
|
|
1199
1201
|
["analytics ", "we use google analytics"],
|
|
1200
1202
|
[" consenso"],
|
|
1201
1203
|
["accept or "],
|
|
1204
|
+
["continue without accepting"],
|
|
1202
1205
|
["utilisons"],
|
|
1203
1206
|
["cookies"],
|
|
1204
1207
|
["consentement"],
|
|
@@ -1353,7 +1356,7 @@ var DETECT_PATTERN_LITERALS = [
|
|
|
1353
1356
|
[" u\u017Cywa "],
|
|
1354
1357
|
["ta strona korzysta z ciasteczek"],
|
|
1355
1358
|
["uzyskujemy dost\u0119p i przechowujemy informacje na urz\u0105dzeniu"],
|
|
1356
|
-
["
|
|
1359
|
+
[" cookie"],
|
|
1357
1360
|
["u\u017Cywamy plik\xF3w"],
|
|
1358
1361
|
["wykorzystuj\u0105 "],
|
|
1359
1362
|
["za pomoc\u0105 plik\xF3w cookies"],
|
package/dist/heuristics.mjs
CHANGED
|
@@ -83,6 +83,8 @@ var DETECT_PATTERNS = [
|
|
|
83
83
|
/\bwe use (?:[\w-]+ )?analytics (?:to|for)\b|\bwe use google analytics\b.{0,100}\bcookie/gi,
|
|
84
84
|
/\b(?:con|senza) il (?:tuo|vostro) consenso\b/gi,
|
|
85
85
|
/\baccept or (?:reject|decline) (?:all |optional |non-essential )?cookies\b/gi,
|
|
86
|
+
// the consent choice itself, as in FR/IT/ES: "continuer sans accepter"
|
|
87
|
+
/\bcontinue without accepting\b/gi,
|
|
86
88
|
// it might be tempting to add the patterns below, but they cause too many false positives. Don't do it :)
|
|
87
89
|
// /cookies? settings/i,
|
|
88
90
|
// /cookies? preferences/i,
|
|
@@ -258,7 +260,7 @@ var DETECT_PATTERNS = [
|
|
|
258
260
|
/strona.{0,50} używa (ciasteczek|cookie)/gi,
|
|
259
261
|
/ta strona korzysta z ciasteczek/gi,
|
|
260
262
|
/uzyskujemy dostęp i przechowujemy informacje na urządzeniu/gi,
|
|
261
|
-
/używa plik[ió]w? cookie/gi,
|
|
263
|
+
/używa(?:ją)? plik[ió]w? cookie/gi,
|
|
262
264
|
/używamy plików.{0,20}cookie/gi,
|
|
263
265
|
/wykorzystują .{0,100}cookie/gi,
|
|
264
266
|
/za pomocą plików cookies.{0,100} my lub nasi partnerzy/gi,
|
|
@@ -1147,6 +1149,7 @@ var DETECT_PATTERN_LITERALS = [
|
|
|
1147
1149
|
["analytics ", "we use google analytics"],
|
|
1148
1150
|
[" consenso"],
|
|
1149
1151
|
["accept or "],
|
|
1152
|
+
["continue without accepting"],
|
|
1150
1153
|
["utilisons"],
|
|
1151
1154
|
["cookies"],
|
|
1152
1155
|
["consentement"],
|
|
@@ -1301,7 +1304,7 @@ var DETECT_PATTERN_LITERALS = [
|
|
|
1301
1304
|
[" u\u017Cywa "],
|
|
1302
1305
|
["ta strona korzysta z ciasteczek"],
|
|
1303
1306
|
["uzyskujemy dost\u0119p i przechowujemy informacje na urz\u0105dzeniu"],
|
|
1304
|
-
["
|
|
1307
|
+
[" cookie"],
|
|
1305
1308
|
["u\u017Cywamy plik\xF3w"],
|
|
1306
1309
|
["wykorzystuj\u0105 "],
|
|
1307
1310
|
["za pomoc\u0105 plik\xF3w cookies"],
|
|
@@ -53,6 +53,8 @@ export declare const snippets: {
|
|
|
53
53
|
EVAL_MICROSOFT_1: () => any;
|
|
54
54
|
EVAL_MICROSOFT_2: () => boolean;
|
|
55
55
|
EVAL_MOOVE_0: () => boolean;
|
|
56
|
+
EVAL_NFL_ONETRUST_ALLOW_ALL: () => boolean;
|
|
57
|
+
EVAL_NFL_ONETRUST_REJECT_ALL: () => boolean;
|
|
56
58
|
EVAL_NHNIEUWS_TEST: () => boolean;
|
|
57
59
|
EVAL_OSANO_DETECT: () => boolean;
|
|
58
60
|
EVAL_PANDECTES_TEST: () => boolean;
|
package/lib/eval-snippets.ts
CHANGED
|
@@ -199,6 +199,15 @@ export const snippets = {
|
|
|
199
199
|
document.querySelectorAll('#moove_gdpr_cookie_modal input').forEach((i) => {
|
|
200
200
|
if (!i.disabled) i.checked = i.name === 'moove_gdpr_strict_cookies' || i.id === 'moove_gdpr_strict_cookies';
|
|
201
201
|
}) || true,
|
|
202
|
+
// the site reloads on banner button clicks, which can abort the SDK's deferred save
|
|
203
|
+
EVAL_NFL_ONETRUST_ALLOW_ALL: () => {
|
|
204
|
+
window.OneTrust.AllowAll();
|
|
205
|
+
return true;
|
|
206
|
+
},
|
|
207
|
+
EVAL_NFL_ONETRUST_REJECT_ALL: () => {
|
|
208
|
+
window.OneTrust.RejectAll();
|
|
209
|
+
return true;
|
|
210
|
+
},
|
|
202
211
|
EVAL_NHNIEUWS_TEST: () => !!localStorage.getItem('psh:cookies-seen'),
|
|
203
212
|
EVAL_OSANO_DETECT: () => !!window.Osano?.cm?.dialogOpen,
|
|
204
213
|
EVAL_PANDECTES_TEST: () =>
|
|
@@ -58,6 +58,7 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
58
58
|
["analytics ","we use google analytics"],
|
|
59
59
|
[" consenso"],
|
|
60
60
|
["accept or "],
|
|
61
|
+
["continue without accepting"],
|
|
61
62
|
["utilisons"],
|
|
62
63
|
["cookies"],
|
|
63
64
|
["consentement"],
|
|
@@ -212,7 +213,7 @@ export const DETECT_PATTERN_LITERALS: string[][] = [
|
|
|
212
213
|
[" używa "],
|
|
213
214
|
["ta strona korzysta z ciasteczek"],
|
|
214
215
|
["uzyskujemy dostęp i przechowujemy informacje na urządzeniu"],
|
|
215
|
-
["
|
|
216
|
+
[" cookie"],
|
|
216
217
|
["używamy plików"],
|
|
217
218
|
["wykorzystują "],
|
|
218
219
|
["za pomocą plików cookies"],
|
|
@@ -91,6 +91,8 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
91
91
|
/\bwe use (?:[\w-]+ )?analytics (?:to|for)\b|\bwe use google analytics\b.{0,100}\bcookie/gi,
|
|
92
92
|
/\b(?:con|senza) il (?:tuo|vostro) consenso\b/gi,
|
|
93
93
|
/\baccept or (?:reject|decline) (?:all |optional |non-essential )?cookies\b/gi,
|
|
94
|
+
// the consent choice itself, as in FR/IT/ES: "continuer sans accepter"
|
|
95
|
+
/\bcontinue without accepting\b/gi,
|
|
94
96
|
|
|
95
97
|
// it might be tempting to add the patterns below, but they cause too many false positives. Don't do it :)
|
|
96
98
|
// /cookies? settings/i,
|
|
@@ -275,7 +277,7 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
275
277
|
/strona.{0,50} używa (ciasteczek|cookie)/gi,
|
|
276
278
|
/ta strona korzysta z ciasteczek/gi,
|
|
277
279
|
/uzyskujemy dostęp i przechowujemy informacje na urządzeniu/gi,
|
|
278
|
-
/używa plik[ió]w? cookie/gi,
|
|
280
|
+
/używa(?:ją)? plik[ió]w? cookie/gi,
|
|
279
281
|
/używamy plików.{0,20}cookie/gi,
|
|
280
282
|
/wykorzystują .{0,100}cookie/gi,
|
|
281
283
|
/za pomocą plików cookies.{0,100} my lub nasi partnerzy/gi,
|
package/package.json
CHANGED
package/playwright/runner.ts
CHANGED
|
@@ -19,6 +19,18 @@ const LOG_PAGE_LOGS = false;
|
|
|
19
19
|
|
|
20
20
|
const testRegion = (process.env.REGION || 'NA').trim();
|
|
21
21
|
|
|
22
|
+
// CI sets these to cut the number of tests per run (see Jenkinsfile).
|
|
23
|
+
// SKIP_OPT_IN=1 does not define optIn tests.
|
|
24
|
+
const skipOptIn = process.env.SKIP_OPT_IN === '1';
|
|
25
|
+
// CI_REGIONS lists the regions the CI run covers. Each spec then runs in at most MAX_CI_REGIONS of them.
|
|
26
|
+
const ciRegions = (process.env.CI_REGIONS || '')
|
|
27
|
+
.split(',')
|
|
28
|
+
.map((r) => r.trim().toUpperCase())
|
|
29
|
+
.filter(Boolean);
|
|
30
|
+
const MAX_CI_REGIONS = 3;
|
|
31
|
+
// CI_SEED (the PR number) picks the extra regions, so a PR always tests the same ones and different PRs spread across all regions.
|
|
32
|
+
const ciSeed = process.env.CI_SEED || '';
|
|
33
|
+
|
|
22
34
|
// OXYLABS=1 runs each test in a fresh Oxylabs Agent Browser session in REGION instead of a local browser.
|
|
23
35
|
const useOxylabs = process.env.OXYLABS === '1';
|
|
24
36
|
// Local runs list the tests that failed on a bot wall here; Oxylabs runs only define the listed tests.
|
|
@@ -474,6 +486,18 @@ class TestRun {
|
|
|
474
486
|
// Runs by test id, for the afterEach hook that records Oxylabs candidates.
|
|
475
487
|
const testRuns = new Map<string, TestRun>();
|
|
476
488
|
|
|
489
|
+
// The CI regions a spec runs in: US, then the spec's onlyRegions in the order written, then regions picked with CI_SEED until there are MAX_CI_REGIONS.
|
|
490
|
+
function pickCIRegions(options: TestOptions): string[] {
|
|
491
|
+
let eligible = ciRegions.filter((r) => !options.skipRegions?.includes(r));
|
|
492
|
+
if (options.onlyRegions && options.onlyRegions.length > 0) {
|
|
493
|
+
eligible = eligible.filter((r) => options.onlyRegions!.includes(r));
|
|
494
|
+
}
|
|
495
|
+
const picked = ['US', ...(options.onlyRegions || [])].filter((r, i, all) => eligible.includes(r) && all.indexOf(r) === i);
|
|
496
|
+
const seededOrder = (r: string) => crypto.createHash('md5').update(`${ciSeed}:${r}`).digest('hex');
|
|
497
|
+
const rest = eligible.filter((r) => !picked.includes(r)).sort((a, b) => seededOrder(a).localeCompare(seededOrder(b)));
|
|
498
|
+
return [...picked, ...rest].slice(0, MAX_CI_REGIONS);
|
|
499
|
+
}
|
|
500
|
+
|
|
477
501
|
export default function generateCMPTests(cmp: string, sites: string[], overrideOptions: Partial<TestOptions> = {}) {
|
|
478
502
|
test.describe(cmp, () => {
|
|
479
503
|
if (recordOxylabsCandidates) {
|
|
@@ -492,6 +516,9 @@ export default function generateCMPTests(cmp: string, sites: string[], overrideO
|
|
|
492
516
|
if (finalOptions.skipRegions?.includes(testRegion)) {
|
|
493
517
|
return;
|
|
494
518
|
}
|
|
519
|
+
if (ciRegions.length > 0 && !pickCIRegions(finalOptions).includes(testRegion)) {
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
495
522
|
|
|
496
523
|
const domain = new URL(url).hostname;
|
|
497
524
|
const urlHash = crypto.createHash('md5').update(url).digest('hex').slice(0, 4);
|
|
@@ -511,10 +538,11 @@ export default function generateCMPTests(cmp: string, sites: string[], overrideO
|
|
|
511
538
|
});
|
|
512
539
|
};
|
|
513
540
|
|
|
514
|
-
|
|
541
|
+
const testOptIn = finalOptions.testOptIn && !skipOptIn;
|
|
542
|
+
if (!testOptIn && !finalOptions.testOptOut) {
|
|
515
543
|
defineTest('noaction', null);
|
|
516
544
|
}
|
|
517
|
-
if (
|
|
545
|
+
if (testOptIn) {
|
|
518
546
|
defineTest('optIn', 'optIn');
|
|
519
547
|
}
|
|
520
548
|
if (finalOptions.testOptOut) {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "7plus",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(\\w+\\.)?7plus\\.com\\.au/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#app > [class^='cookieContainer']"],
|
|
7
|
+
"detectCmp": [{ "exists": "#app > [class^='cookieContainer'] [class*='acceptAndCloseButton']" }],
|
|
8
|
+
"detectPopup": [{ "visible": "#app > [class^='cookieContainer'] [class*='acceptAndCloseButton']" }],
|
|
9
|
+
"optIn": [
|
|
10
|
+
{
|
|
11
|
+
"if": { "exists": "[class^='cookieContainer'] [class*='toggleSettingsButton']" },
|
|
12
|
+
"then": [
|
|
13
|
+
{ "click": "[class^='cookieContainer'] [class*='toggleSettingsButton']" },
|
|
14
|
+
{ "waitForVisible": "[class^='cookieContainer'] div[class^='settings'] button" },
|
|
15
|
+
{
|
|
16
|
+
"click": "[class^='cookieContainer'] div[class^='settings'] button:not([class*='active']):not([disabled])",
|
|
17
|
+
"all": true,
|
|
18
|
+
"optional": true
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{ "waitForThenClick": "[class^='cookieContainer'] [class*='acceptAndCloseButton']" }
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"if": { "exists": "[class^='cookieContainer'] [class*='toggleSettingsButton']" },
|
|
27
|
+
"then": [
|
|
28
|
+
{ "click": "[class^='cookieContainer'] [class*='toggleSettingsButton']" },
|
|
29
|
+
{ "waitForVisible": "[class^='cookieContainer'] div[class^='settings'] button" },
|
|
30
|
+
{
|
|
31
|
+
"click": "[class^='cookieContainer'] div[class^='settings'] button[class*='active']:not([disabled])",
|
|
32
|
+
"all": true,
|
|
33
|
+
"optional": true
|
|
34
|
+
},
|
|
35
|
+
{ "waitForThenClick": "[class^='cookieContainer'] [class*='acceptAndCloseButton']" }
|
|
36
|
+
],
|
|
37
|
+
"else": [
|
|
38
|
+
{
|
|
39
|
+
"waitForThenClick": "[class^='cookieContainer'] [class*='closeButton'], [class^='cookieContainer'] [class*='acceptAndCloseButton']"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adv-gr-jp",
|
|
3
|
+
"vendorUrl": "https://www.adv.gr.jp/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://(\\w+\\.)?adv\\.gr\\.jp/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["#cookie-agreement"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"exists": "#cookie-agreement .agreement-button input"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": "#cookie-agreement"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#cookie-agreement .agreement-button input"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"hide": "#cookie-agreement"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agentii.getsbet.ro",
|
|
3
|
+
"vendorUrl": "https://agentii.getsbet.ro/",
|
|
4
|
+
"comment": "cookieconsent notice that renders after an inactive Cookiebot is already detected, so detect via its script",
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://(\\w+\\.)?agentii\\.getsbet\\.ro/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": [".cc-window[aria-describedby=\"cookieconsent:desc\"]"],
|
|
9
|
+
"detectCmp": [{ "exists": "script[src*=\"/js/cookieconsent.min.js\"]" }],
|
|
10
|
+
"detectPopup": [{ "visible": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]:not(.cc-invisible) .cc-dismiss" }],
|
|
11
|
+
"optIn": [{ "waitForThenClick": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]:not(.cc-invisible) .cc-dismiss" }],
|
|
12
|
+
"optOut": [
|
|
13
|
+
{
|
|
14
|
+
"comment": "clicks while cc-invisible is still set are ignored and the banner fades in again",
|
|
15
|
+
"waitForThenClick": ".cc-type-info[aria-describedby=\"cookieconsent:desc\"]:not(.cc-invisible) .cc-dismiss"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"test": [{ "cookieContains": "cookieconsent_status=dismiss" }]
|
|
19
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "alza-cookies-info",
|
|
3
|
+
"vendorUrl": "https://www.alza.cz/",
|
|
4
|
+
"prehideSelectors": [".cookies-info:has(.js-cookies-info-reject, .js-cookie-reject-all)"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".cookies-info .js-cookies-info-reject, .cookies-info .js-cookie-reject-all"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": ".cookies-info .js-cookies-info-reject, .cookies-info .js-cookie-reject-all"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": ".cookies-info .js-cookies-info-accept, .cookies-info .js-cookie-accept-all",
|
|
18
|
+
"retry": 10,
|
|
19
|
+
"retryInterval": 1000
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optOut": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": ".cookies-info .js-cookies-info-reject, .cookies-info .js-cookie-reject-all",
|
|
25
|
+
"retry": 10,
|
|
26
|
+
"retryInterval": 1000
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"test": [
|
|
30
|
+
{
|
|
31
|
+
"waitForVisible": ".cookies-info .js-cookies-info-reject, .cookies-info .js-cookie-reject-all",
|
|
32
|
+
"timeout": 2000,
|
|
33
|
+
"check": "none"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"if": {
|
|
33
|
-
"exists": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-accept\"], .ambar-btn-decline)"
|
|
33
|
+
"exists": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-accept\"]:not(.ambar-upgraded-btn-allow), .ambar-btn-decline, a[\\@click*=\"cookiebar-action-accept\"])"
|
|
34
34
|
},
|
|
35
35
|
"then": [
|
|
36
36
|
{
|
|
37
|
-
"waitForThenClick": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-accept\"], .ambar-btn-decline)"
|
|
37
|
+
"waitForThenClick": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-accept\"]:not(.ambar-upgraded-btn-allow), .ambar-btn-decline, a[\\@click*=\"cookiebar-action-accept\"])"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"waitForVisible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]",
|
|
@@ -48,66 +48,89 @@
|
|
|
48
48
|
},
|
|
49
49
|
"then": [
|
|
50
50
|
{
|
|
51
|
-
"click": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-accept\"], .ambar-btn-decline)"
|
|
51
|
+
"click": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-accept\"]:not(.ambar-upgraded-btn-allow), .ambar-btn-decline, a[\\@click*=\"cookiebar-action-accept\"])"
|
|
52
52
|
}
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
"else": [
|
|
57
|
-
{
|
|
58
|
-
"waitForThenClick": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-settings\"], .ambar-btn-settings)"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"waitForVisible": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])",
|
|
62
|
-
"timeout": 2000,
|
|
63
|
-
"optional": true
|
|
64
|
-
},
|
|
65
57
|
{
|
|
66
58
|
"if": {
|
|
67
|
-
"
|
|
59
|
+
"exists": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] .ambar-upgraded-btn-allow"
|
|
68
60
|
},
|
|
69
|
-
"then": [
|
|
70
|
-
"else": [
|
|
61
|
+
"then": [
|
|
71
62
|
{
|
|
72
|
-
"
|
|
63
|
+
"waitForThenClick": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] .ambar-btn-settings"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"waitForVisible": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] .ambar-upgraded-btn-allow"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"click": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] input.ambar-input-toggle:checked:not([disabled])",
|
|
70
|
+
"all": true,
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"click": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] .ambar-upgraded-btn-allow"
|
|
73
75
|
}
|
|
74
|
-
]
|
|
75
|
-
|
|
76
|
-
{
|
|
77
|
-
"waitForVisible": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"waitForVisible": "[x-ref=\"am-cookie-bar-settings\"] input[type=\"checkbox\"]",
|
|
81
|
-
"timeout": 5000
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"click": "[x-ref=\"am-cookie-bar-settings\"] input[type=\"checkbox\"]:checked:not([disabled])",
|
|
85
|
-
"all": true,
|
|
86
|
-
"optional": true
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"waitForThenClick": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"waitForVisible": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])",
|
|
93
|
-
"check": "none",
|
|
94
|
-
"timeout": 10000,
|
|
95
|
-
"optional": true
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"waitForVisible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]",
|
|
99
|
-
"check": "none",
|
|
100
|
-
"timeout": 1000,
|
|
101
|
-
"optional": true
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"if": {
|
|
105
|
-
"visible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]"
|
|
106
|
-
},
|
|
107
|
-
"then": [
|
|
76
|
+
],
|
|
77
|
+
"else": [
|
|
108
78
|
{
|
|
109
|
-
"
|
|
79
|
+
"waitForThenClick": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-settings\"], .ambar-btn-settings)"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"waitForVisible": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])",
|
|
83
|
+
"timeout": 2000,
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"if": {
|
|
88
|
+
"visible": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])"
|
|
89
|
+
},
|
|
90
|
+
"then": [],
|
|
91
|
+
"else": [
|
|
92
|
+
{
|
|
93
|
+
"click": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is([data-dispatch-action=\"cookiebar-action-settings\"], .ambar-btn-settings)"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"waitForVisible": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"waitForVisible": "[x-ref=\"am-cookie-bar-settings\"] input[type=\"checkbox\"]",
|
|
102
|
+
"timeout": 5000
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"click": "[x-ref=\"am-cookie-bar-settings\"] input[type=\"checkbox\"]:checked:not([disabled])",
|
|
106
|
+
"all": true,
|
|
110
107
|
"optional": true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"waitForThenClick": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"waitForVisible": "[x-ref=\"am-cookie-bar-settings\"] :is([x-ref=\"ambar-settings-done\"], button[\\@click*=\"cookiebar-action-accept\"])",
|
|
114
|
+
"check": "none",
|
|
115
|
+
"timeout": 10000,
|
|
116
|
+
"optional": true
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"waitForVisible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]",
|
|
120
|
+
"check": "none",
|
|
121
|
+
"timeout": 1000,
|
|
122
|
+
"optional": true
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"if": {
|
|
126
|
+
"visible": "#am-cookie-bar > [x-bind^=\"overlay\"], #am-cookie-bar [data-dialog-ref-name=\"am-cookie-bar\"]"
|
|
127
|
+
},
|
|
128
|
+
"then": [
|
|
129
|
+
{
|
|
130
|
+
"click": "#am-cookie-bar [x-ref=\"am-cookie-bar\"] :is(button[\\@click=\"closeCookieBarHandler\"], button[\\@click*=\"close-cookie-bar\"])",
|
|
131
|
+
"optional": true
|
|
132
|
+
}
|
|
133
|
+
]
|
|
111
134
|
}
|
|
112
135
|
]
|
|
113
136
|
}
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"detectPopup": [
|
|
7
7
|
{ "visible": "#sp-cc-wrapper *,[data-action=sp-cc],span[data-action=\"sp-cc\"][data-sp-cc*=\"rejectAllAction\"]", "check": "any" }
|
|
8
8
|
],
|
|
9
|
-
"optIn": [{ "waitForVisible": "#sp-cc-accept" }, { "
|
|
10
|
-
"optOut": [
|
|
9
|
+
"optIn": [{ "waitForVisible": "#sp-cc-accept" }, { "waitForThenClick": "#sp-cc-accept", "retry": 5, "retryInterval": 1000 }],
|
|
10
|
+
"optOut": [
|
|
11
|
+
{ "waitForVisible": "#sp-cc-rejectall-link" },
|
|
12
|
+
{ "waitForThenClick": "#sp-cc-rejectall-link", "retry": 5, "retryInterval": 1000 }
|
|
13
|
+
]
|
|
11
14
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "amgueddfa-cms",
|
|
3
|
+
"prehideSelectors": ["#cookie_bar_container"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": "#cookie_bar_container #cookie_bar_agree_button"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": "#cookie_bar_container"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": "#cookie_bar_agree_button"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#cookie_preferences_link"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"waitForVisible": "#cookie_preferences_dialogue"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"click": "#cookie_preferences input[name=cookie_preference]:checked:not(:disabled)",
|
|
28
|
+
"all": true,
|
|
29
|
+
"optional": true
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"click": "#save_preferences_button"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"test": [
|
|
36
|
+
{
|
|
37
|
+
"wait": 1000
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"cookieContains": "cookie_preferences_analytics=false"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"cookieContains": "cookie_preferences_marketing=false"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "anowave-gtm",
|
|
3
|
+
"vendorUrl": "https://www.anowave.com/marketplace/magento-2-extensions/magento-2-google-tag-manager-enhanced-ecommerce-ua-ga4-tracking/",
|
|
4
|
+
"prehideSelectors": [".ec-gtm-cookie-directive"],
|
|
5
|
+
"detectCmp": [{ "exists": ".ec-gtm-cookie-directive" }],
|
|
6
|
+
"detectPopup": [{ "visible": ".ec-gtm-cookie-directive" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": ".ec-gtm-cookie-directive a.accept-all" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{
|
|
10
|
+
"if": { "exists": ".ec-gtm-cookie-directive a.decline" },
|
|
11
|
+
"then": [{ "click": ".ec-gtm-cookie-directive a.decline" }],
|
|
12
|
+
"else": [
|
|
13
|
+
{ "exists": ".ec-gtm-cookie-directive input[name='cookie[]']" },
|
|
14
|
+
{ "click": ".ec-gtm-cookie-directive input[name='cookie[]']:checked", "all": true, "optional": true },
|
|
15
|
+
{ "click": ".ec-gtm-cookie-directive a.accept" }
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{ "waitForVisible": ".ec-gtm-cookie-directive", "check": "none", "timeout": 5000 }
|
|
19
|
+
],
|
|
20
|
+
"test": [{ "cookieContains": "cookieConsentGranted=" }, { "cookieContains": "cookieConsentMarketingGranted=1", "negated": true }]
|
|
21
|
+
}
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
],
|
|
15
15
|
"optIn": [
|
|
16
16
|
{
|
|
17
|
-
"waitForThenClick": "[data-testid='consent-banner'] button[data-testid='consent-accept']"
|
|
17
|
+
"waitForThenClick": "[data-testid='consent-banner'] button:is([data-testid='consent-accept'], [class*='_acceptButton'])"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"optOut": [
|
|
21
21
|
{
|
|
22
|
-
"waitForThenClick": "[data-testid='consent-banner'] button[data-testid='consent-reject']"
|
|
22
|
+
"waitForThenClick": "[data-testid='consent-banner'] button:is([data-testid='consent-reject'], [class*='_rejectButton'])"
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
25
|
"test": [
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "apteka911-ua",
|
|
3
|
+
"vendorUrl": "https://apteka911.ua/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https?://(www\\.)?apteka911\\.ua/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": [".cookie:has(> .cookie-head > .icon-cookie)"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"exists": ".cookie > .cookie-head > .icon-cookie"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": ".cookie:has(> .cookie-head > .icon-cookie)"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": ".cookie .btn-accent-alt"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"hide": ".cookie:has(> .cookie-head > .icon-cookie)"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "artfund.org",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(\\w+\\.)?artfund\\.org/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": [".cookie-banner"],
|
|
7
|
+
"detectCmp": [{ "exists": ".cookie-banner .cookie-banner__button-column" }],
|
|
8
|
+
"detectPopup": [{ "visible": ".cookie-banner.cookie-banner--visible" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": ".cookie-banner__button-column .form-btn button" }],
|
|
10
|
+
"optOut": [
|
|
11
|
+
{ "waitForThenClick": ".cookie-banner__button-column > div.cursor-pointer" },
|
|
12
|
+
{
|
|
13
|
+
"waitForThenClick": "xpath///div[contains(@class, 'cookie-dialogue')]//footer//button[normalize-space()='Reject cookies']"
|
|
14
|
+
},
|
|
15
|
+
{ "waitForVisible": ".cookie-banner.cookie-banner--visible", "check": "none", "timeout": 2000, "optional": true }
|
|
16
|
+
],
|
|
17
|
+
"test": [{ "cookieContains": "cookieconsent_preferences_v5={%22analytics%22:false%2C%22marketing%22:false}" }]
|
|
18
|
+
}
|