Fetch the full text of The Wall Street Journal articles from the AMP version. I've identified an issue affecting iOS Safari users while reading articles on wsj.com. The font size may appear too large. As a temporary workaround, please use the font adjustment tool in the Safari address bar to increase or decrease the font size, then reset it to the original size. This should fix the issue. This bug is not present on cn.wsj.com. Thank you for your cooperation and understanding.
< Отзив за The Wall Street Journal CN site Full Text Articles
大佬可能暫時沒有時間處理
$preview.replaceWith(data.find('section[subscriptions-section="content"]')
.css('margin-bottom', '5rem')
.css('color', 'var(--primary-text-color)')
.css('font-family', 'var(--article-font-family)')
.css('font-weight', 'var(--article-font-weight)')
.css('line-height', 'calc(27 / 17)')
.css('direction', 'var(--article-direction);')
.prepend($preview.children('div[data-type="image"]')) <===添加这行
);
修改下以支持视频,同时去除残留的广告位
$preview.replaceWith(data.find('section[subscriptions-section="content"]')
.css('margin-bottom', '5rem')
.css('color', 'var(--primary-text-color)')
.css('font-family', 'var(--article-font-family)')
.css('font-weight', 'var(--article-font-weight)')
.css('line-height', 'calc(27 / 17)')
.css('direction', 'var(--article-direction);')
.prepend($preview.children('div.media-layout'))
);
$body.find('.wsj-ad').remove();
每篇文章的第一张图片会被隐藏,请检查,谢谢!