fix: 修复iyouport在某些阅读器中图片重复显示问题 (#6007)

Co-authored-by: EsuRt <thusid@outlook.com>
This commit is contained in:
EsuRt 2020-10-29 23:46:00 +08:00 committed by GitHub
parent cdb583b821
commit ace5a1fd0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -9,8 +9,10 @@ const ProcessFeed = async (link) => {
$('.sharedaddy.sd-sharing-enabled').remove();
$('.sharedaddy.sd-block.sd-like.jetpack-likes-widget-wrapper.jetpack-likes-widget-unloaded').remove();
$('.jp-relatedposts').remove();
// $('img').removeAttr('data-lazy-srcset');
// $('img').removeAttr('srcset');
$('.entry-content noscript').remove();
$('.entry-content img').removeAttr('data-lazy-src');
$('.entry-content img').removeAttr('data-lazy-srcset');
$('.entry-content img').removeAttr('srcset');
const fullText = $('.entry-content').html();
return fullText;
};