@duckduckgo/autoconsent 10.12.0 → 10.12.1
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 +14 -0
- package/api.md +11 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +29 -0
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +29 -0
- package/dist/autoconsent.playwright.js +1 -1
- package/dist/autoconsent.unit.js +29 -0
- package/package.json +1 -1
- package/rules/autoconsent/netbeat-de.json +27 -0
- package/rules/rules.json +29 -0
- package/tests/netbeat-de.spec.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# v10.12.1 (Mon Jul 29 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Add netbeat.de [#471](https://github.com/duckduckgo/autoconsent/pull/471) ([@seia-soto](https://github.com/seia-soto) [@muodov](https://github.com/muodov))
|
|
6
|
+
- Update configuration object in `api.md` [#469](https://github.com/duckduckgo/autoconsent/pull/469) ([@seia-soto](https://github.com/seia-soto) [@muodov](https://github.com/muodov))
|
|
7
|
+
|
|
8
|
+
#### Authors: 2
|
|
9
|
+
|
|
10
|
+
- HoJeong Go ([@seia-soto](https://github.com/seia-soto))
|
|
11
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
1
15
|
# v10.12.0 (Tue Jul 23 2024)
|
|
2
16
|
|
|
3
17
|
#### 🚀 Enhancement
|
package/api.md
CHANGED
|
@@ -6,12 +6,22 @@ Most of autoconsent logic is contained in a content script that should be inject
|
|
|
6
6
|
```typescript
|
|
7
7
|
const consent = new AutoConsent( // make sure not to leak anything to the page globals
|
|
8
8
|
chrome.runtime.sendMessage, // pass a function to send messages to the background worker
|
|
9
|
-
{ // optionally, pass a config object
|
|
9
|
+
{ // optionally, pass a config object. See the Typescript definitions in /lib/types.ts for all available options
|
|
10
10
|
enabled: true,
|
|
11
11
|
autoAction: 'optOut',
|
|
12
12
|
disabledCmps: [],
|
|
13
13
|
enablePrehide: true,
|
|
14
|
+
enableCosmeticRules: true,
|
|
14
15
|
detectRetries: 20,
|
|
16
|
+
isMainWorld: false,
|
|
17
|
+
prehideTimeout: 2000,
|
|
18
|
+
logs: {
|
|
19
|
+
lifecycle: false,
|
|
20
|
+
rulesteps: false,
|
|
21
|
+
evals: false,
|
|
22
|
+
errors: true,
|
|
23
|
+
messages: false,
|
|
24
|
+
},
|
|
15
25
|
},
|
|
16
26
|
{ // optionally, pass JSON rules
|
|
17
27
|
autoconsent: [ ... ],
|
|
@@ -4506,6 +4506,35 @@
|
|
|
4506
4506
|
}
|
|
4507
4507
|
]
|
|
4508
4508
|
},
|
|
4509
|
+
{
|
|
4510
|
+
"name": "netbeat.de",
|
|
4511
|
+
"runContext": {
|
|
4512
|
+
"urlPattern": "^https://(www\\.)?netbeat\\.de/"
|
|
4513
|
+
},
|
|
4514
|
+
"prehideSelectors": [
|
|
4515
|
+
"div#cookieWarning"
|
|
4516
|
+
],
|
|
4517
|
+
"detectCmp": [
|
|
4518
|
+
{
|
|
4519
|
+
"exists": "div#cookieWarning"
|
|
4520
|
+
}
|
|
4521
|
+
],
|
|
4522
|
+
"detectPopup": [
|
|
4523
|
+
{
|
|
4524
|
+
"visible": "div#cookieWarning"
|
|
4525
|
+
}
|
|
4526
|
+
],
|
|
4527
|
+
"optIn": [
|
|
4528
|
+
{
|
|
4529
|
+
"waitForThenClick": "a#btnCookiesAcceptAll"
|
|
4530
|
+
}
|
|
4531
|
+
],
|
|
4532
|
+
"optOut": [
|
|
4533
|
+
{
|
|
4534
|
+
"waitForThenClick": "a#btnCookiesDenyAll"
|
|
4535
|
+
}
|
|
4536
|
+
]
|
|
4537
|
+
},
|
|
4509
4538
|
{
|
|
4510
4539
|
"name": "netflix.de",
|
|
4511
4540
|
"detectCmp": [
|
|
@@ -4506,6 +4506,35 @@
|
|
|
4506
4506
|
}
|
|
4507
4507
|
]
|
|
4508
4508
|
},
|
|
4509
|
+
{
|
|
4510
|
+
"name": "netbeat.de",
|
|
4511
|
+
"runContext": {
|
|
4512
|
+
"urlPattern": "^https://(www\\.)?netbeat\\.de/"
|
|
4513
|
+
},
|
|
4514
|
+
"prehideSelectors": [
|
|
4515
|
+
"div#cookieWarning"
|
|
4516
|
+
],
|
|
4517
|
+
"detectCmp": [
|
|
4518
|
+
{
|
|
4519
|
+
"exists": "div#cookieWarning"
|
|
4520
|
+
}
|
|
4521
|
+
],
|
|
4522
|
+
"detectPopup": [
|
|
4523
|
+
{
|
|
4524
|
+
"visible": "div#cookieWarning"
|
|
4525
|
+
}
|
|
4526
|
+
],
|
|
4527
|
+
"optIn": [
|
|
4528
|
+
{
|
|
4529
|
+
"waitForThenClick": "a#btnCookiesAcceptAll"
|
|
4530
|
+
}
|
|
4531
|
+
],
|
|
4532
|
+
"optOut": [
|
|
4533
|
+
{
|
|
4534
|
+
"waitForThenClick": "a#btnCookiesDenyAll"
|
|
4535
|
+
}
|
|
4536
|
+
]
|
|
4537
|
+
},
|
|
4509
4538
|
{
|
|
4510
4539
|
"name": "netflix.de",
|
|
4511
4540
|
"detectCmp": [
|