From 8a87c56e86adfc679880de24255d3d201ac91130 Mon Sep 17 00:00:00 2001 From: joshrmcdaniel <80354972+joshrmcdaniel@users.noreply.github.com> Date: Sat, 30 May 2026 12:27:37 -0500 Subject: [PATCH 1/6] add css support, fix scriptlets --- privaxy/src/resources/procedural_cosmetics.js | 328 ++++++++++++++++++ privaxy/src/server/blocker.rs | 26 +- privaxy/src/server/proxy/html_rewriter.rs | 74 +++- privaxy/src/server/proxy/serve.rs | 17 +- 4 files changed, 423 insertions(+), 22 deletions(-) create mode 100644 privaxy/src/resources/procedural_cosmetics.js diff --git a/privaxy/src/resources/procedural_cosmetics.js b/privaxy/src/resources/procedural_cosmetics.js new file mode 100644 index 00000000..5be040f7 --- /dev/null +++ b/privaxy/src/resources/procedural_cosmetics.js @@ -0,0 +1,328 @@ +/* + * Privaxy in-page procedural cosmetic filtering shim. + * + * The proxy can apply plain-CSS cosmetic rules server-side by injecting a + *