@duckduckgo/autoconsent 6.4.1 → 6.4.2
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 +18 -0
- package/dist/addon-firefox/content.bundle.js +1 -0
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +97 -0
- package/dist/addon-mv3/content.bundle.js +1 -0
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +97 -0
- package/dist/autoconsent.cjs.js +1 -0
- package/dist/autoconsent.esm.js +1 -0
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/eval-snippets.ts +1 -0
- package/package.json +1 -1
- package/rules/autoconsent/cookieyes.json +32 -0
- package/rules/autoconsent/yahoo.json +15 -0
- package/rules/rules.json +97 -0
- package/tests/cookieyes.spec.ts +10 -0
- package/tests/yahoo.spec.ts +7 -0
package/lib/eval-snippets.ts
CHANGED
|
@@ -44,6 +44,7 @@ export const snippets = {
|
|
|
44
44
|
EVAL_COOKIEINFORMATION_0: () => CookieInformation.declineAllCategories() || true,
|
|
45
45
|
EVAL_COOKIEINFORMATION_1: () => CookieInformation.submitAllCategories() || true,
|
|
46
46
|
EVAL_COOKIEINFORMATION_2: () => document.cookie.includes('CookieInformationConsent='),
|
|
47
|
+
EVAL_COOKIEYES_0: () => document.cookie.includes('advertisement:no'),
|
|
47
48
|
EVAL_DAILYMOTION_0: () => !!document.cookie.match('dm-euconsent-v2'),
|
|
48
49
|
EVAL_DSGVO_0: () => !document.cookie.includes('sp_dsgvo_cookie_settings'),
|
|
49
50
|
EVAL_DUNELM_0: () => document.cookie.includes('cc_functional=0') && document.cookie.includes('cc_targeting=0'),
|
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cookieyes",
|
|
3
|
+
"prehideSelectors": [".cky-overlay,.cky-consent-container"],
|
|
4
|
+
"detectCmp": [{ "exists": ".cky-consent-container" }],
|
|
5
|
+
"detectPopup": [{ "visible": ".cky-consent-container" }],
|
|
6
|
+
"optIn": [
|
|
7
|
+
{ "waitForThenClick": ".cky-consent-container [data-cky-tag=accept-button]" }
|
|
8
|
+
],
|
|
9
|
+
"optOut": [
|
|
10
|
+
{
|
|
11
|
+
"if": { "exists": ".cky-consent-container [data-cky-tag=reject-button]" },
|
|
12
|
+
"then": [
|
|
13
|
+
{ "waitForThenClick": ".cky-consent-container [data-cky-tag=reject-button]" }
|
|
14
|
+
],
|
|
15
|
+
"else": [
|
|
16
|
+
{
|
|
17
|
+
"if": { "exists": ".cky-consent-container [data-cky-tag=settings-button]" },
|
|
18
|
+
"then": [
|
|
19
|
+
{ "click": ".cky-consent-container [data-cky-tag=settings-button]" },
|
|
20
|
+
{ "waitFor": ".cky-modal-open input[type=checkbox]" },
|
|
21
|
+
{ "click": ".cky-modal-open input[type=checkbox]:checked", "all": true, "optional": true },
|
|
22
|
+
{ "waitForThenClick": ".cky-modal [data-cky-tag=detail-save-button]" }
|
|
23
|
+
],
|
|
24
|
+
"else": [
|
|
25
|
+
{ "hide": [".cky-consent-container,.cky-overlay"] }
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"test": [{ "eval": "EVAL_COOKIEYES_0" }]
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Yahoo",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https://consent\\.yahoo\\.com/v2/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#reject-all"],
|
|
7
|
+
"detectCmp": [{ "exists": "#consent-page" }],
|
|
8
|
+
"detectPopup": [{ "visible": "#consent-page" }],
|
|
9
|
+
"optIn": [
|
|
10
|
+
{ "waitForThenClick": "#consent-page button[value=agree]" }
|
|
11
|
+
],
|
|
12
|
+
"optOut": [
|
|
13
|
+
{ "waitForThenClick": "#consent-page button[value=reject]" }
|
|
14
|
+
]
|
|
15
|
+
}
|
package/rules/rules.json
CHANGED
|
@@ -1496,6 +1496,74 @@
|
|
|
1496
1496
|
}
|
|
1497
1497
|
]
|
|
1498
1498
|
},
|
|
1499
|
+
{
|
|
1500
|
+
"name": "cookieyes",
|
|
1501
|
+
"prehideSelectors": [
|
|
1502
|
+
".cky-overlay,.cky-consent-container"
|
|
1503
|
+
],
|
|
1504
|
+
"detectCmp": [
|
|
1505
|
+
{
|
|
1506
|
+
"exists": ".cky-consent-container"
|
|
1507
|
+
}
|
|
1508
|
+
],
|
|
1509
|
+
"detectPopup": [
|
|
1510
|
+
{
|
|
1511
|
+
"visible": ".cky-consent-container"
|
|
1512
|
+
}
|
|
1513
|
+
],
|
|
1514
|
+
"optIn": [
|
|
1515
|
+
{
|
|
1516
|
+
"waitForThenClick": ".cky-consent-container [data-cky-tag=accept-button]"
|
|
1517
|
+
}
|
|
1518
|
+
],
|
|
1519
|
+
"optOut": [
|
|
1520
|
+
{
|
|
1521
|
+
"if": {
|
|
1522
|
+
"exists": ".cky-consent-container [data-cky-tag=reject-button]"
|
|
1523
|
+
},
|
|
1524
|
+
"then": [
|
|
1525
|
+
{
|
|
1526
|
+
"waitForThenClick": ".cky-consent-container [data-cky-tag=reject-button]"
|
|
1527
|
+
}
|
|
1528
|
+
],
|
|
1529
|
+
"else": [
|
|
1530
|
+
{
|
|
1531
|
+
"if": {
|
|
1532
|
+
"exists": ".cky-consent-container [data-cky-tag=settings-button]"
|
|
1533
|
+
},
|
|
1534
|
+
"then": [
|
|
1535
|
+
{
|
|
1536
|
+
"click": ".cky-consent-container [data-cky-tag=settings-button]"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"waitFor": ".cky-modal-open input[type=checkbox]"
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"click": ".cky-modal-open input[type=checkbox]:checked",
|
|
1543
|
+
"all": true,
|
|
1544
|
+
"optional": true
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"waitForThenClick": ".cky-modal [data-cky-tag=detail-save-button]"
|
|
1548
|
+
}
|
|
1549
|
+
],
|
|
1550
|
+
"else": [
|
|
1551
|
+
{
|
|
1552
|
+
"hide": [
|
|
1553
|
+
".cky-consent-container,.cky-overlay"
|
|
1554
|
+
]
|
|
1555
|
+
}
|
|
1556
|
+
]
|
|
1557
|
+
}
|
|
1558
|
+
]
|
|
1559
|
+
}
|
|
1560
|
+
],
|
|
1561
|
+
"test": [
|
|
1562
|
+
{
|
|
1563
|
+
"eval": "EVAL_COOKIEYES_0"
|
|
1564
|
+
}
|
|
1565
|
+
]
|
|
1566
|
+
},
|
|
1499
1567
|
{
|
|
1500
1568
|
"name": "corona-in-zahlen.de",
|
|
1501
1569
|
"prehideSelectors": [
|
|
@@ -5193,6 +5261,35 @@
|
|
|
5193
5261
|
}
|
|
5194
5262
|
]
|
|
5195
5263
|
},
|
|
5264
|
+
{
|
|
5265
|
+
"name": "Yahoo",
|
|
5266
|
+
"runContext": {
|
|
5267
|
+
"urlPattern": "^https://consent\\.yahoo\\.com/v2/"
|
|
5268
|
+
},
|
|
5269
|
+
"prehideSelectors": [
|
|
5270
|
+
"#reject-all"
|
|
5271
|
+
],
|
|
5272
|
+
"detectCmp": [
|
|
5273
|
+
{
|
|
5274
|
+
"exists": "#consent-page"
|
|
5275
|
+
}
|
|
5276
|
+
],
|
|
5277
|
+
"detectPopup": [
|
|
5278
|
+
{
|
|
5279
|
+
"visible": "#consent-page"
|
|
5280
|
+
}
|
|
5281
|
+
],
|
|
5282
|
+
"optIn": [
|
|
5283
|
+
{
|
|
5284
|
+
"waitForThenClick": "#consent-page button[value=agree]"
|
|
5285
|
+
}
|
|
5286
|
+
],
|
|
5287
|
+
"optOut": [
|
|
5288
|
+
{
|
|
5289
|
+
"waitForThenClick": "#consent-page button[value=reject]"
|
|
5290
|
+
}
|
|
5291
|
+
]
|
|
5292
|
+
},
|
|
5196
5293
|
{
|
|
5197
5294
|
"name": "youporn.com",
|
|
5198
5295
|
"cosmetic": true,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
|
+
|
|
3
|
+
generateCMPTests('cookieyes', [
|
|
4
|
+
'https://www.cookieyes.com/',
|
|
5
|
+
'https://www.primefaces.org/',
|
|
6
|
+
'https://www.undip.ac.id/',
|
|
7
|
+
'https://ttinteractive.com/',
|
|
8
|
+
'https://www.chronofhorse.com/',
|
|
9
|
+
'https://nl.flaminfitness.com/products/30l-tactical-backpack'
|
|
10
|
+
]);
|