From 1cbb6fccf0f52fd8baecf6f222fa53b5ff9fe2d0 Mon Sep 17 00:00:00 2001 From: Rebecca Date: Wed, 29 Oct 2025 15:16:03 +0000 Subject: [PATCH] Fixed minor issue in configuration docs The docs show an example for adding domain filtering for configuration options. However the example only matches the root of a domain rather than all pages on a domain which is for example, the default case when using the `tsh` shortcut to disable/enable javascript on a page. --- doc/help/configuring.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/help/configuring.asciidoc b/doc/help/configuring.asciidoc index a1acc9d47..55b1f1bfd 100644 --- a/doc/help/configuring.asciidoc +++ b/doc/help/configuring.asciidoc @@ -179,7 +179,7 @@ customizable for a given <>. [source,python] ---- -config.set('content.images', False, '*://example.com/') +config.set('content.images', False, '*://example.com/*') ---- Alternatively, you can use `with config.pattern(...) as p:` to get a shortcut @@ -187,7 +187,7 @@ similar to `c.` which is scoped to the given domain: [source,python] ---- -with config.pattern('*://example.com/') as p: +with config.pattern('*://example.com/*') as p: p.content.images = False ----