fix(zhihu): remove noscript tags to prevent duplicate images #15

Merged
starmen1265 merged 1 commits from fix/ci-deploy-reset into main 2026-03-16 15:09:57 +08:00
Owner

Zhihu HTML structure includes noscript fallback images:

After fixing lazy-load (replacing src with data-actualsrc), both imgs
have real URLs, causing duplicates. The fix removes noscript tags before
processing img elements.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Zhihu HTML structure includes noscript fallback images: <figure><img data-actualsrc=...><noscript><img src=...></noscript></figure> After fixing lazy-load (replacing src with data-actualsrc), both imgs have real URLs, causing duplicates. The fix removes noscript tags before processing img elements. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
starmen1265 added 1 commit 2026-03-16 15:09:49 +08:00
fix(zhihu): remove noscript tags to prevent duplicate images
PR Test / lint (pull_request) Successful in 1s
f05c93d2b1
Zhihu HTML structure includes noscript fallback images:
<figure><img data-actualsrc=...><noscript><img src=...></noscript></figure>

After fixing lazy-load (replacing src with data-actualsrc), both imgs
have real URLs, causing duplicates. The fix removes noscript tags before
processing img elements.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
starmen1265 merged commit ed1de1a5b1 into main 2026-03-16 15:09:57 +08:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starmen1265/kb-skills#15