@duckduckgo/autoconsent 16.50.0 → 16.52.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/skills/optimize-button-patterns/SKILL.md +4 -4
- package/.github/workflows/ddg-release.yml +2 -2
- package/AGENTS.md +2 -1
- package/CHANGELOG.md +120 -0
- package/build.sh +2 -0
- package/data/labelled-button-texts.csv +36 -36
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +52 -42
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +52 -42
- 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 +52 -42
- package/dist/autoconsent.esm.js +52 -42
- package/dist/autoconsent.playwright.js +53 -42
- package/dist/autoconsent.standalone.js +53 -43
- package/dist/heuristics.cjs.js +886 -0
- package/dist/heuristics.mjs +847 -0
- package/dist/types/heuristic-classify.d.ts +16 -0
- package/dist/types/heuristics.d.ts +2 -9
- package/dist/types/types.d.ts +3 -5
- package/docs/rule-syntax.md +1 -1
- package/lib/dom-actions.ts +5 -1
- package/lib/heuristic-classify.ts +136 -0
- package/lib/heuristic-patterns.ts +18 -14
- package/lib/heuristics.ts +3 -124
- package/lib/types.ts +3 -5
- package/lib/web.ts +1 -1
- package/package.json +7 -2
- package/playwright/content.ts +5 -0
- package/readme.md +12 -0
- package/rules/autoconsent/abcacupuncture1.json +34 -0
- package/rules/autoconsent/aceodds.json +13 -0
- package/rules/autoconsent/allabout-japan.json +42 -0
- package/rules/autoconsent/avvio.json +22 -0
- package/rules/autoconsent/axeptio.json +5 -2
- package/rules/autoconsent/bdirect-booking-engine.json +33 -0
- package/rules/autoconsent/berelax.com.json +33 -0
- package/rules/autoconsent/bigid.json +59 -0
- package/rules/autoconsent/bluepark.json +31 -0
- package/rules/autoconsent/burpee-com.json +5 -1
- package/rules/autoconsent/bynder.json +33 -0
- package/rules/autoconsent/cinemaplus.json +9 -0
- package/rules/autoconsent/columbia-privacy-notice.json +32 -0
- package/rules/autoconsent/community.screwfix.com.json +23 -0
- package/rules/autoconsent/complianz-notice.json +1 -1
- package/rules/autoconsent/cookieconsent2-legacy.json +44 -0
- package/rules/autoconsent/cookiesjsr.json +27 -0
- package/rules/autoconsent/copaamerica.json +29 -0
- package/rules/autoconsent/cornerstone-brands.json +51 -0
- package/rules/autoconsent/darkounity.com.json +35 -0
- package/rules/autoconsent/duda-cookie-notification.json +41 -0
- package/rules/autoconsent/endocrine.org.json +35 -0
- package/rules/autoconsent/ezoic.json +2 -2
- package/rules/autoconsent/fis-data-exchange.json +13 -0
- package/rules/autoconsent/getproven.json +33 -0
- package/rules/autoconsent/givedirectly.json +36 -0
- package/rules/autoconsent/godaddy-website-builder-cosmetic.json +13 -0
- package/rules/autoconsent/godaddy-website-builder.json +9 -0
- package/rules/autoconsent/guesty.json +31 -0
- package/rules/autoconsent/gundam-base-entry.json +40 -0
- package/rules/autoconsent/hearst-us.json +1 -1
- package/rules/autoconsent/indy-systems.json +26 -0
- package/rules/autoconsent/ing-nl.json +54 -0
- package/rules/autoconsent/iubenda.json +25 -3
- package/rules/autoconsent/la-becanerie.json +13 -0
- package/rules/autoconsent/lta.json +22 -0
- package/rules/autoconsent/lucrin.json +18 -0
- package/rules/autoconsent/makitatools.json +41 -0
- package/rules/autoconsent/milestone-internet.json +32 -0
- package/rules/autoconsent/mizuno-com.json +13 -0
- package/rules/autoconsent/nhm-ac-uk.json +29 -0
- package/rules/autoconsent/npo-ccm.json +42 -0
- package/rules/autoconsent/opalcollection-com.json +12 -0
- package/rules/autoconsent/orw-cookie-banner.json +42 -0
- package/rules/autoconsent/osf-io.json +29 -0
- package/rules/autoconsent/palace-company.json +13 -0
- package/rules/autoconsent/paytronix.json +30 -0
- package/rules/autoconsent/pigu.json +35 -0
- package/rules/autoconsent/pitt-edu.json +12 -0
- package/rules/autoconsent/pizzapilgrims.co.uk.json +49 -0
- package/rules/autoconsent/podimo.json +73 -0
- package/rules/autoconsent/publicmobile.json +16 -0
- package/rules/autoconsent/quantcast.json +85 -34
- package/rules/autoconsent/rakshaos.json +45 -0
- package/rules/autoconsent/rutjes.json +13 -0
- package/rules/autoconsent/saturdaysnyc.json +33 -0
- package/rules/autoconsent/serpstat-com.json +13 -0
- package/rules/autoconsent/shopquarters.json +41 -0
- package/rules/autoconsent/shopware.json +71 -0
- package/rules/autoconsent/simpleview-cookie-banner.json +27 -0
- package/rules/autoconsent/solvhealth-com.json +12 -0
- package/rules/autoconsent/spermidinelife-us.json +29 -0
- package/rules/autoconsent/squarespace-cookie-banner.json +1 -1
- package/rules/autoconsent/squarespace-cookie-notice.json +29 -0
- package/rules/autoconsent/store2000-fr.json +17 -0
- package/rules/autoconsent/tealium.json +10 -4
- package/rules/autoconsent/tempest-cookie-notice.json +9 -0
- package/rules/autoconsent/termsfeed.json +4 -4
- package/rules/autoconsent/therealest.json +42 -0
- package/rules/autoconsent/tineye.json +35 -0
- package/rules/autoconsent/tk-aerztefuehrer.de.json +18 -0
- package/rules/autoconsent/tplink.json +57 -9
- package/rules/autoconsent/trust360.json +29 -0
- package/rules/autoconsent/up-cookie-consent.json +53 -0
- package/rules/autoconsent/uw-madison-cookieconsent.json +10 -0
- package/rules/autoconsent/vowels.json +13 -0
- package/rules/autoconsent/web-rewind.com.json +21 -0
- package/rules/autoconsent/wildling-com.json +29 -0
- package/rules/autoconsent/worldbank.json +30 -0
- package/rules/autoconsent/yuntrack.json +50 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/scripts/benchmark-button-classification.ts +18 -3
- package/scripts/button-text-benchmark.ts +5 -5
- package/tests/abcacupuncture1.spec.ts +3 -0
- package/tests/aceodds.spec.ts +3 -0
- package/tests/allabout-japan.spec.ts +3 -0
- package/tests/avvio.spec.ts +8 -0
- package/tests/axeptio.spec.ts +3 -0
- package/tests/bdirect-booking-engine.spec.ts +9 -0
- package/tests/berelax.com.spec.ts +5 -0
- package/tests/bigid.spec.ts +8 -0
- package/tests/bluepark.spec.ts +8 -0
- package/tests/burpee-com.spec.ts +2 -0
- package/tests/bynder.spec.ts +3 -0
- package/tests/cinemaplus.spec.ts +8 -0
- package/tests/columbia-privacy-notice.spec.ts +8 -0
- package/tests/community.screwfix.com.spec.ts +5 -0
- package/tests/complianz-notice.spec.ts +7 -3
- package/tests/cookieconsent2-legacy.spec.ts +8 -0
- package/tests/cookiesjsr.spec.ts +9 -0
- package/tests/copaamerica.spec.ts +3 -0
- package/tests/cornerstone-brands.spec.ts +8 -0
- package/tests/darkounity.com.spec.ts +6 -0
- package/tests/duda-cookie-notification.spec.ts +8 -0
- package/tests/endocrine.org.spec.ts +3 -0
- package/tests/ezoic.spec.ts +1 -1
- package/tests/fis-data-exchange.spec.ts +9 -0
- package/tests/getproven.spec.ts +5 -0
- package/tests/givedirectly.spec.ts +3 -0
- package/tests/godaddy-website-builder-cosmetic.spec.ts +7 -0
- package/tests/godaddy-website-builder.spec.ts +8 -0
- package/tests/guesty.spec.ts +7 -0
- package/tests/gundam-base-entry.spec.ts +3 -0
- package/tests/hearst-us.spec.ts +1 -0
- package/tests/indy-systems.spec.ts +8 -0
- package/tests/ing-nl.spec.ts +6 -0
- package/tests/iubenda.spec.ts +5 -0
- package/tests/la-becanerie.spec.ts +3 -0
- package/tests/lta.spec.ts +7 -0
- package/tests/lucrin.spec.ts +3 -0
- package/tests/makitatools.spec.ts +5 -0
- package/tests/milestone-internet.spec.ts +8 -0
- package/tests/mizuno-com.spec.ts +7 -0
- package/tests/nhm-ac-uk.spec.ts +3 -0
- package/tests/npo-ccm.spec.ts +17 -0
- package/tests/opalcollection-com.spec.ts +3 -0
- package/tests/orw-cookie-banner.spec.ts +5 -0
- package/tests/osf-io.spec.ts +3 -0
- package/tests/palace-company.spec.ts +8 -0
- package/tests/paytronix.spec.ts +7 -0
- package/tests/pigu.spec.ts +3 -0
- package/tests/pitt-edu.spec.ts +3 -0
- package/tests/pizzapilgrims.co.uk.spec.ts +3 -0
- package/tests/podimo.spec.ts +3 -0
- package/tests/publicmobile.spec.ts +3 -0
- package/tests/quantcast.spec.ts +15 -7
- package/tests/rakshaos.spec.ts +9 -0
- package/tests/rutjes.spec.ts +3 -0
- package/tests/saturdaysnyc.spec.ts +3 -0
- package/tests/serpstat-com.spec.ts +3 -0
- package/tests/shopquarters.spec.ts +5 -0
- package/tests/shopware.spec.ts +8 -0
- package/tests/simpleview-cookie-banner.spec.ts +10 -0
- package/tests/solvhealth-com.spec.ts +10 -0
- package/tests/spermidinelife-us.spec.ts +3 -0
- package/tests/squarespace-cookie-notice.spec.ts +9 -0
- package/tests/store2000-fr.spec.ts +5 -0
- package/tests/tealium.spec.ts +3 -0
- package/tests/tempest-cookie-notice.spec.ts +7 -0
- package/tests/termsfeed.spec.ts +4 -0
- package/tests/therealest.spec.ts +6 -0
- package/tests/tineye.spec.ts +3 -0
- package/tests/tk-aerztefuehrer.de.spec.ts +6 -0
- package/tests/tplink.spec.ts +11 -1
- package/tests/trust360.spec.ts +8 -0
- package/tests/up-cookie-consent.spec.ts +9 -0
- package/tests/uw-madison-cookieconsent.spec.ts +7 -0
- package/tests/vowels.spec.ts +3 -0
- package/tests/web-rewind.com.spec.ts +5 -0
- package/tests/wildling-com.spec.ts +3 -0
- package/tests/worldbank.spec.ts +7 -0
- package/tests/yuntrack.spec.ts +6 -0
- package/tests-wtr/dom-actions/dom-actions.click.ts +18 -0
- package/tests-wtr/heuristics/button-classification-accuracy.test.ts +9 -5
- package/tests-wtr/heuristics/get-potential-popups.test.ts +28 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +2 -6
- package/tsconfig.build.json +1 -1
- package/tsconfig.heuristics.json +10 -0
- package/Dockerfile +0 -9
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "paytronix",
|
|
3
|
+
"vendorUrl": "https://www.paytronix.com/",
|
|
4
|
+
"prehideSelectors": ["#overlay > .gdprBackgound"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": "#overlay > .gdprBackgound > .gdprTitle"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": "#overlay > .gdprBackgound"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": "#overlay > .gdprBackgound button[onclick]"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": "#overlay > .gdprBackgound > span[onclick]"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"test": [
|
|
26
|
+
{
|
|
27
|
+
"cookieContains": "pxCookie=Y"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pigu",
|
|
3
|
+
"vendorUrl": "https://pigugroup.eu/",
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": "#consent_block[widget=\"CookieTracker\"]"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": "#consent_block [widget-attachpoint=\"basicAgree\"]"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": "#consent_block [widget-attachpoint=\"agree\"]",
|
|
17
|
+
"retry": 10,
|
|
18
|
+
"retryInterval": 500
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"optOut": [
|
|
22
|
+
{
|
|
23
|
+
"waitForThenClick": "#consent_block [widget-attachpoint=\"basicAgree\"]",
|
|
24
|
+
"retry": 10,
|
|
25
|
+
"retryInterval": 500
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"test": [
|
|
29
|
+
{
|
|
30
|
+
"waitForVisible": "#consent_block [widget-attachpoint=\"basicAgree\"]",
|
|
31
|
+
"check": "none",
|
|
32
|
+
"timeout": 2000
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pitt-edu",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(\\w+\\.)?pitt\\.edu/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": true,
|
|
7
|
+
"prehideSelectors": ["#cookieMessage[data-cookie-boundary]"],
|
|
8
|
+
"detectCmp": [{ "exists": "#cookieMessage[data-cookie-boundary]" }],
|
|
9
|
+
"detectPopup": [{ "visible": "#cookieMessage[data-cookie-boundary]" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": "#cookieMessage [data-cookie-acceptance]" }],
|
|
11
|
+
"optOut": [{ "hide": "#cookieMessage[data-cookie-boundary]" }]
|
|
12
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pizzapilgrims.co.uk",
|
|
3
|
+
"vendorUrl": "https://www.pizzapilgrims.co.uk/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"main": true,
|
|
6
|
+
"frame": false,
|
|
7
|
+
"urlPattern": "^https?://(www\\.)?pizzapilgrims\\.co\\.uk/"
|
|
8
|
+
},
|
|
9
|
+
"prehideSelectors": [".cookie-bg"],
|
|
10
|
+
"detectCmp": [
|
|
11
|
+
{
|
|
12
|
+
"exists": ".cookie-bg .cookie-inner .cookie-btn--accept"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"detectPopup": [
|
|
16
|
+
{
|
|
17
|
+
"visible": ".cookie-bg .cookie-inner"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optIn": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": ".cookie-bg .cookie-btn-wrapper .cookie-btn--accept"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"optOut": [
|
|
26
|
+
{
|
|
27
|
+
"waitForThenClick": ".cookie-bg .personalise-btn"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"waitForVisible": ".cookie-bg form .cookie-list"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"click": ".cookie-bg form .cookie-item input[type=checkbox]:checked:not([disabled])",
|
|
34
|
+
"all": true,
|
|
35
|
+
"optional": true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"click": ".cookie-bg form button[type=submit]"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"test": [
|
|
42
|
+
{
|
|
43
|
+
"cookieContains": "gdpr-ga=false"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"cookieContains": "gdpr-fbp=false"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "podimo",
|
|
3
|
+
"vendorUrl": "https://podimo.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?podimo\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": [],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "[data-testid=cookie-consent-bar-desktop], [data-testid=cookie-consent-bar-mobile]"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "[data-testid=cookie-consent-bar-desktop], [data-testid=cookie-consent-bar-mobile]",
|
|
16
|
+
"check": "any"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"if": {
|
|
22
|
+
"visible": "[data-testid=accept-all-cookies-button-desktop]"
|
|
23
|
+
},
|
|
24
|
+
"then": [
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": "[data-testid=accept-all-cookies-button-desktop]"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"else": [
|
|
30
|
+
{
|
|
31
|
+
"waitForThenClick": "[data-testid=accept-all-cookies-button-mobile]"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"optOut": [
|
|
37
|
+
{
|
|
38
|
+
"if": {
|
|
39
|
+
"visible": "[data-testid=manage-cookies-button-desktop]"
|
|
40
|
+
},
|
|
41
|
+
"then": [
|
|
42
|
+
{
|
|
43
|
+
"waitForThenClick": "[data-testid=manage-cookies-button-desktop]"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"else": [
|
|
47
|
+
{
|
|
48
|
+
"waitForThenClick": "[data-testid=manage-cookies-button-mobile]"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"waitForVisible": "[data-testid=cookie-consent-modal]"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"click": "[data-testid=cookie-consent-modal] input[type=checkbox]:checked",
|
|
57
|
+
"all": true,
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"waitForThenClick": "[data-testid=cookie-consent-save-button]"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"test": [
|
|
65
|
+
{
|
|
66
|
+
"cookieContains": "pmo_c_acc=true"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"cookieContains": "pmo_c_mark=true",
|
|
70
|
+
"negated": true
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "publicmobile",
|
|
3
|
+
"runContext": { "urlPattern": "^https?://(www\\.)?publicmobile\\.ca/" },
|
|
4
|
+
"prehideSelectors": ["[data-testid=\"cookie-consent-sticky-footer\"]"],
|
|
5
|
+
"detectCmp": [{ "exists": "[data-testid=\"cookie-consent-sticky-footer\"]" }],
|
|
6
|
+
"detectPopup": [{ "visible": "[data-testid=\"cookie-consent-sticky-footer\"][aria-hidden=\"false\"]" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "[data-testid=\"cookie-consent-sticky-footer\"] button[aria-label]:nth-child(2)" }],
|
|
8
|
+
"optOut": [
|
|
9
|
+
{ "waitForThenClick": "[data-testid=\"cookie-consent-sticky-footer\"] button[aria-label]:first-child" },
|
|
10
|
+
{ "waitForVisible": "[data-testid=\"_cookie_modal_test\"]" },
|
|
11
|
+
{ "click": "[data-testid=\"_cookie_modal_test\"] label:has(input[type=\"checkbox\"]:checked)", "all": true, "optional": true },
|
|
12
|
+
{ "waitForThenClick": "[data-testid=\"_cookie_modal_test\"] button[aria-label=\"button-pmui\"]" },
|
|
13
|
+
{ "waitForVisible": "[data-testid=\"cookie-consent-sticky-footer\"][aria-hidden=\"false\"]", "check": "none", "timeout": 3000 }
|
|
14
|
+
],
|
|
15
|
+
"test": [{ "cookieContains": "\"analytics_storage\":\"denied\"" }]
|
|
16
|
+
}
|
|
@@ -8,71 +8,122 @@
|
|
|
8
8
|
],
|
|
9
9
|
"detectPopup": [
|
|
10
10
|
{
|
|
11
|
-
"
|
|
11
|
+
"comment": "#qc-cmp2-ui is the GDPR dialog, #qc-cmp2-usp the US 'Do Not Process My Personal Information' (USP/MSPA) dialog",
|
|
12
|
+
"visible": "#qc-cmp2-ui,#qc-cmp2-usp"
|
|
12
13
|
}
|
|
13
14
|
],
|
|
14
15
|
"optOut": [
|
|
15
16
|
{
|
|
17
|
+
"comment": "US dialog: opt out with the toggles, then confirm",
|
|
16
18
|
"if": {
|
|
17
|
-
"exists": "#
|
|
19
|
+
"exists": "#qc-cmp2-usp"
|
|
18
20
|
},
|
|
19
21
|
"then": [
|
|
20
22
|
{
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
"waitFor": "#qc-cmp2-usp .qc-cmp2-toggle-switch",
|
|
24
|
+
"timeout": 2000,
|
|
25
|
+
"optional": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"comment": "each toggle reads 'I want to opt-out of ...', so switching them on is the opt-out",
|
|
29
|
+
"click": "#qc-cmp2-usp .qc-cmp2-toggle-switch > button[aria-checked=\"false\"]",
|
|
30
|
+
"all": true,
|
|
31
|
+
"optional": true
|
|
32
|
+
},
|
|
25
33
|
{
|
|
26
|
-
"
|
|
34
|
+
"waitForThenClick": "#qc-cmp2-usp .qc-usp-ui-form-content button[mode=\"primary\"]",
|
|
27
35
|
"timeout": 2000
|
|
28
36
|
},
|
|
29
37
|
{
|
|
38
|
+
"comment": "confirming opens a success modal that stays until it's closed",
|
|
39
|
+
"waitForThenClick": "#qc-cmp2-mspa-success-modal button",
|
|
40
|
+
"timeout": 2000,
|
|
41
|
+
"optional": true
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"else": [
|
|
45
|
+
{
|
|
46
|
+
"comment": "match the reject button even while it's disabled: falling through to the branch below would click it too early",
|
|
30
47
|
"if": {
|
|
31
|
-
"exists": "
|
|
48
|
+
"exists": "#disagree-btn"
|
|
32
49
|
},
|
|
33
50
|
"then": [
|
|
34
51
|
{
|
|
35
|
-
"
|
|
52
|
+
"comment": "the reject button renders disabled with a loader, and clicks on it are dropped until it's enabled",
|
|
53
|
+
"waitForThenClick": "#disagree-btn:not([disabled])",
|
|
54
|
+
"timeout": 5000
|
|
36
55
|
}
|
|
37
56
|
],
|
|
38
57
|
"else": [
|
|
39
58
|
{
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
"waitForVisible": "#qc-cmp2-ui .qc-cmp2-consent-info"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"click": ".qc-cmp2-toggle-switch > button[aria-checked=\"true\"]",
|
|
47
|
-
"all": true,
|
|
48
|
-
"optional": true
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"click": [
|
|
52
|
-
".qc-cmp2-main",
|
|
53
|
-
"xpath///button[contains(., 'REJECT ALL') or contains(., 'ALLE VERWERPEN') or contains(., 'ΑΠΟΡΡΙΠΤΩ ΤΑ ΠΑΝΤΑ') or contains(., 'RESPINGERE TOTALĂ') or contains(., 'ALLE ABLEHNEN') or contains(., 'ODRZUCENIE') or contains(., 'BLOQUEAR TODO') or contains(., 'REJEITAR TODOS') or contains(., 'RIFIUTA TUTTO') or contains(., 'TOUT REFUSER') or contains(., 'ОТКЛОНИТЬ ВСЕХ')]"
|
|
54
|
-
],
|
|
55
|
-
"optional": true
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"wait": 500
|
|
59
|
+
"waitFor": ".qc-cmp2-summary-buttons button[mode=\"secondary\"]",
|
|
60
|
+
"timeout": 2000
|
|
59
61
|
},
|
|
60
62
|
{
|
|
63
|
+
"comment": "without #disagree-btn, a secondary button in second place rejects; otherwise reject from the 'more options' screen",
|
|
61
64
|
"if": {
|
|
62
|
-
"exists": ".qc-cmp2-buttons
|
|
65
|
+
"exists": ".qc-cmp2-summary-buttons button[mode=\"secondary\"]:nth-of-type(2)"
|
|
63
66
|
},
|
|
64
67
|
"then": [
|
|
65
68
|
{
|
|
66
|
-
"click": ".qc-cmp2-buttons
|
|
69
|
+
"click": ".qc-cmp2-summary-buttons button[mode=\"secondary\"]:nth-of-type(2)"
|
|
67
70
|
}
|
|
68
71
|
],
|
|
69
72
|
"else": [
|
|
70
73
|
{
|
|
71
|
-
"
|
|
74
|
+
"click": ".qc-cmp2-summary-buttons button[mode=\"secondary\"]:nth-of-type(1)"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"waitForVisible": "#qc-cmp2-ui .qc-cmp2-consent-info"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"comment": "turn off the purposes that are switched on by default",
|
|
81
|
+
"click": ".qc-cmp2-toggle-switch > button[aria-checked=\"true\"]",
|
|
82
|
+
"all": true,
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"comment": "'Reject all' has a localized label",
|
|
87
|
+
"click": [
|
|
72
88
|
".qc-cmp2-main",
|
|
73
|
-
"xpath///button[contains(.,'
|
|
89
|
+
"xpath///button[contains(., 'REJECT ALL') or contains(., 'ALLE VERWERPEN') or contains(., 'ΑΠΟΡΡΙΠΤΩ ΤΑ ΠΑΝΤΑ') or contains(., 'RESPINGERE TOTALĂ') or contains(., 'ALLE ABLEHNEN') or contains(., 'ODRZUCENIE') or contains(., 'BLOQUEAR TODO') or contains(., 'REJEITAR TODOS') or contains(., 'RIFIUTA TUTTO') or contains(., 'TOUT REFUSER') or contains(., 'ОТКЛОНИТЬ ВСЕХ')]"
|
|
74
90
|
],
|
|
75
|
-
"
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"comment": "'Reject all' can save and close the dialog on its own; give it up to 1s to close before the visibility check",
|
|
95
|
+
"waitForVisible": "#qc-cmp2-ui",
|
|
96
|
+
"check": "none",
|
|
97
|
+
"timeout": 1000,
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"comment": "only save if 'Reject all' left the dialog open",
|
|
102
|
+
"if": {
|
|
103
|
+
"visible": "#qc-cmp2-ui"
|
|
104
|
+
},
|
|
105
|
+
"then": [
|
|
106
|
+
{
|
|
107
|
+
"comment": "'Save & Exit' is the primary button in the desktop layout; otherwise match its localized label",
|
|
108
|
+
"if": {
|
|
109
|
+
"exists": ".qc-cmp2-buttons-desktop > button[mode=primary]"
|
|
110
|
+
},
|
|
111
|
+
"then": [
|
|
112
|
+
{
|
|
113
|
+
"click": ".qc-cmp2-buttons-desktop > button[mode=primary]"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"else": [
|
|
117
|
+
{
|
|
118
|
+
"waitForThenClick": [
|
|
119
|
+
".qc-cmp2-main",
|
|
120
|
+
"xpath///button[contains(.,'SAVE & EXIT') or contains(.,'SALVA ED ESCI') or contains(.,'GUARDAR Y SALIR') or contains(.,'SPEICHERN & VERLASSEN')"
|
|
121
|
+
],
|
|
122
|
+
"timeout": 5000
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
76
127
|
}
|
|
77
128
|
]
|
|
78
129
|
}
|
|
@@ -83,7 +134,7 @@
|
|
|
83
134
|
],
|
|
84
135
|
"optIn": [
|
|
85
136
|
{
|
|
86
|
-
"click": ".qc-cmp2-summary-buttons
|
|
137
|
+
"click": ".qc-cmp2-summary-buttons button[mode=\"primary\"]"
|
|
87
138
|
}
|
|
88
139
|
]
|
|
89
140
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rakshaos",
|
|
3
|
+
"cosmetic": false,
|
|
4
|
+
"minimumRuleStepVersion": 2,
|
|
5
|
+
"prehideSelectors": ["#raksha-consent-banner", "#raksha-consent-overlay"],
|
|
6
|
+
"detectCmp": [
|
|
7
|
+
{
|
|
8
|
+
"exists": "#raksha-consent-banner"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"detectPopup": [
|
|
12
|
+
{
|
|
13
|
+
"visible": "#raksha-consent-banner"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"optIn": [
|
|
17
|
+
{
|
|
18
|
+
"waitForThenClick": "#raksha-accept"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"optOut": [
|
|
22
|
+
{
|
|
23
|
+
"if": {
|
|
24
|
+
"exists": "#raksha-decline"
|
|
25
|
+
},
|
|
26
|
+
"then": [
|
|
27
|
+
{
|
|
28
|
+
"waitForThenClick": "#raksha-decline"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"else": [
|
|
32
|
+
{
|
|
33
|
+
"waitForThenClick": "#raksha-manage"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"waitForThenClick": "#raksha-btn-reject"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"addStyle": "display: none !important",
|
|
40
|
+
"selector": "#raksha-consent-banner"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rutjes",
|
|
3
|
+
"vendorUrl": "https://www.rutjespaardenboxen.nl/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?rutjes(paardenboxen\\.nl|pferdeboxen\\.de)/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#cookiebanner"],
|
|
8
|
+
"detectCmp": [{ "exists": "script[src*='consent.cookiebot.com/uc.js']" }],
|
|
9
|
+
"detectPopup": [{ "visible": "#cookiebanner #DeclineAll" }],
|
|
10
|
+
"optIn": [{ "waitForThenClick": "#cookiebanner #AcceptAll" }],
|
|
11
|
+
"optOut": [{ "waitForThenClick": "#cookiebanner #DeclineAll" }],
|
|
12
|
+
"test": [{ "wait": 500 }, { "cookieContains": "statistics:false%2Cmarketing:false" }]
|
|
13
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "saturdaysnyc",
|
|
3
|
+
"vendorUrl": "https://www.saturdaysnyc.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?saturdaysnyc\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#popup-notice"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "#popup-notice .popup__close"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "#popup-notice"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": "#popup-notice .popup__actions a"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": "#popup-notice .popup__close"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"test": [
|
|
29
|
+
{
|
|
30
|
+
"cookieContains": "saturdaysnyc-notice=1"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "serpstat-com",
|
|
3
|
+
"vendorUrl": "https://serpstat.com/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"urlPattern": "^https://(\\w+\\.)?serpstat\\.com/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": [".cookie-consent[data-cookieconsent], .gdpr-tab"],
|
|
9
|
+
"detectCmp": [{ "exists": ".cookie-consent[data-cookieconsent], .gdpr-tab #gdpr_tab_content" }],
|
|
10
|
+
"detectPopup": [{ "visible": ".cookie-consent[data-cookieconsent], .gdpr-tab #gdpr_tab_content" }],
|
|
11
|
+
"optIn": [{ "waitForThenClick": "button[data-acceptcookies], #gdpr_tab_content .gdpr_form button[type=submit]" }],
|
|
12
|
+
"optOut": [{ "hide": ".cookie-consent[data-cookieconsent], .gdpr-tab" }]
|
|
13
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "shopquarters",
|
|
3
|
+
"cosmetic": true,
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?shopquarters\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": ["#shopify-pc__banner"],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "aside[x-data=\"cookieConsent\"]"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "#shopify-pc__banner, aside[x-data=\"cookieConsent\"] > div.opacity-100",
|
|
16
|
+
"check": "any"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#shopify-pc__banner__btn-accept",
|
|
22
|
+
"timeout": 2000,
|
|
23
|
+
"optional": true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": "aside[x-data=\"cookieConsent\"] button[title=\"Accept\"]"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"optOut": [
|
|
30
|
+
{
|
|
31
|
+
"comment": "theme banner only offers Accept",
|
|
32
|
+
"hide": "aside[x-data=\"cookieConsent\"]"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"comment": "Shopify banner is shown only in some regions, together with the theme banner",
|
|
36
|
+
"waitForThenClick": "#shopify-pc__banner__btn-decline",
|
|
37
|
+
"timeout": 2000,
|
|
38
|
+
"optional": true
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "shopware",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.shopware.com/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": [".cookie-permission-container[data-cookie-permission]"],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": ".cookie-permission-container[data-cookie-permission] .js-cookie-configuration-button"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"detectPopup": [
|
|
13
|
+
{
|
|
14
|
+
"visible": ".cookie-permission-container[data-cookie-permission]"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"optIn": [
|
|
18
|
+
{
|
|
19
|
+
"if": {
|
|
20
|
+
"exists": ".cookie-permission-container .js-cookie-accept-all-button"
|
|
21
|
+
},
|
|
22
|
+
"then": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": ".cookie-permission-container .js-cookie-accept-all-button button"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"else": [
|
|
28
|
+
{
|
|
29
|
+
"waitForThenClick": ".cookie-permission-container .js-cookie-configuration-button button"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"waitForThenClick": ".js-offcanvas-cookie-accept-all"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"optOut": [
|
|
38
|
+
{
|
|
39
|
+
"if": {
|
|
40
|
+
"exists": ".cookie-permission-container .js-cookie-permission-button"
|
|
41
|
+
},
|
|
42
|
+
"then": [
|
|
43
|
+
{
|
|
44
|
+
"waitForThenClick": ".cookie-permission-container .js-cookie-permission-button button"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"else": [
|
|
48
|
+
{
|
|
49
|
+
"waitForThenClick": ".cookie-permission-container .js-cookie-configuration-button button"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"waitForThenClick": ".js-offcanvas-cookie-submit"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"test": [
|
|
58
|
+
{
|
|
59
|
+
"waitForVisible": ".cookie-permission-container[data-cookie-permission]",
|
|
60
|
+
"timeout": 2000,
|
|
61
|
+
"check": "none"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"wait": 500,
|
|
65
|
+
"comment": "consent cookie is written asynchronously after saving"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"cookieContains": "cookie-preference=1"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "simpleview-cookie-banner",
|
|
3
|
+
"vendorUrl": "https://www.simpleviewinc.com/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"prehideSelectors": [".contentRender_name_plugins_common_cookie_banner", ".contentRender_name_plugins_common_gdpr_banner"],
|
|
6
|
+
"detectCmp": [
|
|
7
|
+
{
|
|
8
|
+
"exists": ".contentRender_name_plugins_common_cookie_banner [data-sv-close-banner], .contentRender_name_plugins_common_gdpr_banner [data-sv-close-banner]"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"detectPopup": [
|
|
12
|
+
{
|
|
13
|
+
"visible": ".contentRender_name_plugins_common_cookie_banner > :has([data-sv-close-banner]), .contentRender_name_plugins_common_gdpr_banner > :has([data-sv-close-banner])",
|
|
14
|
+
"check": "any"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"optIn": [
|
|
18
|
+
{
|
|
19
|
+
"waitForThenClick": ".contentRender_name_plugins_common_cookie_banner [data-sv-close-banner], .contentRender_name_plugins_common_gdpr_banner [data-sv-close-banner]"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optOut": [
|
|
23
|
+
{
|
|
24
|
+
"hide": ".contentRender_name_plugins_common_cookie_banner, .contentRender_name_plugins_common_gdpr_banner"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "solvhealth.com",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https://(www\\.)?solvhealth\\.com/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#cookiesModal"],
|
|
7
|
+
"detectCmp": [{ "exists": "#cookiesModal #cookiesModalCloseBtn" }],
|
|
8
|
+
"detectPopup": [{ "visible": "#cookiesModal" }],
|
|
9
|
+
"optIn": [{ "waitForThenClick": "#cookiesModalCloseBtn" }],
|
|
10
|
+
"optOut": [{ "waitForThenClick": "#cookiesModalCloseBtn" }, { "waitForVisible": "#cookiesModal", "check": "none" }],
|
|
11
|
+
"test": [{ "visible": "#cookiesModal", "check": "none" }]
|
|
12
|
+
}
|