From 54cbc93c630c2a7d2180cabab8b502d62480bd10 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Tue, 19 Nov 2024 19:00:00 +0000 Subject: [PATCH] tool: scrub: implement `interpret_noscript` option, enabled by default This option inlines the contents of `noscript` tags when `scrub` is running with `-scripts`. --- tool/README.md | 1 + tool/hoardy_web/web.py | 16 ++++++++++++++++ tool/hoardy_web/wrr.py | 4 ++++ 3 files changed, 21 insertions(+) diff --git a/tool/README.md b/tool/README.md index c0b6183..97b4fa1 100644 --- a/tool/README.md +++ b/tool/README.md @@ -592,6 +592,7 @@ Compute output values by evaluating expressions `EXPR`s on a given reqres stored - `(+|-)unknown` controls if the data with unknown content types should passed to the output unchanged or censored out (respectively); the default is `+unknown`, which keeps data of unknown content `MIME` types as-is; - `(+|-)(styles|scripts|iepragmas|iframes|prefetches|tracking|navigations)` control which things should be kept in or censored out from `HTML`, `CSS`, and `JavaScript`; i.e. these options control whether `CSS` stylesheets (both separate files and `HTML` tags and attributes), `JavaScript` (both separate files and `HTML` tags and attributes), `HTML` Internet Explorer pragmas, `