@duckduckgo/autoconsent 16.53.0 → 16.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/data/coverage.json +3302 -2383
- package/dist/addon-firefox/compact-rules.json +1 -1
- 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/manifest.json +1 -1
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.standalone.js +1 -1
- package/package.json +1 -1
- package/rules/autoconsent/admetricspro.json +53 -0
- package/rules/autoconsent/bigid.json +29 -13
- package/rules/autoconsent/bnes-cc.json +27 -0
- package/rules/autoconsent/c-banner-allow-cookies.json +17 -0
- package/rules/autoconsent/costco-travel.json +44 -0
- package/rules/autoconsent/eastlink.json +66 -0
- package/rules/autoconsent/eset.json +57 -0
- package/rules/autoconsent/figma.json +37 -0
- package/rules/autoconsent/gla.ac.uk.json +45 -0
- package/rules/autoconsent/klaxit-cookie-consent.json +9 -0
- package/rules/autoconsent/kwik-fit.json +16 -0
- package/rules/autoconsent/malaysiaairlines.com.json +42 -0
- package/rules/autoconsent/meridiancu.json +15 -0
- package/rules/autoconsent/nestpensions.json +14 -0
- package/rules/autoconsent/nhs-jobs.json +11 -0
- package/rules/autoconsent/occ-gdpr.json +17 -0
- package/rules/autoconsent/piwik-pro.json +83 -0
- package/rules/autoconsent/savills.json +44 -0
- package/rules/autoconsent/scottish-government-design-system.json +14 -0
- package/rules/autoconsent/smallpdf.json +44 -0
- package/rules/autoconsent/somerset-council.json +16 -0
- package/rules/autoconsent/stepstone-ccm.json +19 -0
- package/rules/autoconsent/teacherspensions.co.uk.json +46 -0
- package/rules/autoconsent/thenude.json +108 -0
- package/rules/autoconsent/tna-cookie-banner.json +43 -0
- package/rules/autoconsent/toyota.json +14 -0
- package/rules/autoconsent/tti-cookie-popup.json +72 -0
- package/rules/autoconsent/u-cookie-consent.json +9 -0
- package/rules/autoconsent/what3words.json +53 -0
- package/rules/autoconsent/whitepages-gpc-banner.json +14 -0
- package/rules/autoconsent/wp-cookie-notice.json +1 -1
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/admetricspro.spec.ts +21 -0
- package/tests/bigid.spec.ts +6 -0
- package/tests/bnes-cc.spec.ts +3 -0
- package/tests/c-banner-allow-cookies.spec.ts +3 -0
- package/tests/costco-travel.spec.ts +5 -0
- package/tests/eastlink.spec.ts +3 -0
- package/tests/eset.spec.ts +9 -0
- package/tests/figma.spec.ts +5 -0
- package/tests/gla.ac.uk.spec.ts +6 -0
- package/tests/klaxit-cookie-consent.spec.ts +7 -0
- package/tests/kwik-fit.spec.ts +3 -0
- package/tests/malaysiaairlines.com.spec.ts +3 -0
- package/tests/meridiancu.spec.ts +3 -0
- package/tests/nestpensions.spec.ts +3 -0
- package/tests/nhs-jobs.spec.ts +5 -0
- package/tests/occ-gdpr.spec.ts +3 -0
- package/tests/piwik-pro.spec.ts +10 -0
- package/tests/savills.spec.ts +3 -0
- package/tests/scottish-government-design-system.spec.ts +8 -0
- package/tests/smallpdf.spec.ts +5 -0
- package/tests/somerset-council.spec.ts +8 -0
- package/tests/stepstone-ccm.spec.ts +8 -0
- package/tests/teacherspensions.co.uk.spec.ts +3 -0
- package/tests/thenude.spec.ts +3 -0
- package/tests/tna-cookie-banner.spec.ts +8 -0
- package/tests/tti-cookie-popup.spec.ts +8 -0
- package/tests/u-cookie-consent.spec.ts +9 -0
- package/tests/what3words.spec.ts +3 -0
- package/tests/whitepages-gpc-banner.spec.ts +4 -0
- package/tests/wp-cookie-notice.spec.ts +4 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "savills",
|
|
3
|
+
"vendorUrl": "https://www.savills.com/",
|
|
4
|
+
"prehideSelectors": [".sv-cookie-management__banner"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".sv-cookie-management__banner"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": ".sv-cookie-management__banner.sv--visible"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": ".sv-cookie-management__banner .sv-button"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": ".sv-cookie-management__banner .sv-manage-cookies"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"waitForVisible": ".sv-cookie-management__modal--visible"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"if": { "exists": "#functional-cookies:checked" },
|
|
29
|
+
"then": [{ "click": "label[for='functional-cookies']" }]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"if": { "exists": "#tracking-cookies:checked" },
|
|
33
|
+
"then": [{ "click": "label[for='tracking-cookies']" }]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"click": ".sv-cookie-management__modal--visible .sv-save-close"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"test": [
|
|
40
|
+
{
|
|
41
|
+
"cookieContains": "\"tracking\":false"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "scottish-government-design-system",
|
|
3
|
+
"vendorUrl": "https://designsystem.gov.scot/",
|
|
4
|
+
"prehideSelectors": ["[data-module=\"ds-cookie-notification\"]"],
|
|
5
|
+
"detectCmp": [{ "exists": "[data-module=\"ds-cookie-notification\"] .js-accept-essential-cookies" }],
|
|
6
|
+
"detectPopup": [{ "visible": "[data-module=\"ds-cookie-notification\"] .js-accept-essential-cookies" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "[data-module=\"ds-cookie-notification\"] .js-accept-all-cookies" }],
|
|
8
|
+
"optOut": [{ "waitForThenClick": "[data-module=\"ds-cookie-notification\"] .js-accept-essential-cookies" }],
|
|
9
|
+
"test": [
|
|
10
|
+
{
|
|
11
|
+
"cookieContains": "cookiePermissions=eyJuZWNlc3NhcnkiOnRydWUsInByZWZlcmVuY2VzIjpmYWxzZSwic3RhdGlzdGljcyI6ZmFsc2UsImNhbXBhaWducyI6ZmFsc2UsIm1hcmtldGluZyI6ZmFsc2V9"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "smallpdf",
|
|
3
|
+
"vendorUrl": "https://smallpdf.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(www\\.)?smallpdf\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"prehideSelectors": [],
|
|
8
|
+
"detectCmp": [
|
|
9
|
+
{
|
|
10
|
+
"exists": "#app > div:has(> div:last-child > button:first-child + button:last-child)"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"detectPopup": [
|
|
14
|
+
{
|
|
15
|
+
"visible": "#app > div:has(> div:last-child > button:first-child + button:last-child)"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": "#app > div:not(:has(input[role=switch])) > div:last-child > button:first-child:has(+ button:last-child)"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": "#app > div:not(:has(input[role=switch])) > div:last-child > button:last-child:not(:first-child)"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"waitForVisible": "#app > div:has(input[role=switch]) > div:last-child > button:first-child"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"click": "#app > div:has(input[role=switch]) input[role=switch][aria-checked=true]:not([disabled])",
|
|
32
|
+
"all": true,
|
|
33
|
+
"optional": true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"click": "#app > div:has(input[role=switch]) > div:last-child > button:first-child"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"test": [
|
|
40
|
+
{
|
|
41
|
+
"cookieContains": "_s.cookie_consent=marketing=0:analytics=0"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "somerset-council",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.somerset.gov.uk/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": false,
|
|
7
|
+
"runContext": {
|
|
8
|
+
"main": true,
|
|
9
|
+
"frame": false
|
|
10
|
+
},
|
|
11
|
+
"detectCmp": [{ "exists": ".cookies-banner .cookies-banner__button-group .cookies-banner__reject" }],
|
|
12
|
+
"detectPopup": [{ "visible": ".cookies-banner .cookies-banner__reject" }],
|
|
13
|
+
"optIn": [{ "waitForThenClick": ".cookies-banner .cookies-banner__accept" }],
|
|
14
|
+
"optOut": [{ "waitForThenClick": ".cookies-banner .cookies-banner__reject" }],
|
|
15
|
+
"test": [{ "cookieContains": "_SC_analytics=reject" }]
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stepstone-ccm",
|
|
3
|
+
"vendorUrl": "https://www.stepstone.com/",
|
|
4
|
+
"comment": "StepStone group consent manager (Tealium-backed), used across its job boards",
|
|
5
|
+
"prehideSelectors": ["#GDPRConsentManagerContainer"],
|
|
6
|
+
"detectCmp": [{ "exists": "#GDPRConsentManagerContainer [data-atx-component='cookieConsent']" }],
|
|
7
|
+
"detectPopup": [{ "visible": "#GDPRConsentManagerContainer #explicit_consent" }],
|
|
8
|
+
"optIn": [{ "waitForThenClick": "#GDPRConsentManagerContainer #ccmgt_explicit_accept" }],
|
|
9
|
+
"optOut": [
|
|
10
|
+
{ "waitForThenClick": "#GDPRConsentManagerContainer #ccmgt_explicit_preferences" },
|
|
11
|
+
{
|
|
12
|
+
"waitForThenClick": "#GDPRConsentManagerContainer #ccmgt_preferences_reject",
|
|
13
|
+
"timeout": 2000,
|
|
14
|
+
"optional": true,
|
|
15
|
+
"comment": "some locales open a preferences layer (all purposes unchecked) instead of rejecting directly"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"test": [{ "cookieContains": "CONSENTMGR=c1:0%7Cc2:0%7Cc3:0" }]
|
|
19
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "teacherspensions.co.uk",
|
|
3
|
+
"vendorUrl": "https://www.teacherspensions.co.uk/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"main": true,
|
|
6
|
+
"frame": false,
|
|
7
|
+
"urlPattern": "^https?://(www\\.)?teacherspensions\\.co\\.uk/"
|
|
8
|
+
},
|
|
9
|
+
"prehideSelectors": ["#cookieChoiceInfo"],
|
|
10
|
+
"detectCmp": [
|
|
11
|
+
{
|
|
12
|
+
"exists": "#cookieChoiceInfo #cookieChoiceLearnMore"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"detectPopup": [
|
|
16
|
+
{
|
|
17
|
+
"visible": "#cookieChoiceInfo"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optIn": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": "#cookieChoiceInfo #cookieChoiceDismiss"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"optOut": [
|
|
26
|
+
{
|
|
27
|
+
"waitForThenClick": "#cookieChoiceInfo #cookieChoiceLearnMore"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"waitForVisible": "[id$='_ManageCookiesContent'] input[name$='BtnConfirmChoices']"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"click": "[id$='_ManageCookiesContent'] input[type=checkbox]:checked",
|
|
34
|
+
"all": true,
|
|
35
|
+
"optional": true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"click": "[id$='_ManageCookiesContent'] input[name$='BtnConfirmChoices']"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"test": [
|
|
42
|
+
{
|
|
43
|
+
"cookieContains": "analyticsCookieConsent=n"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "thenude",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.thenude.com/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": false,
|
|
7
|
+
"runContext": {
|
|
8
|
+
"main": true,
|
|
9
|
+
"frame": false,
|
|
10
|
+
"urlPattern": "^https?://(www\\.)?thenude\\.com/"
|
|
11
|
+
},
|
|
12
|
+
"prehideSelectors": [".optanon-alert-box-wrapper"],
|
|
13
|
+
"detectCmp": [
|
|
14
|
+
{
|
|
15
|
+
"exists": ".optanon-alert-box-wrapper"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"detectPopup": [
|
|
19
|
+
{
|
|
20
|
+
"visible": ".optanon-alert-box-wrapper"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optIn": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": ".optanon-alert-box-wrapper .optanon-allow-all"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"optOut": [
|
|
29
|
+
{
|
|
30
|
+
"waitForThenClick": ".optanon-alert-box-wrapper .optanon-toggle-display"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"waitForVisible": "#optanon-popup-wrapper"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"if": {
|
|
37
|
+
"exists": "#optanon-menu li.menu-item-on:is(.menu-item-performance,.menu-item-functional,.menu-item-advertising,.menu-item-social) button"
|
|
38
|
+
},
|
|
39
|
+
"then": [
|
|
40
|
+
{
|
|
41
|
+
"click": "#optanon-menu li.menu-item-on:is(.menu-item-performance,.menu-item-functional,.menu-item-advertising,.menu-item-social) button"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"waitForThenClick": "#optanon-popup-more-info-bar .optanon-status-editable .optanon-status-on label",
|
|
45
|
+
"timeout": 1000
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"if": {
|
|
51
|
+
"exists": "#optanon-menu li.menu-item-on:is(.menu-item-performance,.menu-item-functional,.menu-item-advertising,.menu-item-social) button"
|
|
52
|
+
},
|
|
53
|
+
"then": [
|
|
54
|
+
{
|
|
55
|
+
"click": "#optanon-menu li.menu-item-on:is(.menu-item-performance,.menu-item-functional,.menu-item-advertising,.menu-item-social) button"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"waitForThenClick": "#optanon-popup-more-info-bar .optanon-status-editable .optanon-status-on label",
|
|
59
|
+
"timeout": 1000
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"if": {
|
|
65
|
+
"exists": "#optanon-menu li.menu-item-on:is(.menu-item-performance,.menu-item-functional,.menu-item-advertising,.menu-item-social) button"
|
|
66
|
+
},
|
|
67
|
+
"then": [
|
|
68
|
+
{
|
|
69
|
+
"click": "#optanon-menu li.menu-item-on:is(.menu-item-performance,.menu-item-functional,.menu-item-advertising,.menu-item-social) button"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"waitForThenClick": "#optanon-popup-more-info-bar .optanon-status-editable .optanon-status-on label",
|
|
73
|
+
"timeout": 1000
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"if": {
|
|
79
|
+
"exists": "#optanon-menu li.menu-item-on:is(.menu-item-performance,.menu-item-functional,.menu-item-advertising,.menu-item-social) button"
|
|
80
|
+
},
|
|
81
|
+
"then": [
|
|
82
|
+
{
|
|
83
|
+
"click": "#optanon-menu li.menu-item-on:is(.menu-item-performance,.menu-item-functional,.menu-item-advertising,.menu-item-social) button"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"waitForThenClick": "#optanon-popup-more-info-bar .optanon-status-editable .optanon-status-on label",
|
|
87
|
+
"timeout": 1000
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"click": "#optanon-popup-bottom .optanon-save-settings-button button"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"waitForVisible": ".optanon-alert-box-wrapper",
|
|
96
|
+
"check": "none",
|
|
97
|
+
"timeout": 3000
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"test": [
|
|
101
|
+
{
|
|
102
|
+
"cookieContains": "OptanonAlertBoxClosed"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"cookieContains": "%2C2%3A0%2C3%3A0%2C4%3A0"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tna-cookie-banner",
|
|
3
|
+
"vendorUrl": "https://design-system.nationalarchives.gov.uk/",
|
|
4
|
+
"prehideSelectors": [".tna-cookie-banner"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".tna-cookie-banner button[value=\"reject\"]"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": ".tna-cookie-banner__message--prompt button[value=\"reject\"]"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": ".tna-cookie-banner__message--prompt button[value=\"accept\"]"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": ".tna-cookie-banner__message--accepted button[value=\"close\"]",
|
|
21
|
+
"timeout": 1000,
|
|
22
|
+
"optional": true
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"optOut": [
|
|
26
|
+
{
|
|
27
|
+
"waitForThenClick": ".tna-cookie-banner__message--prompt button[value=\"reject\"]"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"waitForThenClick": ".tna-cookie-banner__message--rejected button[value=\"close\"]",
|
|
31
|
+
"timeout": 1000,
|
|
32
|
+
"optional": true
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"test": [
|
|
36
|
+
{
|
|
37
|
+
"cookieContains": "cookie_preferences_set=true"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"cookieContains": "%22usage%22%3Afalse"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -23,12 +23,26 @@
|
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
25
|
"optOut": [
|
|
26
|
+
{
|
|
27
|
+
"waitFor": "#ensModalWrapper",
|
|
28
|
+
"timeout": 5000
|
|
29
|
+
},
|
|
26
30
|
{
|
|
27
31
|
"waitForThenClick": "#cookie-banner.visible [data-cookie-preferences-button]"
|
|
28
32
|
},
|
|
29
33
|
{
|
|
30
34
|
"waitForVisible": "#ensModalWrapper #ensSave"
|
|
31
35
|
},
|
|
36
|
+
{
|
|
37
|
+
"if": { "exists": "#consentModalOverlay" },
|
|
38
|
+
"then": [
|
|
39
|
+
{
|
|
40
|
+
"waitFor": "#ensModalWrapper[tabindex]",
|
|
41
|
+
"timeout": 2000,
|
|
42
|
+
"optional": true
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
32
46
|
{
|
|
33
47
|
"click": "#ensModalWrapper .ensCheckbox:checked:not(:disabled):not(#EssentialCookiesSlide)",
|
|
34
48
|
"all": true,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tti-cookie-popup",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.ttigroup.com/"
|
|
5
|
+
},
|
|
6
|
+
"detectCmp": [
|
|
7
|
+
{
|
|
8
|
+
"exists": "#cookie-onetrust-show-info"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"detectPopup": [
|
|
12
|
+
{
|
|
13
|
+
"visible": "#cookie-onetrust-show-info"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"optIn": [
|
|
17
|
+
{
|
|
18
|
+
"waitForThenClick": "#cookie-onetrust-accept-all"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"optOut": [
|
|
22
|
+
{
|
|
23
|
+
"if": {
|
|
24
|
+
"visible": "#cookie-onetrust-only-necessary"
|
|
25
|
+
},
|
|
26
|
+
"then": [
|
|
27
|
+
{
|
|
28
|
+
"click": "#cookie-onetrust-only-necessary"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"else": [
|
|
32
|
+
{
|
|
33
|
+
"click": "#cookie-onetrust-show-info"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"waitForVisible": "#onetrust-pc-sdk",
|
|
37
|
+
"timeout": 10000
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"if": {
|
|
41
|
+
"visible": "#onetrust-pc-sdk .ot-pc-refuse-all-handler"
|
|
42
|
+
},
|
|
43
|
+
"then": [
|
|
44
|
+
{
|
|
45
|
+
"click": "#onetrust-pc-sdk .ot-pc-refuse-all-handler"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"else": [
|
|
49
|
+
{
|
|
50
|
+
"click": "#onetrust-pc-sdk input.category-switch-handler:checked",
|
|
51
|
+
"all": true,
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"waitForThenClick": "#onetrust-pc-sdk .save-preference-btn-handler"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"waitForVisible": "#cookie-onetrust-show-info",
|
|
63
|
+
"timeout": 10000,
|
|
64
|
+
"check": "none"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"test": [
|
|
68
|
+
{
|
|
69
|
+
"cookieContains": "OptanonAlertBoxClosed"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "u-cookie-consent",
|
|
3
|
+
"prehideSelectors": [".u-cookie-frame"],
|
|
4
|
+
"detectCmp": [{ "exists": ".u-cookie-frame [data-attr='btn-reject-cookies']" }],
|
|
5
|
+
"detectPopup": [{ "visible": ".u-cookie-frame [data-attr='btn-reject-cookies']" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": ".u-cookie-frame [data-attr='btn-accept-cookies']" }],
|
|
7
|
+
"optOut": [{ "waitForThenClick": ".u-cookie-frame [data-attr='btn-reject-cookies']" }],
|
|
8
|
+
"test": [{ "waitForVisible": ".u-cookie-frame [data-attr='btn-reject-cookies']", "check": "none", "timeout": 2000 }]
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "what3words",
|
|
3
|
+
"vendorUrl": "https://what3words.com/",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"urlPattern": "^https?://(\\w+\\.)?what3words\\.com/"
|
|
6
|
+
},
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": "[role=dialog] [data-testid=view-preferences], .CookieNotice-Dialog [data-testid=Preferences]"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"detectPopup": [
|
|
13
|
+
{
|
|
14
|
+
"visible": "[role=dialog] [data-testid=view-preferences], .CookieNotice-Dialog [data-testid=Preferences]",
|
|
15
|
+
"check": "any"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"waitForThenClick": "[role=dialog] [data-testid=accept-all], .CookieNotice-Dialog [data-testid=AcceptAll]"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"optOut": [
|
|
24
|
+
{
|
|
25
|
+
"if": { "exists": "[role=dialog] [data-testid=view-preferences]" },
|
|
26
|
+
"then": [
|
|
27
|
+
{ "click": "[role=dialog] [data-testid=view-preferences]" },
|
|
28
|
+
{ "waitForThenClick": "[role=dialog] [data-testid=save-preferences]" }
|
|
29
|
+
],
|
|
30
|
+
"else": [
|
|
31
|
+
{ "click": ".CookieNotice-Dialog [data-testid=Preferences]" },
|
|
32
|
+
{ "waitForThenClick": ".CookieNotice-Dialog [data-testid=UpdateAndClose]" }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{ "waitForVisible": ".fc-consent-root .fc-dialog-container", "timeout": 4000, "optional": true },
|
|
36
|
+
{
|
|
37
|
+
"if": { "visible": ".fc-consent-root .fc-dialog-container" },
|
|
38
|
+
"then": [
|
|
39
|
+
{ "click": ".fc-cta-do-not-consent,.fc-cta-manage-options" },
|
|
40
|
+
{ "click": ".fc-preference-consent:checked,.fc-preference-legitimate-interest:checked", "all": true, "optional": true },
|
|
41
|
+
{ "click": ".fc-confirm-choices", "optional": true }
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"test": [
|
|
46
|
+
{
|
|
47
|
+
"any": [
|
|
48
|
+
{ "cookieContains": "%22analytics%22%3Afalse%2C%22marketing%22%3Afalse" },
|
|
49
|
+
{ "cookieContains": "%22analytics%22:false%2C%22marketing%22:false" }
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "whitepages-gpc-banner",
|
|
3
|
+
"prehideSelectors": ["[data-global-privacy-control-banner]"],
|
|
4
|
+
"detectCmp": [{ "exists": "[data-global-privacy-control-banner] > button" }],
|
|
5
|
+
"detectPopup": [{ "visible": "[data-global-privacy-control-banner]" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": "[data-global-privacy-control-banner] > button" }],
|
|
7
|
+
"optOut": [
|
|
8
|
+
{
|
|
9
|
+
"comment": "the site has already stored an opt-out record for the GPC signal; the banner is only a notice",
|
|
10
|
+
"waitForThenClick": "[data-global-privacy-control-banner] > button"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"test": [{ "visible": "[data-global-privacy-control-banner]", "check": "none" }]
|
|
14
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "WP Cookie Notice for GDPR",
|
|
3
3
|
"vendorUrl": "https://wordpress.org/plugins/gdpr-cookie-consent/",
|
|
4
4
|
"prehideSelectors": ["#gdpr-cookie-consent-bar"],
|
|
5
|
-
"detectCmp": [{ "
|
|
5
|
+
"detectCmp": [{ "visible": "#gdpr-cookie-consent-bar" }],
|
|
6
6
|
"detectPopup": [{ "visible": "#gdpr-cookie-consent-bar" }],
|
|
7
7
|
"optIn": [{ "waitForThenClick": "#gdpr-cookie-consent-bar #cookie_action_accept" }],
|
|
8
8
|
"optOut": [{ "waitForThenClick": "#gdpr-cookie-consent-bar #cookie_action_reject" }],
|