@duckduckgo/autoconsent 16.26.0 → 16.28.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.
Files changed (63) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +45 -0
  3. package/dist/addon-firefox/compact-rules.json +1 -1
  4. package/dist/addon-firefox/content.bundle.js +28 -3
  5. package/dist/addon-firefox/manifest.json +1 -1
  6. package/dist/addon-firefox/rule-index.json +1 -1
  7. package/dist/addon-firefox/rules.json +1 -1
  8. package/dist/addon-mv3/compact-rules.json +1 -1
  9. package/dist/addon-mv3/content.bundle.js +28 -3
  10. package/dist/addon-mv3/manifest.json +1 -1
  11. package/dist/addon-mv3/rule-index.json +1 -1
  12. package/dist/addon-mv3/rules.json +1 -1
  13. package/dist/autoconsent.cjs.js +28 -3
  14. package/dist/autoconsent.esm.js +28 -3
  15. package/dist/autoconsent.playwright.js +28 -3
  16. package/dist/autoconsent.standalone.js +29 -4
  17. package/dist/types/cmps/base.d.ts +1 -0
  18. package/dist/types/dom-actions.d.ts +1 -0
  19. package/dist/types/rules.d.ts +6 -2
  20. package/dist/types/utils.d.ts +1 -0
  21. package/docs/rule-syntax.md +14 -0
  22. package/lib/cmps/base.ts +7 -0
  23. package/lib/dom-actions.ts +7 -1
  24. package/lib/heuristic-patterns.ts +2 -2
  25. package/lib/rules.ts +9 -2
  26. package/lib/utils.ts +16 -0
  27. package/package.json +1 -1
  28. package/rules/autoconsent/amazon-pay.json +13 -0
  29. package/rules/autoconsent/bbva.json +12 -0
  30. package/rules/autoconsent/complianz-opt-out.json +6 -0
  31. package/rules/autoconsent/deliveroo.json +15 -0
  32. package/rules/autoconsent/ebay.json +34 -0
  33. package/rules/autoconsent/gemini-google-com.json +9 -0
  34. package/rules/autoconsent/justwatch-com.json +1 -1
  35. package/rules/autoconsent/kingrecords-co-jp.json +21 -0
  36. package/rules/autoconsent/paypal-us.json +4 -3
  37. package/rules/autoconsent/pornpics-de.json +1 -1
  38. package/rules/autoconsent/rule34-xxx.json +12 -0
  39. package/rules/autoconsent/sex.com.json +45 -0
  40. package/rules/autoconsent/theguardian.com.json +13 -3
  41. package/rules/autoconsent/twitch.json +27 -12
  42. package/rules/autoconsent/wpconsent.json +30 -0
  43. package/rules/autoconsent/xhamster-eu.json +3 -1
  44. package/rules/compact-rules.json +1 -1
  45. package/rules/rule-index.json +1 -1
  46. package/rules/rules.json +1 -1
  47. package/tests/amazon-pay.spec.ts +3 -0
  48. package/tests/bbva.spec.ts +4 -0
  49. package/tests/complianz-opt-out.spec.ts +5 -0
  50. package/tests/deliveroo.spec.ts +3 -0
  51. package/tests/gemini-google-com.spec.ts +5 -0
  52. package/tests/justwatch-com.spec.ts +1 -1
  53. package/tests/kingrecords-co-jp.spec.ts +3 -0
  54. package/tests/paypal-us.spec.ts +4 -0
  55. package/tests/pornpics-de.spec.ts +1 -1
  56. package/tests/rule34-xxx.spec.ts +6 -0
  57. package/tests/sex.com.spec.ts +3 -0
  58. package/tests/wpconsent.spec.ts +5 -0
  59. package/tests-wtr/dom-actions/dom-actions.stylesheet.html +13 -0
  60. package/tests-wtr/dom-actions/dom-actions.stylesheet.ts +26 -0
  61. package/tests-wtr/heuristics/heuristics-utils.test.ts +6 -0
  62. package/tests-wtr/utils/append-stylesheet-rule.html +11 -0
  63. package/tests-wtr/utils/append-stylesheet-rule.test.ts +29 -0
package/AGENTS.md CHANGED
@@ -109,7 +109,7 @@ shadow root or same-origin iframe.
109
109
  - **`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.
110
110
  - 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
111
  - Prefer DOM-based steps when possible — `eval` steps are a last resort.
112
- - Set `minimumRuleStepVersion: 2` if using `removeClass`, `setStyle`, or `addStyle`.
112
+ - Set `minimumRuleStepVersion: 2` if using `removeClass`, `setStyle`, or `addStyle`; set `minimumRuleStepVersion: 3` if using `stylesheet`.
113
113
  - Prefer `cookieContains` in `test` when the CMP stores consent in cookies.
114
114
  - Use `npm run create-rule` to scaffold a new rule and a spec file.
115
115
  - Code comments: keep them brief (max one line), explain why not what, no references to specific sites in library code
package/CHANGELOG.md CHANGED
@@ -1,3 +1,48 @@
1
+ # v16.28.0 (Wed Aug 26 2026)
2
+
3
+ #### Rules
4
+
5
+ - Rule update: Cookie popup on alexjoneslive.com [#1517](https://github.com/duckduckgo/autoconsent/pull/1517) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
6
+ - Rule update: popup on deliveroo.co.uk [#1520](https://github.com/duckduckgo/autoconsent/pull/1520) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov) [@daxtheduck](https://github.com/daxtheduck))
7
+ - Rule update: bbva [#1515](https://github.com/duckduckgo/autoconsent/pull/1515) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
8
+ - Rule update: Cookie Popup on pay.amazon.co.jp [#1518](https://github.com/duckduckgo/autoconsent/pull/1518) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
9
+ - Rule update: Cookie popup shown on ebay.com [#1516](https://github.com/duckduckgo/autoconsent/pull/1516) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
10
+ - Fix Guardian scroll lock after back navigation [#1464](https://github.com/duckduckgo/autoconsent/pull/1464) ([@cursoragent](https://github.com/cursoragent) [@claude](https://github.com/claude) [@sammacbeth](https://github.com/sammacbeth))
11
+
12
+ #### Authors: 5
13
+
14
+ - Claude ([@claude](https://github.com/claude))
15
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
16
+ - Dax ([@daxtheduck](https://github.com/daxtheduck))
17
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
18
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
19
+
20
+ ---
21
+
22
+ # v16.27.0 (Tue Aug 25 2026)
23
+
24
+ #### Rules
25
+
26
+ - Rule update: CPM feedback: justwatch.com [#1514](https://github.com/duckduckgo/autoconsent/pull/1514) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
27
+ - Rule update: Rule fix for Site Breakage: paypal.com (2026-08-15) [#1506](https://github.com/duckduckgo/autoconsent/pull/1506) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
28
+ - Rule update: kingrecords-co-jp [#1507](https://github.com/duckduckgo/autoconsent/pull/1507) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
29
+ - Rule update: sex.com [#1508](https://github.com/duckduckgo/autoconsent/pull/1508) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
30
+ - Rule update: ddg_ios (ase) CPM magic report: www.ecb.europa.eu [#1509](https://github.com/duckduckgo/autoconsent/pull/1509) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
31
+ - Rule update: ddg_android (eun) CPM magic report: www.thefoxandpheasant.com [#1510](https://github.com/duckduckgo/autoconsent/pull/1510) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
32
+ - Rule update: CPM crawl #37: pornpics.com [#1511](https://github.com/duckduckgo/autoconsent/pull/1511) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
33
+ - Rule update: Cookie popup on gemini.google.com [#1513](https://github.com/duckduckgo/autoconsent/pull/1513) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
34
+ - massage xhamster rule [#1512](https://github.com/duckduckgo/autoconsent/pull/1512) ([@muodov](https://github.com/muodov))
35
+ - Rule update: rule34-xxx [#1496](https://github.com/duckduckgo/autoconsent/pull/1496) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
36
+ - Rule update: Cookie popup on twitch.tv [#1504](https://github.com/duckduckgo/autoconsent/pull/1504) ([@cursoragent](https://github.com/cursoragent) [@daxtheduck](https://github.com/daxtheduck))
37
+
38
+ #### Authors: 3
39
+
40
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
41
+ - Dax ([@daxtheduck](https://github.com/daxtheduck))
42
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
43
+
44
+ ---
45
+
1
46
  # v16.26.0 (Mon Aug 24 2026)
2
47
 
3
48
  #### Rules