@duckduckgo/autoconsent 1.0.7 → 1.0.8
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/dist/autoconsent.cjs.js +8 -4
- package/dist/autoconsent.esm.js +8 -4
- package/dist/autoconsent.puppet.js +8 -4
- package/lib/cmps/cookiebot.js +6 -2
- package/lib/cmps/cookiebot.ts +8 -2
- package/lib/cmps/trustarc.js +2 -2
- package/lib/cmps/trustarc.ts +2 -2
- package/package.json +1 -1
- package/rules/autoconsent/192.json +17 -0
- package/rules/autoconsent/ausopen.json +7 -0
- package/rules/autoconsent/bing.json +14 -0
- package/rules/autoconsent/dunelm.json +18 -0
- package/rules/autoconsent/gov-uk.json +10 -0
- package/rules/autoconsent/marksandspencer.json +7 -0
- package/rules/autoconsent/{paypal-de.json → paypal.json} +6 -2
- package/rules/autoconsent/uswitch.json +8 -0
- package/rules/autoconsent/waitrose.json +28 -0
- package/rules/autoconsent/wetransfer.json +7 -0
- package/rules/rules.json +267 -1
- package/tests/192.spec.ts +7 -0
- package/tests/ausopen.spec.ts +7 -0
- package/tests/cookiebot.spec.ts +1 -0
- package/tests/dunelm.spec.ts +7 -0
- package/tests/gov-uk.spec.ts +9 -0
- package/tests/marksandspencer.spec.ts +7 -0
- package/tests/paypal.spec.ts +7 -5
- package/tests/trustarc.spec.ts +1 -0
- package/tests/uswitch.spec.ts +7 -0
- package/tests/waitrose.spec.ts +7 -0
- package/tests/wetransfer.spec.ts +7 -0
package/dist/autoconsent.cjs.js
CHANGED
|
@@ -876,10 +876,10 @@ class TrustArc extends AutoConsentBase {
|
|
|
876
876
|
tab.frame.url.startsWith("https://consent-pref.trustarc.com/?")) {
|
|
877
877
|
return true;
|
|
878
878
|
}
|
|
879
|
-
return tab.elementExists("#truste-show-consent");
|
|
879
|
+
return tab.elementExists("#truste-show-consent,#truste-consent-track");
|
|
880
880
|
}
|
|
881
881
|
async detectPopup(tab) {
|
|
882
|
-
return ((await tab.elementsAreVisible("#truste-consent-content,#trustarc-banner-overlay")) ||
|
|
882
|
+
return ((await tab.elementsAreVisible("#truste-consent-content,.truste-consent-content,#trustarc-banner-overlay")) ||
|
|
883
883
|
(tab.frame &&
|
|
884
884
|
(await tab.waitForElement("#defaultpreferencemanager", 5000, tab.frame.id))));
|
|
885
885
|
}
|
|
@@ -969,7 +969,7 @@ class TrustArc extends AutoConsentBase {
|
|
|
969
969
|
class Cookiebot extends AutoConsentBase {
|
|
970
970
|
constructor() {
|
|
971
971
|
super('Cybotcookiebot');
|
|
972
|
-
this.prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner"];
|
|
972
|
+
this.prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookieoverlay"];
|
|
973
973
|
}
|
|
974
974
|
async detectCmp(tab) {
|
|
975
975
|
try {
|
|
@@ -980,7 +980,7 @@ class Cookiebot extends AutoConsentBase {
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
detectPopup(tab) {
|
|
983
|
-
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner');
|
|
983
|
+
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookiebanner');
|
|
984
984
|
}
|
|
985
985
|
async optOut(tab) {
|
|
986
986
|
if (await tab.elementExists('.cookie-alert-extended-detail-link')) {
|
|
@@ -1019,6 +1019,10 @@ class Cookiebot extends AutoConsentBase {
|
|
|
1019
1019
|
await tab.eval('Cookiebot.dialog.submitConsent() || true');
|
|
1020
1020
|
await tab.wait(500);
|
|
1021
1021
|
}
|
|
1022
|
+
// site with 3rd confirm settings modal
|
|
1023
|
+
if (await tab.elementExists('#cb-confirmedSettings')) {
|
|
1024
|
+
await tab.eval('endCookieProcess()');
|
|
1025
|
+
}
|
|
1022
1026
|
return true;
|
|
1023
1027
|
}
|
|
1024
1028
|
async optIn(tab) {
|
package/dist/autoconsent.esm.js
CHANGED
|
@@ -872,10 +872,10 @@ class TrustArc extends AutoConsentBase {
|
|
|
872
872
|
tab.frame.url.startsWith("https://consent-pref.trustarc.com/?")) {
|
|
873
873
|
return true;
|
|
874
874
|
}
|
|
875
|
-
return tab.elementExists("#truste-show-consent");
|
|
875
|
+
return tab.elementExists("#truste-show-consent,#truste-consent-track");
|
|
876
876
|
}
|
|
877
877
|
async detectPopup(tab) {
|
|
878
|
-
return ((await tab.elementsAreVisible("#truste-consent-content,#trustarc-banner-overlay")) ||
|
|
878
|
+
return ((await tab.elementsAreVisible("#truste-consent-content,.truste-consent-content,#trustarc-banner-overlay")) ||
|
|
879
879
|
(tab.frame &&
|
|
880
880
|
(await tab.waitForElement("#defaultpreferencemanager", 5000, tab.frame.id))));
|
|
881
881
|
}
|
|
@@ -965,7 +965,7 @@ class TrustArc extends AutoConsentBase {
|
|
|
965
965
|
class Cookiebot extends AutoConsentBase {
|
|
966
966
|
constructor() {
|
|
967
967
|
super('Cybotcookiebot');
|
|
968
|
-
this.prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner"];
|
|
968
|
+
this.prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookieoverlay"];
|
|
969
969
|
}
|
|
970
970
|
async detectCmp(tab) {
|
|
971
971
|
try {
|
|
@@ -976,7 +976,7 @@ class Cookiebot extends AutoConsentBase {
|
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
detectPopup(tab) {
|
|
979
|
-
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner');
|
|
979
|
+
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookiebanner');
|
|
980
980
|
}
|
|
981
981
|
async optOut(tab) {
|
|
982
982
|
if (await tab.elementExists('.cookie-alert-extended-detail-link')) {
|
|
@@ -1015,6 +1015,10 @@ class Cookiebot extends AutoConsentBase {
|
|
|
1015
1015
|
await tab.eval('Cookiebot.dialog.submitConsent() || true');
|
|
1016
1016
|
await tab.wait(500);
|
|
1017
1017
|
}
|
|
1018
|
+
// site with 3rd confirm settings modal
|
|
1019
|
+
if (await tab.elementExists('#cb-confirmedSettings')) {
|
|
1020
|
+
await tab.eval('endCookieProcess()');
|
|
1021
|
+
}
|
|
1018
1022
|
return true;
|
|
1019
1023
|
}
|
|
1020
1024
|
async optIn(tab) {
|
|
@@ -632,10 +632,10 @@ class TrustArc extends AutoConsentBase {
|
|
|
632
632
|
tab.frame.url.startsWith("https://consent-pref.trustarc.com/?")) {
|
|
633
633
|
return true;
|
|
634
634
|
}
|
|
635
|
-
return tab.elementExists("#truste-show-consent");
|
|
635
|
+
return tab.elementExists("#truste-show-consent,#truste-consent-track");
|
|
636
636
|
}
|
|
637
637
|
async detectPopup(tab) {
|
|
638
|
-
return ((await tab.elementsAreVisible("#truste-consent-content,#trustarc-banner-overlay")) ||
|
|
638
|
+
return ((await tab.elementsAreVisible("#truste-consent-content,.truste-consent-content,#trustarc-banner-overlay")) ||
|
|
639
639
|
(tab.frame &&
|
|
640
640
|
(await tab.waitForElement("#defaultpreferencemanager", 5000, tab.frame.id))));
|
|
641
641
|
}
|
|
@@ -725,7 +725,7 @@ class TrustArc extends AutoConsentBase {
|
|
|
725
725
|
class Cookiebot extends AutoConsentBase {
|
|
726
726
|
constructor() {
|
|
727
727
|
super('Cybotcookiebot');
|
|
728
|
-
this.prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner"];
|
|
728
|
+
this.prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookieoverlay"];
|
|
729
729
|
}
|
|
730
730
|
async detectCmp(tab) {
|
|
731
731
|
try {
|
|
@@ -736,7 +736,7 @@ class Cookiebot extends AutoConsentBase {
|
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
detectPopup(tab) {
|
|
739
|
-
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner');
|
|
739
|
+
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookiebanner');
|
|
740
740
|
}
|
|
741
741
|
async optOut(tab) {
|
|
742
742
|
if (await tab.elementExists('.cookie-alert-extended-detail-link')) {
|
|
@@ -775,6 +775,10 @@ class Cookiebot extends AutoConsentBase {
|
|
|
775
775
|
await tab.eval('Cookiebot.dialog.submitConsent() || true');
|
|
776
776
|
await tab.wait(500);
|
|
777
777
|
}
|
|
778
|
+
// site with 3rd confirm settings modal
|
|
779
|
+
if (await tab.elementExists('#cb-confirmedSettings')) {
|
|
780
|
+
await tab.eval('endCookieProcess()');
|
|
781
|
+
}
|
|
778
782
|
return true;
|
|
779
783
|
}
|
|
780
784
|
async optIn(tab) {
|
package/lib/cmps/cookiebot.js
CHANGED
|
@@ -2,7 +2,7 @@ import AutoConsentBase from './base';
|
|
|
2
2
|
export default class Cookiebot extends AutoConsentBase {
|
|
3
3
|
constructor() {
|
|
4
4
|
super('Cybotcookiebot');
|
|
5
|
-
this.prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner"];
|
|
5
|
+
this.prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookieoverlay"];
|
|
6
6
|
}
|
|
7
7
|
async detectCmp(tab) {
|
|
8
8
|
try {
|
|
@@ -13,7 +13,7 @@ export default class Cookiebot extends AutoConsentBase {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
detectPopup(tab) {
|
|
16
|
-
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner');
|
|
16
|
+
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookiebanner');
|
|
17
17
|
}
|
|
18
18
|
async optOut(tab) {
|
|
19
19
|
if (await tab.elementExists('.cookie-alert-extended-detail-link')) {
|
|
@@ -52,6 +52,10 @@ export default class Cookiebot extends AutoConsentBase {
|
|
|
52
52
|
await tab.eval('Cookiebot.dialog.submitConsent() || true');
|
|
53
53
|
await tab.wait(500);
|
|
54
54
|
}
|
|
55
|
+
// site with 3rd confirm settings modal
|
|
56
|
+
if (await tab.elementExists('#cb-confirmedSettings')) {
|
|
57
|
+
await tab.eval('endCookieProcess()');
|
|
58
|
+
}
|
|
55
59
|
return true;
|
|
56
60
|
}
|
|
57
61
|
async optIn(tab) {
|
package/lib/cmps/cookiebot.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { TabActor } from '../types';
|
|
|
3
3
|
|
|
4
4
|
export default class Cookiebot extends AutoConsentBase {
|
|
5
5
|
|
|
6
|
-
prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner"]
|
|
6
|
+
prehideSelectors = ["#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookieoverlay"]
|
|
7
7
|
|
|
8
8
|
constructor() {
|
|
9
9
|
super('Cybotcookiebot');
|
|
@@ -18,7 +18,7 @@ export default class Cookiebot extends AutoConsentBase {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
detectPopup(tab: TabActor) {
|
|
21
|
-
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner');
|
|
21
|
+
return tab.elementExists('#CybotCookiebotDialog,#dtcookie-container,#cookiebanner,#cb-cookiebanner');
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
async optOut(tab: TabActor) {
|
|
@@ -57,6 +57,12 @@ export default class Cookiebot extends AutoConsentBase {
|
|
|
57
57
|
await tab.eval('Cookiebot.dialog.submitConsent() || true');
|
|
58
58
|
await tab.wait(500);
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
// site with 3rd confirm settings modal
|
|
62
|
+
if (await tab.elementExists('#cb-confirmedSettings')) {
|
|
63
|
+
await tab.eval('endCookieProcess()')
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
return true;
|
|
61
67
|
}
|
|
62
68
|
|
package/lib/cmps/trustarc.js
CHANGED
|
@@ -15,10 +15,10 @@ export default class TrustArc extends AutoConsentBase {
|
|
|
15
15
|
tab.frame.url.startsWith("https://consent-pref.trustarc.com/?")) {
|
|
16
16
|
return true;
|
|
17
17
|
}
|
|
18
|
-
return tab.elementExists("#truste-show-consent");
|
|
18
|
+
return tab.elementExists("#truste-show-consent,#truste-consent-track");
|
|
19
19
|
}
|
|
20
20
|
async detectPopup(tab) {
|
|
21
|
-
return ((await tab.elementsAreVisible("#truste-consent-content,#trustarc-banner-overlay")) ||
|
|
21
|
+
return ((await tab.elementsAreVisible("#truste-consent-content,.truste-consent-content,#trustarc-banner-overlay")) ||
|
|
22
22
|
(tab.frame &&
|
|
23
23
|
(await tab.waitForElement("#defaultpreferencemanager", 5000, tab.frame.id))));
|
|
24
24
|
}
|
package/lib/cmps/trustarc.ts
CHANGED
|
@@ -23,12 +23,12 @@ export default class TrustArc extends AutoConsentBase {
|
|
|
23
23
|
) {
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
|
-
return tab.elementExists("#truste-show-consent");
|
|
26
|
+
return tab.elementExists("#truste-show-consent,#truste-consent-track");
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
async detectPopup(tab: TabActor) {
|
|
30
30
|
return (
|
|
31
|
-
(await tab.elementsAreVisible("#truste-consent-content,#trustarc-banner-overlay")) ||
|
|
31
|
+
(await tab.elementsAreVisible("#truste-consent-content,.truste-consent-content,#trustarc-banner-overlay")) ||
|
|
32
32
|
(tab.frame &&
|
|
33
33
|
(await tab.waitForElement(
|
|
34
34
|
"#defaultpreferencemanager",
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "192.com",
|
|
3
|
+
"detectCmp": [{ "exists": ".ont-cookies"}],
|
|
4
|
+
"detectPopup": [{ "visible": ".ont-cookies" }],
|
|
5
|
+
"optIn": [{ "click": ".ont-btn-main.ont-cookies-btn.js-ont-btn-ok2" }],
|
|
6
|
+
"optOut": [
|
|
7
|
+
{
|
|
8
|
+
"click": ".ont-cookes-btn-manage"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"click": ".ont-btn-main.ont-cookies-btn.js-ont-btn-choose"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"test": [
|
|
15
|
+
{"eval": "document.cookie.includes('CC_ADVERTISING=NO') && document.cookie.includes('CC_ANALYTICS=NO')"}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bing.com",
|
|
3
|
+
"prehideSelectors": ["#bnp_container"],
|
|
4
|
+
"detectCmp": [{ "exists": "#bnp_cookie_banner"}],
|
|
5
|
+
"detectPopup": [{ "visible": "#bnp_cookie_banner" }],
|
|
6
|
+
"optIn": [{ "click": "#bnp_btn_accept" }],
|
|
7
|
+
"optOut": [
|
|
8
|
+
{ "click": "#bnp_btn_preference"},
|
|
9
|
+
{ "click": "#mcp_savesettings"}
|
|
10
|
+
],
|
|
11
|
+
"test": [
|
|
12
|
+
{ "eval": "document.cookie.includes('AL=0') && document.cookie.includes('AD=0') && document.cookie.includes('SM=0')"}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dunelm.com",
|
|
3
|
+
"prehideSelectors": ["div[data-testid=cookie-consent-modal-backdrop]"],
|
|
4
|
+
"detectCmp": [{ "exists": "div[data-testid=cookie-consent-message-contents]"}],
|
|
5
|
+
"detectPopup": [{ "visible": "div[data-testid=cookie-consent-message-contents]" }],
|
|
6
|
+
"optIn": [{ "click": "" }],
|
|
7
|
+
"optOut": [
|
|
8
|
+
{
|
|
9
|
+
"click": "button[data-testid=cookie-consent-adjust-settings]"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"click": "button[data-testid=cookie-consent-preferences-save]"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"test": [
|
|
16
|
+
{"eval": "document.cookie.includes('cc_functional=0') && document.cookie.includes('cc_targeting=0')"}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gov.uk",
|
|
3
|
+
"detectCmp": [{ "exists": "#global-cookie-message"}],
|
|
4
|
+
"detectPopup": [{ "exists": "#global-cookie-message" }],
|
|
5
|
+
"optIn": [{ "click": "button[data-accept-cookies=true]" }],
|
|
6
|
+
"optOut": [
|
|
7
|
+
{"click": "button[data-reject-cookies=true],#reject-cookies"},
|
|
8
|
+
{"click": "button[data-hide-cookie-banner=true],#hide-cookie-decision"}
|
|
9
|
+
]
|
|
10
|
+
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "paypal.
|
|
2
|
+
"name": "paypal.com",
|
|
3
3
|
"prehideSelectors": ["#gdprCookieBanner"],
|
|
4
4
|
"detectCmp": [{ "exists": "#gdprCookieBanner"}],
|
|
5
5
|
"detectPopup": [{ "visible": "#gdprCookieContent_wrapper" }],
|
|
6
6
|
"optIn": [{ "click": "#acceptAllButton" }],
|
|
7
7
|
"optOut": [
|
|
8
|
+
{
|
|
9
|
+
"wait": 200
|
|
10
|
+
},
|
|
8
11
|
{
|
|
9
12
|
"click": ".gdprCookieBanner_decline-button"
|
|
10
13
|
}
|
|
11
|
-
]
|
|
14
|
+
],
|
|
15
|
+
"test": [{"eval": "document.cookie.includes('cookie_prefs') === true"}]
|
|
12
16
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "uswitch.com",
|
|
3
|
+
"prehideSelectors": ["#cookie-banner-wrapper"],
|
|
4
|
+
"detectCmp": [{ "exists": "#cookie-banner-wrapper"}],
|
|
5
|
+
"detectPopup": [{ "visible": "#cookie-banner-wrapper" }],
|
|
6
|
+
"optIn": [{ "click": "#cookie_banner_accept_mobile" }],
|
|
7
|
+
"optOut": [{ "click": "#cookie_banner_save"}]
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "waitrose.com",
|
|
3
|
+
"prehideSelectors": [
|
|
4
|
+
"div[aria-labelledby=CookieAlertModalHeading]",
|
|
5
|
+
"section[data-test=initial-waitrose-cookie-consent-banner]",
|
|
6
|
+
"section[data-test=cookie-consent-modal]"
|
|
7
|
+
],
|
|
8
|
+
"detectCmp": [{ "exists": "section[data-test=initial-waitrose-cookie-consent-banner]"}],
|
|
9
|
+
"detectPopup": [{ "visible": "section[data-test=initial-waitrose-cookie-consent-banner]" }],
|
|
10
|
+
"optIn": [{ "click": "button[data-test=accept-all]" }],
|
|
11
|
+
"optOut": [
|
|
12
|
+
{
|
|
13
|
+
"click": "button[data-test=manage-cookies]"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"wait": 200
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"eval": "Array.from(document.querySelectorAll('label[id$=cookies-deny-label]')).forEach(e => e.click()) || true"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"click": "button[data-test=submit]"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"test": [
|
|
26
|
+
{"eval": "document.cookie.includes('wtr_cookies_advertising=0') && document.cookie.includes('wtr_cookies_analytics=0')"}
|
|
27
|
+
]
|
|
28
|
+
}
|
package/rules/rules.json
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"autoconsent": [
|
|
3
|
+
{
|
|
4
|
+
"name": "192.com",
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": ".ont-cookies"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": ".ont-cookies"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"click": ".ont-btn-main.ont-cookies-btn.js-ont-btn-ok2"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"click": ".ont-cookes-btn-manage"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"click": ".ont-btn-main.ont-cookies-btn.js-ont-btn-choose"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"test": [
|
|
29
|
+
{
|
|
30
|
+
"eval": "document.cookie.includes('CC_ADVERTISING=NO') && document.cookie.includes('CC_ANALYTICS=NO')"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
3
34
|
{
|
|
4
35
|
"name": "arzt-auskunft.de",
|
|
5
36
|
"prehideSelectors": [
|
|
@@ -52,6 +83,27 @@
|
|
|
52
83
|
}
|
|
53
84
|
]
|
|
54
85
|
},
|
|
86
|
+
{
|
|
87
|
+
"name": "ausopen.com",
|
|
88
|
+
"isHidingRule": true,
|
|
89
|
+
"detectCmp": [
|
|
90
|
+
{
|
|
91
|
+
"exists": ".gdpr-popup__message"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"detectPopup": [
|
|
95
|
+
{
|
|
96
|
+
"visible": ".gdpr-popup__message"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"optOut": [
|
|
100
|
+
{
|
|
101
|
+
"hide": [
|
|
102
|
+
".gdpr-popup__message"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
55
107
|
{
|
|
56
108
|
"name": "aws.amazon.com",
|
|
57
109
|
"prehideSelectors": [
|
|
@@ -110,6 +162,40 @@
|
|
|
110
162
|
],
|
|
111
163
|
"optOut": []
|
|
112
164
|
},
|
|
165
|
+
{
|
|
166
|
+
"name": "bing.com",
|
|
167
|
+
"prehideSelectors": [
|
|
168
|
+
"#bnp_container"
|
|
169
|
+
],
|
|
170
|
+
"detectCmp": [
|
|
171
|
+
{
|
|
172
|
+
"exists": "#bnp_cookie_banner"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"detectPopup": [
|
|
176
|
+
{
|
|
177
|
+
"visible": "#bnp_cookie_banner"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"optIn": [
|
|
181
|
+
{
|
|
182
|
+
"click": "#bnp_btn_accept"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"optOut": [
|
|
186
|
+
{
|
|
187
|
+
"click": "#bnp_btn_preference"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"click": "#mcp_savesettings"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"test": [
|
|
194
|
+
{
|
|
195
|
+
"eval": "document.cookie.includes('AL=0') && document.cookie.includes('AD=0') && document.cookie.includes('SM=0')"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
113
199
|
{
|
|
114
200
|
"name": "borlabs",
|
|
115
201
|
"prehideSelectors": [
|
|
@@ -394,6 +480,40 @@
|
|
|
394
480
|
}
|
|
395
481
|
]
|
|
396
482
|
},
|
|
483
|
+
{
|
|
484
|
+
"name": "dunelm.com",
|
|
485
|
+
"prehideSelectors": [
|
|
486
|
+
"div[data-testid=cookie-consent-modal-backdrop]"
|
|
487
|
+
],
|
|
488
|
+
"detectCmp": [
|
|
489
|
+
{
|
|
490
|
+
"exists": "div[data-testid=cookie-consent-message-contents]"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"detectPopup": [
|
|
494
|
+
{
|
|
495
|
+
"visible": "div[data-testid=cookie-consent-message-contents]"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"optIn": [
|
|
499
|
+
{
|
|
500
|
+
"click": ""
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"optOut": [
|
|
504
|
+
{
|
|
505
|
+
"click": "button[data-testid=cookie-consent-adjust-settings]"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"click": "button[data-testid=cookie-consent-preferences-save]"
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"test": [
|
|
512
|
+
{
|
|
513
|
+
"eval": "document.cookie.includes('cc_functional=0') && document.cookie.includes('cc_targeting=0')"
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
},
|
|
397
517
|
{
|
|
398
518
|
"name": "etsy",
|
|
399
519
|
"detectCmp": [
|
|
@@ -503,6 +623,32 @@
|
|
|
503
623
|
}
|
|
504
624
|
]
|
|
505
625
|
},
|
|
626
|
+
{
|
|
627
|
+
"name": "gov.uk",
|
|
628
|
+
"detectCmp": [
|
|
629
|
+
{
|
|
630
|
+
"exists": "#global-cookie-message"
|
|
631
|
+
}
|
|
632
|
+
],
|
|
633
|
+
"detectPopup": [
|
|
634
|
+
{
|
|
635
|
+
"exists": "#global-cookie-message"
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"optIn": [
|
|
639
|
+
{
|
|
640
|
+
"click": "button[data-accept-cookies=true]"
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
"optOut": [
|
|
644
|
+
{
|
|
645
|
+
"click": "button[data-reject-cookies=true],#reject-cookies"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"click": "button[data-hide-cookie-banner=true],#hide-cookie-decision"
|
|
649
|
+
}
|
|
650
|
+
]
|
|
651
|
+
},
|
|
506
652
|
{
|
|
507
653
|
"name": "hl.co.uk",
|
|
508
654
|
"prehideSelectors": [
|
|
@@ -673,6 +819,27 @@
|
|
|
673
819
|
}
|
|
674
820
|
]
|
|
675
821
|
},
|
|
822
|
+
{
|
|
823
|
+
"name": "marksandspencer.com",
|
|
824
|
+
"isHidingRule": true,
|
|
825
|
+
"detectCmp": [
|
|
826
|
+
{
|
|
827
|
+
"exists": ".navigation-cookiebbanner"
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"detectPopup": [
|
|
831
|
+
{
|
|
832
|
+
"visible": ".navigation-cookiebbanner"
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
"optOut": [
|
|
836
|
+
{
|
|
837
|
+
"hide": [
|
|
838
|
+
".navigation-cookiebbanner"
|
|
839
|
+
]
|
|
840
|
+
}
|
|
841
|
+
]
|
|
842
|
+
},
|
|
676
843
|
{
|
|
677
844
|
"name": "mediamarkt.de",
|
|
678
845
|
"prehideSelectors": [
|
|
@@ -1005,7 +1172,7 @@
|
|
|
1005
1172
|
]
|
|
1006
1173
|
},
|
|
1007
1174
|
{
|
|
1008
|
-
"name": "paypal.
|
|
1175
|
+
"name": "paypal.com",
|
|
1009
1176
|
"prehideSelectors": [
|
|
1010
1177
|
"#gdprCookieBanner"
|
|
1011
1178
|
],
|
|
@@ -1025,9 +1192,17 @@
|
|
|
1025
1192
|
}
|
|
1026
1193
|
],
|
|
1027
1194
|
"optOut": [
|
|
1195
|
+
{
|
|
1196
|
+
"wait": 200
|
|
1197
|
+
},
|
|
1028
1198
|
{
|
|
1029
1199
|
"click": ".gdprCookieBanner_decline-button"
|
|
1030
1200
|
}
|
|
1201
|
+
],
|
|
1202
|
+
"test": [
|
|
1203
|
+
{
|
|
1204
|
+
"eval": "document.cookie.includes('cookie_prefs') === true"
|
|
1205
|
+
}
|
|
1031
1206
|
]
|
|
1032
1207
|
},
|
|
1033
1208
|
{
|
|
@@ -1302,6 +1477,32 @@
|
|
|
1302
1477
|
}
|
|
1303
1478
|
]
|
|
1304
1479
|
},
|
|
1480
|
+
{
|
|
1481
|
+
"name": "uswitch.com",
|
|
1482
|
+
"prehideSelectors": [
|
|
1483
|
+
"#cookie-banner-wrapper"
|
|
1484
|
+
],
|
|
1485
|
+
"detectCmp": [
|
|
1486
|
+
{
|
|
1487
|
+
"exists": "#cookie-banner-wrapper"
|
|
1488
|
+
}
|
|
1489
|
+
],
|
|
1490
|
+
"detectPopup": [
|
|
1491
|
+
{
|
|
1492
|
+
"visible": "#cookie-banner-wrapper"
|
|
1493
|
+
}
|
|
1494
|
+
],
|
|
1495
|
+
"optIn": [
|
|
1496
|
+
{
|
|
1497
|
+
"click": "#cookie_banner_accept_mobile"
|
|
1498
|
+
}
|
|
1499
|
+
],
|
|
1500
|
+
"optOut": [
|
|
1501
|
+
{
|
|
1502
|
+
"click": "#cookie_banner_save"
|
|
1503
|
+
}
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1305
1506
|
{
|
|
1306
1507
|
"name": "vodafone.de",
|
|
1307
1508
|
"prehideSelectors": [
|
|
@@ -1331,6 +1532,71 @@
|
|
|
1331
1532
|
}
|
|
1332
1533
|
]
|
|
1333
1534
|
},
|
|
1535
|
+
{
|
|
1536
|
+
"name": "waitrose.com",
|
|
1537
|
+
"prehideSelectors": [
|
|
1538
|
+
"div[aria-labelledby=CookieAlertModalHeading]",
|
|
1539
|
+
"section[data-test=initial-waitrose-cookie-consent-banner]",
|
|
1540
|
+
"section[data-test=cookie-consent-modal]"
|
|
1541
|
+
],
|
|
1542
|
+
"detectCmp": [
|
|
1543
|
+
{
|
|
1544
|
+
"exists": "section[data-test=initial-waitrose-cookie-consent-banner]"
|
|
1545
|
+
}
|
|
1546
|
+
],
|
|
1547
|
+
"detectPopup": [
|
|
1548
|
+
{
|
|
1549
|
+
"visible": "section[data-test=initial-waitrose-cookie-consent-banner]"
|
|
1550
|
+
}
|
|
1551
|
+
],
|
|
1552
|
+
"optIn": [
|
|
1553
|
+
{
|
|
1554
|
+
"click": "button[data-test=accept-all]"
|
|
1555
|
+
}
|
|
1556
|
+
],
|
|
1557
|
+
"optOut": [
|
|
1558
|
+
{
|
|
1559
|
+
"click": "button[data-test=manage-cookies]"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
"wait": 200
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"eval": "Array.from(document.querySelectorAll('label[id$=cookies-deny-label]')).forEach(e => e.click()) || true"
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"click": "button[data-test=submit]"
|
|
1569
|
+
}
|
|
1570
|
+
],
|
|
1571
|
+
"test": [
|
|
1572
|
+
{
|
|
1573
|
+
"eval": "document.cookie.includes('wtr_cookies_advertising=0') && document.cookie.includes('wtr_cookies_analytics=0')"
|
|
1574
|
+
}
|
|
1575
|
+
]
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
"name": "wetransfer.com",
|
|
1579
|
+
"detectCmp": [
|
|
1580
|
+
{
|
|
1581
|
+
"exists": ".welcome__cookie-notice"
|
|
1582
|
+
}
|
|
1583
|
+
],
|
|
1584
|
+
"detectPopup": [
|
|
1585
|
+
{
|
|
1586
|
+
"visible": ".welcome__cookie-notice"
|
|
1587
|
+
}
|
|
1588
|
+
],
|
|
1589
|
+
"optIn": [
|
|
1590
|
+
{
|
|
1591
|
+
"click": ".welcome__button--accept"
|
|
1592
|
+
}
|
|
1593
|
+
],
|
|
1594
|
+
"optOut": [
|
|
1595
|
+
{
|
|
1596
|
+
"click": ".welcome__button--decline"
|
|
1597
|
+
}
|
|
1598
|
+
]
|
|
1599
|
+
},
|
|
1334
1600
|
{
|
|
1335
1601
|
"name": "xing.com",
|
|
1336
1602
|
"detectCmp": [
|
package/tests/cookiebot.spec.ts
CHANGED
package/tests/paypal.spec.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import generateCMPTests from "./runner";
|
|
2
2
|
|
|
3
|
-
generateCMPTests('paypal.
|
|
4
|
-
'https://paypal.de'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
generateCMPTests('paypal.com', [
|
|
4
|
+
'https://paypal.de',
|
|
5
|
+
'https://paypal.com'
|
|
6
|
+
],{
|
|
7
|
+
skipRegions: ["US"],
|
|
8
|
+
testSelfTest: false
|
|
9
|
+
});
|
package/tests/trustarc.spec.ts
CHANGED