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) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011sSJdftQx5bW5HZHgUKF3i
This commit is contained in:
11
site_config/custom/commitstrip.com.txt
Normal file
11
site_config/custom/commitstrip.com.txt
Normal file
@@ -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/
|
||||
Reference in New Issue
Block a user