mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 14:07:54 +08:00
fix: 修正微信公众号路由(传送门来源以及CareerEngine来源)中的图片链接 (#4590)
This commit is contained in:
@@ -30,7 +30,12 @@ module.exports = async (ctx) => {
|
||||
|
||||
article('#js_content img').each((index, elem) => {
|
||||
const $elem = article(elem);
|
||||
$elem.attr('referrerpolicy', 'no-referrer');
|
||||
|
||||
const imgSrc = $elem.attr('data-original');
|
||||
if (imgSrc) {
|
||||
const realSrc = imgSrc.replace(/^https:\/\/img.chuansongme.com\//, 'https://mmbiz.qpic.cn/');
|
||||
$elem.attr('src', realSrc);
|
||||
}
|
||||
});
|
||||
|
||||
const single = {
|
||||
|
||||
Reference in New Issue
Block a user