@duckduckgo/autoconsent 16.2.0 → 16.4.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/.agents/skills/proxy-testing/scripts/regional-proxy.mjs +4 -1
- package/.github/PULL_REQUEST_TEMPLATE.md +2 -2
- package/.github/dependabot.yml +1 -1
- package/.github/labeler.yml +6 -6
- package/CHANGELOG.md +41 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/devtools/panel.html +5 -0
- package/dist/addon-firefox/devtools/panel.ts +18 -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/devtools/panel.html +5 -0
- package/dist/addon-mv3/devtools/panel.js +12 -0
- package/dist/addon-mv3/devtools/panel.ts +18 -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 +2 -2
- package/docs/puppeteer.md +1 -1
- package/docs/release-notes.md +12 -43
- package/package.json +15 -15
- package/rules/autoconsent/ketch.json +58 -19
- package/rules/autoconsent/msn.json +18 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/scripts/check-pr-release-labels.ts +24 -24
- package/standalone/content.ts +1 -1
- package/tests/ketch.spec.ts +33 -19
- package/tests/msn.spec.ts +5 -0
- package/tests-wtr/lifecycle/find-cmp.ts +2 -2
- package/tests-wtr/web/do-opt-in.test.ts +1 -1
- package/tests-wtr/web/do-opt-out.test.ts +1 -1
- package/tests-wtr/web/do-self-test.test.ts +1 -1
- package/tests-wtr/web/filter-cmps.test.ts +1 -1
- package/tests-wtr/web/receive-message-callback.test.ts +1 -1
- package/tests-wtr/web/update-state.test.ts +1 -1
- package/rules/autoconsent/theverge.json +0 -36
- package/tests/theverge.spec.ts +0 -3
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
* @property {(url: string, region: string) => TestResult} collectResult
|
|
56
56
|
*/
|
|
57
57
|
|
|
58
|
+
/** @typedef {import('../../../../lib/types').Config} Config */
|
|
59
|
+
|
|
58
60
|
/**
|
|
59
61
|
* Primitives the message handler uses to talk to a specific frame's content script.
|
|
60
62
|
* `frameRef` is the isolated world's execution-context uniqueId the message arrived from;
|
|
@@ -140,6 +142,7 @@ export async function injectAutoconsent(page, options = {}) {
|
|
|
140
142
|
const action = 'action' in options ? options.action : 'optOut';
|
|
141
143
|
/** @type {any[]} */
|
|
142
144
|
const received = [];
|
|
145
|
+
/** @type {Partial<Config>} */
|
|
143
146
|
const config = {
|
|
144
147
|
enabled: true,
|
|
145
148
|
autoAction: action,
|
|
@@ -149,7 +152,7 @@ export async function injectAutoconsent(page, options = {}) {
|
|
|
149
152
|
enableCosmeticRules: true,
|
|
150
153
|
enableGeneratedRules: true,
|
|
151
154
|
enableHeuristicDetection: true,
|
|
152
|
-
|
|
155
|
+
heuristicMode: 'tier2',
|
|
153
156
|
// The engine runs in the isolated world; eval snippets are forwarded to the main world.
|
|
154
157
|
isMainWorld: false,
|
|
155
158
|
logs: { lifecycle: true, rulesteps: true, detectionsteps: false, evals: false, errors: true },
|
|
@@ -5,8 +5,8 @@ Task/Issue URL:
|
|
|
5
5
|
<!--
|
|
6
6
|
Don't forget to label the PR.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
Category
|
|
8
|
+
Version labels use the `version:` prefix, for example `version: patch`.
|
|
9
|
+
Category labels use the `category:` prefix, for example `category: rules`.
|
|
10
10
|
Details: https://github.com/duckduckgo/autoconsent/blob/main/docs/release-notes.md
|
|
11
11
|
-->
|
|
12
12
|
|
package/.github/dependabot.yml
CHANGED
package/.github/labeler.yml
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
ai:
|
|
1
|
+
'category: ai':
|
|
2
2
|
- changed-files:
|
|
3
3
|
- any-glob-to-any-file:
|
|
4
4
|
- '.agents/**'
|
|
5
5
|
- 'AGENTS.md'
|
|
6
6
|
- 'CLAUDE.md'
|
|
7
7
|
|
|
8
|
-
ci:
|
|
8
|
+
'category: ci':
|
|
9
9
|
- changed-files:
|
|
10
10
|
- any-glob-to-any-file:
|
|
11
11
|
- '.github/**'
|
|
12
12
|
- 'ci/**'
|
|
13
13
|
- 'scripts/**'
|
|
14
14
|
|
|
15
|
-
dependencies:
|
|
15
|
+
'category: dependencies':
|
|
16
16
|
- changed-files:
|
|
17
17
|
- any-glob-to-any-file:
|
|
18
18
|
- 'package.json'
|
|
19
19
|
- 'package-lock.json'
|
|
20
20
|
|
|
21
|
-
documentation:
|
|
21
|
+
'category: documentation':
|
|
22
22
|
- changed-files:
|
|
23
23
|
- any-glob-to-any-file:
|
|
24
24
|
- 'docs/**'
|
|
25
25
|
|
|
26
|
-
rules:
|
|
26
|
+
'category: rules':
|
|
27
27
|
- changed-files:
|
|
28
28
|
- any-glob-to-any-file:
|
|
29
29
|
- 'rules/**'
|
|
30
30
|
- 'tests/**/*.spec.ts'
|
|
31
31
|
|
|
32
|
-
tests:
|
|
32
|
+
'category: tests':
|
|
33
33
|
- changed-files:
|
|
34
34
|
- any-glob-to-any-file:
|
|
35
35
|
- 'playwright/**'
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
# v16.4.0 (Thu Jul 02 2026)
|
|
2
|
+
|
|
3
|
+
#### Rules
|
|
4
|
+
|
|
5
|
+
- ketch: handle US/CCPA preferences modal with no Reject All [#1391](https://github.com/duckduckgo/autoconsent/pull/1391) ([@cursoragent](https://github.com/cursoragent) [@sammacbeth](https://github.com/sammacbeth) [@muodov](https://github.com/muodov))
|
|
6
|
+
- Add msn.com cookie banner rule [#1418](https://github.com/duckduckgo/autoconsent/pull/1418) ([@cursoragent](https://github.com/cursoragent) [@cursor[bot]](https://github.com/cursor[bot]))
|
|
7
|
+
|
|
8
|
+
#### Test Infrastructure
|
|
9
|
+
|
|
10
|
+
- add performance measuremenet button to devtools [#1417](https://github.com/duckduckgo/autoconsent/pull/1417) ([@muodov](https://github.com/muodov))
|
|
11
|
+
|
|
12
|
+
#### Authors: 4
|
|
13
|
+
|
|
14
|
+
- [@cursor[bot]](https://github.com/cursor[bot])
|
|
15
|
+
- Cursor Agent ([@cursoragent](https://github.com/cursoragent))
|
|
16
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
17
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# v16.3.0 (Wed Jul 01 2026)
|
|
22
|
+
|
|
23
|
+
#### Rules
|
|
24
|
+
|
|
25
|
+
- Remove theverge rule [#1416](https://github.com/duckduckgo/autoconsent/pull/1416) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
|
|
26
|
+
|
|
27
|
+
#### CI / Release Automation
|
|
28
|
+
|
|
29
|
+
- Prefix release note labels [#1415](https://github.com/duckduckgo/autoconsent/pull/1415) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
|
|
30
|
+
|
|
31
|
+
#### AI / Agent Workflow
|
|
32
|
+
|
|
33
|
+
- Clean up some outdated config parameters [#1414](https://github.com/duckduckgo/autoconsent/pull/1414) ([@muodov](https://github.com/muodov))
|
|
34
|
+
|
|
35
|
+
#### Authors: 2
|
|
36
|
+
|
|
37
|
+
- Cursor Agent ([@cursoragent](https://github.com/cursoragent))
|
|
38
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
1
42
|
# v16.2.0 (Tue Jun 30 2026)
|
|
2
43
|
|
|
3
44
|
#### Rules
|