@duckduckgo/autoconsent 14.80.0 → 14.81.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.md +2 -0
- package/CHANGELOG.md +18 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/package.json +1 -1
- package/rules/autoconsent/edpb-edps.json +35 -0
- package/rules/autoconsent/justgiving.json +46 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/edpb-edps.spec.ts +6 -0
- package/tests/justgiving.spec.ts +3 -0
package/AGENTS.md
CHANGED
|
@@ -106,9 +106,11 @@ shadow root or same-origin iframe.
|
|
|
106
106
|
- When verifying a rule, **look at the screenshots** on top of the API results — sometimes a rule reports success, but the popup is not actually handled - a screenshot will detect this.
|
|
107
107
|
- **Paywalls do not need to be handled.** If the website presents the choice to pay or agree to cookies, the correct solution is to disable the feature on that site, so no code changes required in this case.
|
|
108
108
|
- If the pop-up has an explicit "reject"-like button, you should first consider why HEURISTIC rule didn't handle it. A fix to the heuristic rule is always preferred to a new rule, as long as it doesn't cause potential false-positives on other sites.
|
|
109
|
+
- **Watch out for race conditions**. A common pitfall is that a rule starts clicking before JS handlers are ready. If you detect this, add an appropriate wait step before the click, preferably based on a specific DOM state. Unconditional `wait` is a LAST RESORT because it leads to a poor UX.
|
|
109
110
|
- **selfTests are optional.** It is okay to NOT have a self-test, or have it failing as long as the popup is handled correctly. Confirm this with screenshots.
|
|
110
111
|
- If you cover a new CMP or a new flavor of the existing CMP, ALWAYS try to look for more examples of that case, and add to the spec file.
|
|
111
112
|
- `detectCmp` and `detectPopup` must be fast. Do NOT use waiting steps — the engine retries automatically.
|
|
113
|
+
- Keep regexes in `urlPattern` as simple as possible to avoid unnecessary performance overhead.
|
|
112
114
|
- **`prehideSelectors` do not affect autoconsent visibility checks.** Prehide selectors are injected early to prevent flicker, and are intentionally implemented using opacity, which hides elements from the user, but not from built-in steps such as `waitForVisible` and `visible`. That said, _prehide selectors should be narrow_: overly broad selectors (e.g. `body`) could hide the entire page.
|
|
113
115
|
- Prefer DOM-based steps when possible — `eval` steps are a last resort.
|
|
114
116
|
- Set `minimumRuleStepVersion: 2` if using `removeClass`, `setStyle`, or `addStyle`.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# v14.81.0 (Thu May 14 2026)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Add justgiving.com cookie popup rule [#1347](https://github.com/duckduckgo/autoconsent/pull/1347) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
|
|
6
|
+
- Add edpb-edps rule for EDPB/EDPS cookie banner [#1346](https://github.com/duckduckgo/autoconsent/pull/1346) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
|
|
7
|
+
|
|
8
|
+
#### 🐛 Bug Fix
|
|
9
|
+
|
|
10
|
+
- AI harness tweaks [#1348](https://github.com/duckduckgo/autoconsent/pull/1348) ([@muodov](https://github.com/muodov))
|
|
11
|
+
|
|
12
|
+
#### Authors: 2
|
|
13
|
+
|
|
14
|
+
- Cursor Agent ([@cursoragent](https://github.com/cursoragent))
|
|
15
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
1
19
|
# v14.80.0 (Wed May 13 2026)
|
|
2
20
|
|
|
3
21
|
#### 🚀 Enhancement
|