@duckduckgo/autoconsent 14.97.0 → 15.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 +30 -0
- package/build.sh +3 -0
- package/dist/addon-firefox/background.bundle.js +10 -1
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +157 -40
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/popup.bundle.js +190 -14
- package/dist/addon-firefox/popup.html +93 -8
- package/dist/addon-firefox/rule-index.json +1 -0
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +10 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +157 -40
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +190 -14
- package/dist/addon-mv3/popup.html +93 -8
- package/dist/addon-mv3/rule-index.json +1 -0
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +157 -40
- package/dist/autoconsent.esm.js +157 -40
- package/dist/autoconsent.extra.cjs.js +157 -40
- package/dist/autoconsent.extra.esm.js +157 -40
- package/dist/autoconsent.playwright.js +157 -40
- package/dist/autoconsent.standalone.js +4138 -0
- package/dist/types/cmps/base.d.ts +4 -2
- package/dist/types/cmps/trustarc-top.d.ts +1 -1
- package/dist/types/eval-handler.d.ts +3 -3
- package/dist/types/heuristic-patterns.d.ts +3 -0
- package/dist/types/heuristics.d.ts +4 -7
- package/dist/types/types.d.ts +18 -2
- package/lib/cmps/base.ts +20 -7
- package/lib/cmps/conversant.ts +7 -4
- package/lib/cmps/trustarc-top.ts +1 -1
- package/lib/cmps/uniconsent.ts +4 -4
- package/lib/eval-handler.ts +6 -3
- package/lib/heuristic-patterns.ts +68 -1
- package/lib/heuristics.ts +76 -27
- package/lib/types.ts +20 -2
- package/lib/utils.ts +13 -6
- package/lib/web.ts +3 -1
- package/package.json +1 -1
- package/rules/autoconsent/twitch.json +1 -1
- package/rules/build.ts +4 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index-builder.ts +63 -0
- package/rules/rule-index.json +1 -0
- package/rules/rules.json +1 -1
- package/standalone/content.ts +103 -0
- package/tests-wtr/heuristics/get-actionable-popups.html +16 -0
- package/tests-wtr/heuristics/get-actionable-popups.ts +85 -6
- package/tests-wtr/heuristics/heuristic-cmp.html +69 -0
- package/tests-wtr/heuristics/heuristic-cmp.ts +178 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +96 -28
- package/tests-wtr/lifecycle/find-cmp.html +14 -0
- package/tests-wtr/lifecycle/find-cmp.ts +44 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
# v15.1.0 (Tue Jun 23 2026)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Test extension improvements [#1372](https://github.com/duckduckgo/autoconsent/pull/1372) ([@muodov](https://github.com/muodov))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v15.0.0 (Sat Jun 20 2026)
|
|
14
|
+
|
|
15
|
+
#### 💥 Breaking Change
|
|
16
|
+
|
|
17
|
+
- Handle non-reject buttons in heuristic mode [#1390](https://github.com/duckduckgo/autoconsent/pull/1390) ([@sammacbeth](https://github.com/sammacbeth))
|
|
18
|
+
|
|
19
|
+
#### 🚀 Enhancement
|
|
20
|
+
|
|
21
|
+
- Extend twitch.tv rule to cover m.twitch.tv subdomain [#1402](https://github.com/duckduckgo/autoconsent/pull/1402) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
|
|
22
|
+
|
|
23
|
+
#### Authors: 3
|
|
24
|
+
|
|
25
|
+
- Cursor Agent ([@cursoragent](https://github.com/cursoragent))
|
|
26
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
27
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
1
31
|
# v14.97.0 (Fri Jun 19 2026)
|
|
2
32
|
|
|
3
33
|
#### 🚀 Enhancement
|
package/build.sh
CHANGED
|
@@ -4,6 +4,7 @@ set -ex
|
|
|
4
4
|
ESBUILD="node_modules/.bin/esbuild --bundle"
|
|
5
5
|
|
|
6
6
|
$ESBUILD --format=iife --target=es2021 playwright/content.ts --outfile=dist/autoconsent.playwright.js
|
|
7
|
+
$ESBUILD --format=iife --target=es2021 standalone/content.ts --outfile=dist/autoconsent.standalone.js
|
|
7
8
|
$ESBUILD --format=esm --target=es2021 lib/web-extra.ts --outfile=dist/autoconsent.extra.esm.js
|
|
8
9
|
$ESBUILD --format=cjs --target=es2021 --platform=node lib/web-extra.ts --outfile=dist/autoconsent.extra.cjs.js
|
|
9
10
|
$ESBUILD --format=esm --target=es2021 lib/web.ts --outfile=dist/autoconsent.esm.js
|
|
@@ -25,8 +26,10 @@ cp -r addon/icons dist/addon-mv3/
|
|
|
25
26
|
cp -r addon/icons dist/addon-firefox/
|
|
26
27
|
cp rules/rules.json dist/addon-mv3/
|
|
27
28
|
cp rules/compact-rules.json dist/addon-mv3/
|
|
29
|
+
cp rules/rule-index.json dist/addon-mv3/
|
|
28
30
|
cp rules/rules.json dist/addon-firefox/
|
|
29
31
|
cp rules/compact-rules.json dist/addon-firefox/
|
|
32
|
+
cp rules/rule-index.json dist/addon-firefox/
|
|
30
33
|
cp addon/popup.html dist/addon-mv3/
|
|
31
34
|
cp addon/popup.html dist/addon-firefox/
|
|
32
35
|
cp -r addon/devtools dist/addon-mv3/
|
|
@@ -934,6 +934,14 @@
|
|
|
934
934
|
return parseImpl(url, 5, suffixLookup, options, getEmptyResult());
|
|
935
935
|
}
|
|
936
936
|
|
|
937
|
+
// lib/types.ts
|
|
938
|
+
var PopupHandlingModes = {
|
|
939
|
+
None: -1,
|
|
940
|
+
Reject: 0,
|
|
941
|
+
Tier1: 1,
|
|
942
|
+
Tier2: 2
|
|
943
|
+
};
|
|
944
|
+
|
|
937
945
|
// lib/utils.ts
|
|
938
946
|
function copyObject(data) {
|
|
939
947
|
if (globalThis.structuredClone) {
|
|
@@ -968,7 +976,8 @@
|
|
|
968
976
|
waits: false
|
|
969
977
|
},
|
|
970
978
|
performanceLoggingEnabled: false,
|
|
971
|
-
heuristicPopupSearchTimeout: 100
|
|
979
|
+
heuristicPopupSearchTimeout: 100,
|
|
980
|
+
heuristicMode: PopupHandlingModes.Reject
|
|
972
981
|
};
|
|
973
982
|
const updatedConfig = copyObject(defaultConfig);
|
|
974
983
|
for (const key of Object.keys(defaultConfig)) {
|