From 8a89653565fe5d522a152f8571a536af27c9d623 Mon Sep 17 00:00:00 2001 From: Michal Date: Tue, 25 Aug 2026 11:42:35 +0100 Subject: [PATCH] rules: commitstrip matches alignnone posts too The community rule pins the class to 'aligncenter size-full wp-image-'. Posts vary between aligncenter and alignnone, so it matched some articles and fell through to Readability on the rest -- which on a comic means the strip vanishes and the article still looks plausible. Found by the stale-rule diagnostic against live data: 8 stored articles carried "STALE" while a hand-tested article of the other alignment extracted fine. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_011sSJdftQx5bW5HZHgUKF3i --- site_config/custom/commitstrip.com.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 site_config/custom/commitstrip.com.txt diff --git a/site_config/custom/commitstrip.com.txt b/site_config/custom/commitstrip.com.txt new file mode 100644 index 0000000..3fd085d --- /dev/null +++ b/site_config/custom/commitstrip.com.txt @@ -0,0 +1,11 @@ +# The community rule pins the class to 'aligncenter size-full wp-image-', but +# posts vary between aligncenter and alignnone, so it matches on some articles +# and silently falls through to Readability on others -- which on a comic means +# the strip disappears. Match the wp-image- marker instead, which every uploaded +# strip carries regardless of alignment. +body: //img[contains(@class, 'wp-image-')] + +autodetect_on_failure: no + +test_url: https://www.commitstrip.com/2022/02/22/security-questionnaire/ +test_url: https://www.commitstrip.com/2022/12/09/a-whole-new-world/