@duckduckgo/autoconsent 8.0.0 → 8.1.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 +20 -0
- package/Jenkinsfile +20 -37
- package/data/coverage.json +507 -531
- package/dist/addon-firefox/background.bundle.js +1 -0
- package/dist/addon-firefox/content.bundle.js +2 -3
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +67 -0
- package/dist/addon-mv3/background.bundle.js +1 -0
- package/dist/addon-mv3/content.bundle.js +2 -3
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +67 -0
- package/dist/autoconsent.cjs.js +2 -3
- package/dist/autoconsent.esm.js +2 -3
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/cookiebot.ts +1 -4
- package/lib/eval-snippets.ts +1 -0
- package/package.json +2 -1
- package/playwright/runner.ts +1 -0
- package/playwright.config.ts +0 -2
- package/rules/autoconsent/hema-com.json +21 -0
- package/rules/autoconsent/ing-de.json +18 -0
- package/rules/rules.json +67 -0
- package/tests/_sample-test.spec.ts +16 -0
- package/tests/hema.spec.ts +7 -0
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
EVAL_EZOIC_0: () => ezCMP.handleAcceptAllClick(),
|
|
61
61
|
EVAL_EZOIC_1: () => !!document.cookie.match(/ezCMPCookieConsent=[^;]+\|2=0\|3=0\|4=0/),
|
|
62
62
|
EVAL_GOOGLE_0: () => !!document.cookie.match(/SOCS=CAE/),
|
|
63
|
+
EVAL_HEMA_TEST_0: () => document.cookie.includes("cookies_rejected=1"),
|
|
63
64
|
EVAL_IUBENDA_0: () => document.querySelectorAll(".purposes-item input[type=checkbox]:not([disabled])").forEach((x) => {
|
|
64
65
|
if (x.checked)
|
|
65
66
|
x.click();
|
|
@@ -679,6 +679,7 @@
|
|
|
679
679
|
EVAL_EZOIC_0: () => ezCMP.handleAcceptAllClick(),
|
|
680
680
|
EVAL_EZOIC_1: () => !!document.cookie.match(/ezCMPCookieConsent=[^;]+\|2=0\|3=0\|4=0/),
|
|
681
681
|
EVAL_GOOGLE_0: () => !!document.cookie.match(/SOCS=CAE/),
|
|
682
|
+
EVAL_HEMA_TEST_0: () => document.cookie.includes("cookies_rejected=1"),
|
|
682
683
|
EVAL_IUBENDA_0: () => document.querySelectorAll(".purposes-item input[type=checkbox]:not([disabled])").forEach((x) => {
|
|
683
684
|
if (x.checked)
|
|
684
685
|
x.click();
|
|
@@ -1197,9 +1198,7 @@
|
|
|
1197
1198
|
return await this.mainWorldEval("EVAL_COOKIEBOT_1");
|
|
1198
1199
|
}
|
|
1199
1200
|
async detectPopup() {
|
|
1200
|
-
return
|
|
1201
|
-
return this.mainWorldEval("EVAL_COOKIEBOT_2");
|
|
1202
|
-
}, 10, 500);
|
|
1201
|
+
return this.mainWorldEval("EVAL_COOKIEBOT_2");
|
|
1203
1202
|
}
|
|
1204
1203
|
async optOut() {
|
|
1205
1204
|
await wait(500);
|
|
@@ -2382,6 +2382,37 @@
|
|
|
2382
2382
|
}
|
|
2383
2383
|
]
|
|
2384
2384
|
},
|
|
2385
|
+
{
|
|
2386
|
+
"name": "hema",
|
|
2387
|
+
"prehideSelectors": [
|
|
2388
|
+
".cookie-modal"
|
|
2389
|
+
],
|
|
2390
|
+
"detectCmp": [
|
|
2391
|
+
{
|
|
2392
|
+
"visible": ".cookie-modal .cookie-accept-btn"
|
|
2393
|
+
}
|
|
2394
|
+
],
|
|
2395
|
+
"detectPopup": [
|
|
2396
|
+
{
|
|
2397
|
+
"visible": ".cookie-modal .cookie-accept-btn"
|
|
2398
|
+
}
|
|
2399
|
+
],
|
|
2400
|
+
"optIn": [
|
|
2401
|
+
{
|
|
2402
|
+
"waitForThenClick": ".cookie-modal .cookie-accept-btn"
|
|
2403
|
+
}
|
|
2404
|
+
],
|
|
2405
|
+
"optOut": [
|
|
2406
|
+
{
|
|
2407
|
+
"waitForThenClick": ".cookie-modal .js-cookie-reject-btn"
|
|
2408
|
+
}
|
|
2409
|
+
],
|
|
2410
|
+
"test": [
|
|
2411
|
+
{
|
|
2412
|
+
"eval": "EVAL_HEMA_TEST_0"
|
|
2413
|
+
}
|
|
2414
|
+
]
|
|
2415
|
+
},
|
|
2385
2416
|
{
|
|
2386
2417
|
"name": "hl.co.uk",
|
|
2387
2418
|
"prehideSelectors": [
|
|
@@ -2479,6 +2510,42 @@
|
|
|
2479
2510
|
}
|
|
2480
2511
|
]
|
|
2481
2512
|
},
|
|
2513
|
+
{
|
|
2514
|
+
"name": "ing.de",
|
|
2515
|
+
"runContext": {
|
|
2516
|
+
"urlPattern": "^https://www\\.ing\\.de/"
|
|
2517
|
+
},
|
|
2518
|
+
"cosmetic": true,
|
|
2519
|
+
"prehideSelectors": [
|
|
2520
|
+
"div[slot=\"backdrop\"]"
|
|
2521
|
+
],
|
|
2522
|
+
"detectCmp": [
|
|
2523
|
+
{
|
|
2524
|
+
"exists": "[data-tag-name=\"ing-cc-dialog-frame\"]"
|
|
2525
|
+
}
|
|
2526
|
+
],
|
|
2527
|
+
"detectPopup": [
|
|
2528
|
+
{
|
|
2529
|
+
"visible": "[data-tag-name=\"ing-cc-dialog-frame\"]"
|
|
2530
|
+
}
|
|
2531
|
+
],
|
|
2532
|
+
"optIn": [
|
|
2533
|
+
{
|
|
2534
|
+
"click": [
|
|
2535
|
+
"[data-tag-name=\"ing-cc-dialog-level0\"]",
|
|
2536
|
+
"[data-tag-name=\"ing-cc-button\"][class*=\"accept\"]"
|
|
2537
|
+
]
|
|
2538
|
+
}
|
|
2539
|
+
],
|
|
2540
|
+
"optOut": [
|
|
2541
|
+
{
|
|
2542
|
+
"click": [
|
|
2543
|
+
"[data-tag-name=\"ing-cc-dialog-level0\"]",
|
|
2544
|
+
"[data-tag-name=\"ing-cc-button\"][class*=\"more\"]"
|
|
2545
|
+
]
|
|
2546
|
+
}
|
|
2547
|
+
]
|
|
2548
|
+
},
|
|
2482
2549
|
{
|
|
2483
2550
|
"name": "ionos.de",
|
|
2484
2551
|
"prehideSelectors": [
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
EVAL_EZOIC_0: () => ezCMP.handleAcceptAllClick(),
|
|
61
61
|
EVAL_EZOIC_1: () => !!document.cookie.match(/ezCMPCookieConsent=[^;]+\|2=0\|3=0\|4=0/),
|
|
62
62
|
EVAL_GOOGLE_0: () => !!document.cookie.match(/SOCS=CAE/),
|
|
63
|
+
EVAL_HEMA_TEST_0: () => document.cookie.includes("cookies_rejected=1"),
|
|
63
64
|
EVAL_IUBENDA_0: () => document.querySelectorAll(".purposes-item input[type=checkbox]:not([disabled])").forEach((x) => {
|
|
64
65
|
if (x.checked)
|
|
65
66
|
x.click();
|
|
@@ -679,6 +679,7 @@
|
|
|
679
679
|
EVAL_EZOIC_0: () => ezCMP.handleAcceptAllClick(),
|
|
680
680
|
EVAL_EZOIC_1: () => !!document.cookie.match(/ezCMPCookieConsent=[^;]+\|2=0\|3=0\|4=0/),
|
|
681
681
|
EVAL_GOOGLE_0: () => !!document.cookie.match(/SOCS=CAE/),
|
|
682
|
+
EVAL_HEMA_TEST_0: () => document.cookie.includes("cookies_rejected=1"),
|
|
682
683
|
EVAL_IUBENDA_0: () => document.querySelectorAll(".purposes-item input[type=checkbox]:not([disabled])").forEach((x) => {
|
|
683
684
|
if (x.checked)
|
|
684
685
|
x.click();
|
|
@@ -1197,9 +1198,7 @@
|
|
|
1197
1198
|
return await this.mainWorldEval("EVAL_COOKIEBOT_1");
|
|
1198
1199
|
}
|
|
1199
1200
|
async detectPopup() {
|
|
1200
|
-
return
|
|
1201
|
-
return this.mainWorldEval("EVAL_COOKIEBOT_2");
|
|
1202
|
-
}, 10, 500);
|
|
1201
|
+
return this.mainWorldEval("EVAL_COOKIEBOT_2");
|
|
1203
1202
|
}
|
|
1204
1203
|
async optOut() {
|
|
1205
1204
|
await wait(500);
|
|
@@ -2382,6 +2382,37 @@
|
|
|
2382
2382
|
}
|
|
2383
2383
|
]
|
|
2384
2384
|
},
|
|
2385
|
+
{
|
|
2386
|
+
"name": "hema",
|
|
2387
|
+
"prehideSelectors": [
|
|
2388
|
+
".cookie-modal"
|
|
2389
|
+
],
|
|
2390
|
+
"detectCmp": [
|
|
2391
|
+
{
|
|
2392
|
+
"visible": ".cookie-modal .cookie-accept-btn"
|
|
2393
|
+
}
|
|
2394
|
+
],
|
|
2395
|
+
"detectPopup": [
|
|
2396
|
+
{
|
|
2397
|
+
"visible": ".cookie-modal .cookie-accept-btn"
|
|
2398
|
+
}
|
|
2399
|
+
],
|
|
2400
|
+
"optIn": [
|
|
2401
|
+
{
|
|
2402
|
+
"waitForThenClick": ".cookie-modal .cookie-accept-btn"
|
|
2403
|
+
}
|
|
2404
|
+
],
|
|
2405
|
+
"optOut": [
|
|
2406
|
+
{
|
|
2407
|
+
"waitForThenClick": ".cookie-modal .js-cookie-reject-btn"
|
|
2408
|
+
}
|
|
2409
|
+
],
|
|
2410
|
+
"test": [
|
|
2411
|
+
{
|
|
2412
|
+
"eval": "EVAL_HEMA_TEST_0"
|
|
2413
|
+
}
|
|
2414
|
+
]
|
|
2415
|
+
},
|
|
2385
2416
|
{
|
|
2386
2417
|
"name": "hl.co.uk",
|
|
2387
2418
|
"prehideSelectors": [
|
|
@@ -2479,6 +2510,42 @@
|
|
|
2479
2510
|
}
|
|
2480
2511
|
]
|
|
2481
2512
|
},
|
|
2513
|
+
{
|
|
2514
|
+
"name": "ing.de",
|
|
2515
|
+
"runContext": {
|
|
2516
|
+
"urlPattern": "^https://www\\.ing\\.de/"
|
|
2517
|
+
},
|
|
2518
|
+
"cosmetic": true,
|
|
2519
|
+
"prehideSelectors": [
|
|
2520
|
+
"div[slot=\"backdrop\"]"
|
|
2521
|
+
],
|
|
2522
|
+
"detectCmp": [
|
|
2523
|
+
{
|
|
2524
|
+
"exists": "[data-tag-name=\"ing-cc-dialog-frame\"]"
|
|
2525
|
+
}
|
|
2526
|
+
],
|
|
2527
|
+
"detectPopup": [
|
|
2528
|
+
{
|
|
2529
|
+
"visible": "[data-tag-name=\"ing-cc-dialog-frame\"]"
|
|
2530
|
+
}
|
|
2531
|
+
],
|
|
2532
|
+
"optIn": [
|
|
2533
|
+
{
|
|
2534
|
+
"click": [
|
|
2535
|
+
"[data-tag-name=\"ing-cc-dialog-level0\"]",
|
|
2536
|
+
"[data-tag-name=\"ing-cc-button\"][class*=\"accept\"]"
|
|
2537
|
+
]
|
|
2538
|
+
}
|
|
2539
|
+
],
|
|
2540
|
+
"optOut": [
|
|
2541
|
+
{
|
|
2542
|
+
"click": [
|
|
2543
|
+
"[data-tag-name=\"ing-cc-dialog-level0\"]",
|
|
2544
|
+
"[data-tag-name=\"ing-cc-button\"][class*=\"more\"]"
|
|
2545
|
+
]
|
|
2546
|
+
}
|
|
2547
|
+
]
|
|
2548
|
+
},
|
|
2482
2549
|
{
|
|
2483
2550
|
"name": "ionos.de",
|
|
2484
2551
|
"prehideSelectors": [
|
package/dist/autoconsent.cjs.js
CHANGED
|
@@ -702,6 +702,7 @@ var snippets = {
|
|
|
702
702
|
EVAL_EZOIC_0: () => ezCMP.handleAcceptAllClick(),
|
|
703
703
|
EVAL_EZOIC_1: () => !!document.cookie.match(/ezCMPCookieConsent=[^;]+\|2=0\|3=0\|4=0/),
|
|
704
704
|
EVAL_GOOGLE_0: () => !!document.cookie.match(/SOCS=CAE/),
|
|
705
|
+
EVAL_HEMA_TEST_0: () => document.cookie.includes("cookies_rejected=1"),
|
|
705
706
|
EVAL_IUBENDA_0: () => document.querySelectorAll(".purposes-item input[type=checkbox]:not([disabled])").forEach((x) => {
|
|
706
707
|
if (x.checked)
|
|
707
708
|
x.click();
|
|
@@ -1220,9 +1221,7 @@ var Cookiebot = class extends AutoConsentCMPBase {
|
|
|
1220
1221
|
return await this.mainWorldEval("EVAL_COOKIEBOT_1");
|
|
1221
1222
|
}
|
|
1222
1223
|
async detectPopup() {
|
|
1223
|
-
return
|
|
1224
|
-
return this.mainWorldEval("EVAL_COOKIEBOT_2");
|
|
1225
|
-
}, 10, 500);
|
|
1224
|
+
return this.mainWorldEval("EVAL_COOKIEBOT_2");
|
|
1226
1225
|
}
|
|
1227
1226
|
async optOut() {
|
|
1228
1227
|
await wait(500);
|
package/dist/autoconsent.esm.js
CHANGED
|
@@ -677,6 +677,7 @@ var snippets = {
|
|
|
677
677
|
EVAL_EZOIC_0: () => ezCMP.handleAcceptAllClick(),
|
|
678
678
|
EVAL_EZOIC_1: () => !!document.cookie.match(/ezCMPCookieConsent=[^;]+\|2=0\|3=0\|4=0/),
|
|
679
679
|
EVAL_GOOGLE_0: () => !!document.cookie.match(/SOCS=CAE/),
|
|
680
|
+
EVAL_HEMA_TEST_0: () => document.cookie.includes("cookies_rejected=1"),
|
|
680
681
|
EVAL_IUBENDA_0: () => document.querySelectorAll(".purposes-item input[type=checkbox]:not([disabled])").forEach((x) => {
|
|
681
682
|
if (x.checked)
|
|
682
683
|
x.click();
|
|
@@ -1195,9 +1196,7 @@ var Cookiebot = class extends AutoConsentCMPBase {
|
|
|
1195
1196
|
return await this.mainWorldEval("EVAL_COOKIEBOT_1");
|
|
1196
1197
|
}
|
|
1197
1198
|
async detectPopup() {
|
|
1198
|
-
return
|
|
1199
|
-
return this.mainWorldEval("EVAL_COOKIEBOT_2");
|
|
1200
|
-
}, 10, 500);
|
|
1199
|
+
return this.mainWorldEval("EVAL_COOKIEBOT_2");
|
|
1201
1200
|
}
|
|
1202
1201
|
async optOut() {
|
|
1203
1202
|
await wait(500);
|