The Wall Street Journal CN site Full Text Articles

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

Ερώτηση/σχόλιο

§
Δημοσιεύτηκε: 20/05/2024

每篇文章的第一张图片会被隐藏,请检查,谢谢!

§
Δημοσιεύτηκε: 13/06/2024

大佬可能暫時沒有時間處理

dkf
§
Δημοσιεύτηκε: 13/07/2024

$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"]')) <===添加这行
);

dkf
§
Δημοσιεύτηκε: 26/07/2024

修改下以支持视频,同时去除残留的广告位

$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();

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.