feat: remove referrerpolicy in routes

This commit is contained in:
DIYgod 2019-08-28 14:38:19 +08:00
parent a34b9ae542
commit 9a3bea3525
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
181 changed files with 213 additions and 220 deletions

View File

@ -73,7 +73,7 @@ Firstly, add a .js file for the new route in [/lib/router.js](https://github.com
// the article title
title: item.title,
// the article content
description: `${item.desc}<br><img referrerpolicy="no-referrer" src="${item.pic}">`,
description: `${item.desc}<br><img src="${item.pic}">`,
// the article publish time
pubDate: new Date(item.time * 1000).toUTCString(),
// the article link

View File

@ -82,7 +82,7 @@ sidebar: auto
// 文章标题
title: item.title,
// 文章正文
description: `${item.desc}<br><img referrerpolicy="no-referrer" src="${item.pic}">`,
description: `${item.desc}<br><img src="${item.pic}">`,
// 文章发布时间
pubDate: new Date(item.time * 1000).toUTCString(),
// 文章链接
@ -141,7 +141,7 @@ sidebar: auto
description: `作者:${item
.find('.usr-pic a')
.last()
.text()}<br>描述:${item.find('.content p').text()}<br><img referrerpolicy="no-referrer" src="${itemPicUrl}">`,
.text()}<br>描述:${item.find('.content p').text()}<br><img src="${itemPicUrl}">`,
link: item.find('.title a').attr('href'),
};
})

View File

@ -17,7 +17,7 @@ module.exports = async (ctx) => {
.find('h3 > a')
.text()
.trim(),
description: `<img referrerpolicy="no-referrer" src="${$(item)
description: `<img src="${$(item)
.find('img')
.attr('src')}" /> <br>
${$(item)

View File

@ -6,7 +6,7 @@ const ProcessFeed = (data) => {
const cover = $('meta[property="og:image"]');
if (cover.length > 0) {
$(`<img referrerpolicy="no-referrer" src=${cover[0].attribs.content}>`).insertBefore(content[0].firstChild);
$(`<img src=${cover[0].attribs.content}>`).insertBefore(content[0].firstChild);
}
// remove useless DOMs

View File

@ -33,7 +33,7 @@ module.exports = async (ctx) => {
return {
title: `${video.episodeName}-${video.newTitle}`,
description: `<img referrerpolicy="no-referrer" src="${video.image}">`,
description: `<img src="${video.image}">`,
link: `http://www.acfun.cn/bangumi/ab${id}_${video.groupId}_${video.id}`,
pubDate: new Date(video.onlineTime).toUTCString(),
};

View File

@ -34,7 +34,7 @@ module.exports = async (ctx) => {
return {
title: itemTitle,
description: `<img referrerpolicy="no-referrer" src="${itemImg}">`,
description: `<img src="${itemImg}">`,
link: host + itemUrl,
pubDate: new Date(itemDate).toUTCString(),
};

View File

@ -5,7 +5,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: anime.title,
link: `https://ani.gamer.com.tw/animeRef.php?sn=${anime.anime_sn}`,
description: `<img referrerpolicy="no-referrer" src="${anime.cover}"> ` + anime.content.trim(),
description: `<img src="${anime.cover}"> ` + anime.content.trim(),
item: anime.volumes[0].map((item) => ({
title: `${anime.title}${item.volume}`,
link: `https://ani.gamer.com.tw/animeVideo.php?sn=${item.video_sn}`,

View File

@ -59,7 +59,7 @@ module.exports = async (ctx) => {
description = detail.content;
} else {
const image = detail.p_original_path;
description = `<br><img src="${image}" referrerpolicy="no-referrer"/><br>`;
description = `<br><img src="${image}"><br>`;
}
return description;
});

View File

@ -13,7 +13,7 @@ module.exports = async (ctx) => {
img.searchParams.delete('w'); // get full resolution icon
ctx.state.data = {
title: $('.ver-top-h1').text(),
description: `<img referrerpolicy="no-referrer" src="${img.href}"> ` + $('.ver-top-title>h2').text(),
description: `<img src="${img.href}"> ` + $('.ver-top-title>h2').text(),
link: decodeURI(link),
item: $('.ver li')
.toArray()

View File

@ -19,7 +19,7 @@ module.exports = async (ctx) => {
item: response.data.data.map((item) => ({
title: `${item.price === '0.00' ? '免费' : '降价'}」-「${item.kind === '1' ? 'macOS' : 'iOS'}${item.name}`,
description: `
<img referrerpolicy="no-referrer" src="${item.icon.replace('512x512bb', '256x256bb')}"/>
<img src="${item.icon.replace('512x512bb', '256x256bb')}"/>
<br/>
原价¥${item.original_price} -> 现价¥${item.price}
<br/>

View File

@ -12,7 +12,7 @@ module.exports = async (ctx) => {
item: data.map((item) => ({
title: `${item.discount_info[0].discounted_price === '0.00' ? '免费' : '降价'}${item.app.name}`,
description: `
<img referrerpolicy="no-referrer" src="${item.app.icon.image}"/>
<img src="${item.app.icon.image}"/>
<br/>
原价¥${item.discount_info[0].original_price} -> 现价¥${item.discount_info[0].discounted_price}
<br/>

View File

@ -18,7 +18,7 @@ module.exports = async (ctx) => {
return {
title: item.find('h2').text(),
description: `
<img referrerpolicy="no-referrer" src="${url.resolve(link, item.find('img').attr('src'))}"/>
<img src="${url.resolve(link, item.find('img').attr('src'))}"/>
<br/>
${$(item.find('td')[1])
.children()

View File

@ -17,7 +17,7 @@ module.exports = async (ctx) => {
item: [
{
title: `${data.namena}实时空气质量(AQI)${data.utimecn}`,
description: `${data.infocn}<br>风力:<b>${data.cwind[0]}</b>级<br>AQI:<b>${data.aqi}</b><br><img referrerpolicy="no-referrer" src="${data.wgt}">`,
description: `${data.infocn}<br>风力:<b>${data.cwind[0]}</b>级<br>AQI:<b>${data.aqi}</b><br><img src="${data.wgt}">`,
pubDate: new Date(data.time * 1000).toUTCString(),
guid: data.time,
link: `https://aqicn.org/city/${data.ids.path}`,

View File

@ -37,7 +37,7 @@ module.exports = async (ctx) => {
description: 'All the Flight Deals',
item: data.map((item) => ({
title: `[${item.dateRanges[0] ? dayjs(item.dateRanges[0].start).format('YYYY MMM DD') + ' to ' + dayjs(item.dateRanges[0].end).format('YYYY MMM DD') : ''}] ${item.title}`,
description: `<img referrerpolicy="no-referrer" src="https://alltheflightdeals.com/assets/cities/${item.cityPairs[0].destinationCity.id}.jpg" alt="${item.cityPairs[0].destination.city},${item.cityPairs[0].destination.countryName}"> <br><table><tbody><tr><th align="left" style="border: 1px solid black;">From</th><th align="left" style="border: 1px solid black;">To</th><th align="left" style="border: 1px solid black;">Price</th></tr><tr><td style="border: 1px solid black;"><b>${item.cityPairs[0].origin.iata}</b>, ${item.cityPairs[0].origin.city}, ${item.cityPairs[0].origin.countryName}</td><td style="border: 1px solid black;"><b>${item.cityPairs[0].destination.iata}</b>, ${item.cityPairs[0].destination.city}, ${item.cityPairs[0].destination.countryName}</td><td style="border: 1px solid black;">${item.currency} ${item.price}</td></tr></tbody></table>`,
description: `<img src="https://alltheflightdeals.com/assets/cities/${item.cityPairs[0].destinationCity.id}.jpg" alt="${item.cityPairs[0].destination.city},${item.cityPairs[0].destination.countryName}"> <br><table><tbody><tr><th align="left" style="border: 1px solid black;">From</th><th align="left" style="border: 1px solid black;">To</th><th align="left" style="border: 1px solid black;">Price</th></tr><tr><td style="border: 1px solid black;"><b>${item.cityPairs[0].origin.iata}</b>, ${item.cityPairs[0].origin.city}, ${item.cityPairs[0].origin.countryName}</td><td style="border: 1px solid black;"><b>${item.cityPairs[0].destination.iata}</b>, ${item.cityPairs[0].destination.city}, ${item.cityPairs[0].destination.countryName}</td><td style="border: 1px solid black;">${item.currency} ${item.price}</td></tr></tbody></table>`,
pubDate: new Date(item.createdAt),
guid: item.id,
link: item.url,

View File

@ -49,7 +49,7 @@ module.exports = async (ctx) => {
let images = '';
$('.fpa-image-overlay img').each((i, e) => {
images += `<img referrerpolicy="no-referrer" src='${$(e).attr('data-src')}'/><br/>`;
images += `<img src='${$(e).attr('data-src')}'/><br/>`;
});
const description = keyFacts + images + $('meta[name="og:description"]').attr('content');

View File

@ -18,7 +18,7 @@ module.exports = async (ctx) => {
return {
title: `${item.find('.title').text()}-${item.find('.date').text()}`,
description: `<img referrerpolicy="no-referrer" src="${item.find('.thumb-image img').attr('src')}">`,
description: `<img src="${item.find('.thumb-image img').attr('src')}">`,
link: item.find('.more a').attr('href'),
};
})

View File

@ -38,7 +38,7 @@ module.exports = async (ctx) => {
const link = `http://bangumi.tv/subject/${bgm.bgm_id}`;
const id = `${link}#${new Intl.DateTimeFormat('zh-CN').format(updated)}`;
const image = `<img referrerpolicy="no-referrer" src=${bgm.image} />`;
const image = `<img src=${bgm.image} />`;
const html =
image +
'<ul>' +

View File

@ -17,7 +17,7 @@ module.exports = async (subjectID) => {
description: epsInfo.summary,
item: activeEps.reverse().map((e) => ({
title: `ep.${e.sort} ${e.name_cn}`,
description: `<img referrerpolicy="no-referrer" src="${epsInfo.images.common}" alt="ep.${e.sort} ${e.name_cn}"><p>${e.desc.replace(/\n+/g, '<br>')}</p>`,
description: `<img src="${epsInfo.images.common}" alt="ep.${e.sort} ${e.name_cn}"><p>${e.desc.replace(/\n+/g, '<br>')}</p>`,
pubDate: new Date(e.airdate).toUTCString(),
guid: e.id,
link: e.url,

View File

@ -6,12 +6,9 @@ const ProcessImage = ($, e, c) => {
// handle cover image and lazy-loading images
if (img[0].attribs.src) {
message = `<figure><img referrerpolicy="no-referrer" alt='${img[0].attribs.alt ? img[0].attribs.alt : ''}' src='${img[0].attribs.src.replace(/(?<=\/news\/).*?(?=\/cpsprodpb)/, '600')}'><br><figcaption>`;
message = `<figure><img alt='${img[0].attribs.alt ? img[0].attribs.alt : ''}' src='${img[0].attribs.src.replace(/(?<=\/news\/).*?(?=\/cpsprodpb)/, '600')}'><br><figcaption>`;
} else {
message = `<figure><img referrerpolicy="no-referrer" alt='${img[0].attribs['data-alt'] ? img[0].attribs['data-alt'] : ''}' src='${img[0].attribs['data-src'].replace(
/(?<=\/news\/).*?(?=\/cpsprodpb)/,
'600'
)}'><br><figcaption>`;
message = `<figure><img alt='${img[0].attribs['data-alt'] ? img[0].attribs['data-alt'] : ''}' src='${img[0].attribs['data-src'].replace(/(?<=\/news\/).*?(?=\/cpsprodpb)/, '600')}'><br><figcaption>`;
}
// add image caption
@ -97,7 +94,7 @@ const ProcessFeed = ($, link) => {
if (cover.length > 0) {
// there is a cover image
message = `<br><img referrerpolicy="no-referrer" src='${cover[0].attribs.src}'>` + message;
message = `<br><img src='${cover[0].attribs.src}'>` + message;
}
$(message).insertAfter(content[0].lastChild);

View File

@ -22,7 +22,7 @@ module.exports = async (ctx) => {
data.articles &&
data.articles.map((item) => ({
title: item.title,
description: `${item.summary}<br><img referrerpolicy="no-referrer" src="${item.image_urls[0]}">`,
description: `${item.summary}<br><img src="${item.image_urls[0]}">`,
pubDate: new Date(item.publish_time * 1000).toUTCString(),
link: `https://www.bilibili.com/read/cv${item.id}`,
})),

View File

@ -20,7 +20,7 @@ module.exports = async (ctx) => {
const title = item.title;
const link = audio + item.statistic.sid;
const author = item.author;
const description = item.intro + `<br><img referrerpolicy="no-referrer" src="${item.cover}">`;
const description = item.intro + `<br><img src="${item.cover}">`;
const single = {
title: title,

View File

@ -28,7 +28,7 @@ module.exports = async (ctx) => {
data.mediaInfo.episodes &&
data.mediaInfo.episodes.reverse().map((item) => ({
title: `${item.index}${item.index_title}`,
description: `更新时间:${item.pub_real_time} <img referrerpolicy="no-referrer" src="${item.cover}@320w_200h">`,
description: `更新时间:${item.pub_real_time} <img src="${item.cover}@320w_200h">`,
pubDate: new Date(item.pub_real_time).toUTCString(),
link: `https://www.bilibili.com/bangumi/play/ep${item.ep_id}`,
})),

View File

@ -21,7 +21,7 @@ module.exports = async (ctx) => {
description: `${name} 的 bilibili 投币视频`,
item: data.map((item) => ({
title: item.title,
description: `${item.desc}<br><img referrerpolicy="no-referrer" src="${item.pic}">`,
description: `${item.desc}<br><img src="${item.pic}">`,
pubDate: new Date(item.time * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
})),

View File

@ -27,11 +27,11 @@ module.exports = async (ctx) => {
let imgHTML = '';
if (data.pictures) {
for (let i = 0; i < data.pictures.length; i++) {
imgHTML += `<img referrerpolicy="no-referrer" src="${data.pictures[i].img_src}">`;
imgHTML += `<img src="${data.pictures[i].img_src}">`;
}
}
if (data.pic) {
imgHTML += `<img referrerpolicy="no-referrer" src="${data.pic}">`;
imgHTML += `<img src="${data.pic}">`;
}
// link

View File

@ -27,7 +27,7 @@ module.exports = async (ctx) => {
const item = {
title: card_data.title,
description: `${card_data.desc}<br><img referrerpolicy="no-referrer" src="${card_data.pic}">`,
description: `${card_data.desc}<br><img src="${card_data.pic}">`,
pubDate: new Date(card_data.pubdate * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${card_data.aid}`,
author: card.desc.user_profile.info.uname,

View File

@ -35,7 +35,7 @@ module.exports = async (ctx) => {
data &&
data.map((item) => ({
title: item.title,
description: `${item.mark}<br><img referrerpolicy="no-referrer" src="${item.cover_url}">`,
description: `${item.mark}<br><img src="${item.cover_url}">`,
pubDate: new Date(item.ctime.replace(' ', 'T') + '+08:00').toUTCString(),
link: item.announce_link ? item.announce_link : `https://link.bilibili.com/p/eden/news#/newsdetail?id=${item.id}`,
})),

View File

@ -18,7 +18,7 @@ module.exports = async (ctx) => {
link: `https://mall.bilibili.com/list.html?ip=${id}`,
item: data.list.map((item) => ({
title: item.name,
description: `${item.name}<br>${item.brief}<br>¥${item.price}<br><img referrerpolicy="no-referrer" src="https:${item.itemsImg}">`,
description: `${item.name}<br>${item.brief}<br>¥${item.price}<br><img src="https:${item.itemsImg}">`,
link: `https://mall.bilibili.com/detail.html?itemsId=${item.itemsId}`,
})),
};

View File

@ -21,9 +21,7 @@ module.exports = async (ctx) => {
link: 'https://mall.bilibili.com/date.html?page=new',
item: items.map((item) => ({
title: item.name,
description: `${item.name}<br>${item.priceDesc ? `${item.pricePrefix}${item.priceSymbol}${item.priceDesc[0]}` : ''}<br><img referrerpolicy="no-referrer" src="https:${item.img}"><br><a href="${
item.itemUrl
}">APP 内打开</a>`,
description: `${item.name}<br>${item.priceDesc ? `${item.pricePrefix}${item.priceSymbol}${item.priceDesc[0]}` : ''}<br><img src="https:${item.img}"><br><a href="${item.itemUrl}">APP 内打开</a>`,
link: item.itemUrlForH5,
})),
};

View File

@ -40,7 +40,7 @@ module.exports = async (ctx) => {
item = {
title: `${item.title}`,
description: `${item.description}<img referrerpolicy="no-referrer" src="https:${item.pic}"><br/>Tags:${item.tag}`,
description: `${item.description}<img src="https:${item.pic}"><br/>Tags:${item.tag}`,
pubDate: new Date(item.pubdate).toUTCString(),
link: `https://www.bilibili.com/video/av${item.id}`,
author: item.author,

View File

@ -25,7 +25,7 @@ module.exports = async (ctx) => {
list &&
list.map((item) => ({
title: `${item.title}`,
description: `${item.desc}<img referrerpolicy="no-referrer" src="${item.pic}">`,
description: `${item.desc}<img src="${item.pic}">`,
pubDate: new Date(item.pubdate * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
author: item.owner.name,

View File

@ -26,11 +26,11 @@ module.exports = async (ctx) => {
let imgHTML = '';
if (cardData.pictures) {
for (let i = 0; i < cardData.pictures.length; i++) {
imgHTML += `<img referrerpolicy="no-referrer" src="${cardData.pictures[i].img_src}">`;
imgHTML += `<img src="${cardData.pictures[i].img_src}">`;
}
}
if (cardData.pic) {
imgHTML += `<img referrerpolicy="no-referrer" src="${cardData.pic}">`;
imgHTML += `<img src="${cardData.pic}">`;
}
// link

View File

@ -34,7 +34,7 @@ module.exports = async (ctx) => {
item: data.archives.map((item) => ({
title: item.title,
description: `${item.desc}<br><img referrerpolicy="no-referrer" src="${item.pic}">`,
description: `${item.desc}<br><img src="${item.pic}">`,
pubDate: new Date(item.pubdate * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
author: userName,

View File

@ -24,7 +24,7 @@ module.exports = async (ctx) => {
data.data.archives &&
data.data.archives.map((item) => ({
title: item.title,
description: `${item.desc}<br><img referrerpolicy="no-referrer" src="${item.pic}">`,
description: `${item.desc}<br><img src="${item.pic}">`,
pubDate: new Date(item.fav_at * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
})),

View File

@ -23,7 +23,7 @@ module.exports = async (ctx) => {
data.data.list &&
data.data.list.map((item) => ({
title: `[${item.new_ep.index_show}]${item.title}`,
description: `${item.evaluate}<br><img referrerpolicy="no-referrer" src="${item.cover}">`,
description: `${item.evaluate}<br><img src="${item.cover}">`,
pubDate: new Date(item.new_ep.pub_time ? item.new_ep.pub_time : Date.now()).toUTCString(),
link: `https://www.bilibili.com/bangumi/play/` + (item.new_ep.id ? `ep${item.new_ep.id}` : `ss${item.season_id}`),
})),

View File

@ -20,7 +20,7 @@ const ProcessFeed = async (list, caches) =>
data = data.data[aid + ''];
const single = {
title: data.title,
description: `${data.desc}<br><img referrerpolicy="no-referrer" src="${data.pic}">`,
description: `${data.desc}<br><img src="${data.pic}">`,
pubDate: new Date(data.pubdate * 1000).toUTCString(),
author: data.owner.name,
link: `https://www.bilibili.com/video/av${aid}`,

View File

@ -23,7 +23,7 @@ module.exports = async (ctx) => {
data.data.vlist &&
data.data.vlist.map((item) => ({
title: item.title,
description: `${item.description}<br><img referrerpolicy="no-referrer" src="https:${item.pic}">`,
description: `${item.description}<br><img src="https:${item.pic}">`,
pubDate: new Date(item.created * 1000).toUTCString(),
link: `https://www.bilibili.com/video/av${item.aid}`,
author: name,

View File

@ -37,7 +37,7 @@ module.exports = async (ctx) => {
`Danmaku: ${item.video_review} Comment: ${item.review}<br/>` +
`Category: ${item.typename}<br/>` +
`<br/>${des}<br/>` +
`<img referrerpolicy="no-referrer" src="${img}"><br/>` +
`<img src="${img}"><br/>` +
`Tag: ${item.tag}<br/>` +
`Match By: ${item.hit_columns.join(',')}`,
pubDate: new Date(item.pubdate * 1000).toUTCString(),

View File

@ -18,7 +18,7 @@ module.exports = async (ctx) => {
link: `https://cn.bing.com/`,
item: data.images.map((item) => ({
title: item.copyright,
description: `<img referrerpolicy="no-referrer" src="https://cn.bing.com${item.url}">`,
description: `<img src="https://cn.bing.com${item.url}">`,
link: item.copyrightlink,
})),
};

View File

@ -28,7 +28,7 @@ module.exports = async (ctx) => {
const content = $($('body > table')[1]);
const image = `<img referrerpolicy="no-referrer" src="${baseUrl}${content.find('img').attr('src')}">`;
const image = `<img src="${baseUrl}${content.find('img').attr('src')}">`;
const item = {
title: $(e).attr('title'),

View File

@ -9,7 +9,7 @@ const load = ($, baseUrl) => {
let description = '';
for (let page = 1; page <= pages; page++) {
description += `<img referrerpolicy="no-referrer" src="${baseUrl}/${String(page).padStart(3, '0')}.jpg" /></br>`;
description += `<img src="${baseUrl}/${String(page).padStart(3, '0')}.jpg" /></br>`;
}
return {
description,

View File

@ -68,7 +68,7 @@ module.exports = async (category, ctx) => {
case 'PHO':
description = data.photo_album_list.reduce((description, { photo_url, photo_name, photo_brief }) => {
description += `
<img src=${photo_url} referrerpolicy="no-referrer" /><br>
<img src=${photo_url} /><br>
<strong>${photo_name}</strong><br>
${photo_brief}<br>
`;

View File

@ -21,7 +21,7 @@ module.exports = async (ctx) => {
const resultItem = response.data.data.map((item) => ({
title: item.title,
author: item.nick,
description: `${item.title}<br><img src="${item.originalImgUrl || item.imgUrl || item.original_img_url || item.img_url}" referrerpolicy="no-referrer" /><br><a href="${host}/link/${item.id}">评论</a>`,
description: `${item.title}<br><img src="${item.originalImgUrl || item.imgUrl || item.original_img_url || item.img_url}" /><br><a href="${host}/link/${item.id}">评论</a>`,
link: item.url,
pubDate: new Date(item.createdTime / 1000).toUTCString(),
}));

View File

@ -16,8 +16,8 @@ module.exports = async (ctx) => {
title: item.title,
link: item.visit_url,
description: `
<img referrerpolicy="no-referrer" src="${item.cover_image}"><br>
<img referrerpolicy="no-referrer" src="${item.display_image}"><br><br>
<img src="${item.cover_image}"><br>
<img src="${item.display_image}"><br><br>
${item.summary}<br>
价格: ${item.price}
`,

View File

@ -31,7 +31,7 @@ module.exports = async (ctx) => {
const single = {
title: title,
link: img_url,
description: `<img referrerpolicy="no-referrer" src="${img_url}">`,
description: `<img src="${img_url}">`,
};
resultItem.push(single);
}

View File

@ -22,7 +22,7 @@ module.exports = async (ctx) => {
const img = item.find('.main-link img').attr('src');
const price = item.find('strong').html();
const oldprice = item.find('s.text-muted').html();
const description = `<img referrerpolicy="no-referrer" src="${img}"><br><s>${oldprice}</s><br>${price}`;
const description = `<img src="${img}"><br><s>${oldprice}</s><br>${price}`;
const single = {
title,

View File

@ -43,7 +43,7 @@ module.exports = async (ctx) => {
.last()
.text()
).toUTCString();
let description = `<img referrerpolicy="no-referrer" src="${$tradeItem
let description = `<img src="${$tradeItem
.find('.cover')
.attr('src')
.replace(/\?.+/g, '')}" /><br>`;

View File

@ -46,7 +46,7 @@ module.exports = async (ctx) => {
.last()
.text()
).toUTCString();
let description = `<img referrerpolicy="no-referrer" src="${$tradeItem
let description = `<img src="${$tradeItem
.find('.cover')
.attr('src')
.replace(/\?.+/g, '')}" /><br>`;

View File

@ -14,7 +14,7 @@ async function load(link, id) {
const title = img.attr('alt').replace('Dilbert by Scott Adams', id);
const src = 'https:' + img.attr('src');
const description = `<img referrerpolicy="no-referrer" src="${src}"></br><p>${transcript.html()}</p>`;
const description = `<img src="${src}"></br><p>${transcript.html()}</p>`;
return {
title,

View File

@ -16,7 +16,7 @@ async function load(link, ctx) {
let introduce = $('#intro2 > p:nth-child(3)').text();
// 将'简介'字段与内容分离,为了更优美的阅读界面
introduce = introduce.replace('简介', '简介<br>');
const image = `<img src="${$('.player_img > img').attr('src')}" referrerpolicy="no-referrer" />`;
const image = `<img src="${$('.player_img > img').attr('src')}" />`;
const detailResult = `${introduce}<br>${image}`;
// 定义description,并指定内容

View File

@ -18,7 +18,7 @@ module.exports = async (ctx) => {
description: '每周一更新',
item: response.data.subject_collection_items.map(({ title, url, cover, info, rating, null_rating_reason }) => {
const rate = rating ? `${rating.value.toFixed(1)}` : null_rating_reason;
const description = `<img referrerpolicy="no-referrer" src="${cover.url}"><br>
const description = `<img src="${cover.url}"><br>
${title}/${info}/${rate}
`;

View File

@ -20,8 +20,8 @@ module.exports = async (ctx) => {
title,
link: url,
description: `
<img referrerpolicy="no-referrer" src="${rectangle_pic}"><br>
<img referrerpolicy="no-referrer" src="${square_pic}"><br>
<img src="${rectangle_pic}"><br>
<img src="${square_pic}"><br>
${desc}<br>
<strong>价格:</strong> ${price}
`,

View File

@ -44,7 +44,7 @@ module.exports = async (ctx) => {
return {
title: $item.find('.title > a').text(),
link: $item.find('.title > a').attr('href'),
description: `<img src="${$item.find('.post img').attr('src')}" referrerpolicy="no-referrer" /><br>${$item.find('.abstract').html()}`,
description: `<img src="${$item.find('.post img').attr('src')}" /><br>${$item.find('.abstract').html()}`,
pubDate: new Date($item.find('.time > span').attr('title')).toUTCString(),
};
})

View File

@ -16,7 +16,7 @@ module.exports = async (ctx) => {
title: `豆瓣同城-热门活动-${locationId}`,
link: referer,
item: response.data.subject_collection_items.map(({ title, url, cover, subtype, info, price_range }) => {
const description = `<img referrerpolicy="no-referrer" src="${cover.url}"><br>
const description = `<img src="${cover.url}"><br>
${info}/${subtype}/${price_range}
`;

View File

@ -30,7 +30,7 @@ module.exports = async (ctx) => {
description: `作者:${item
.find('.usr-pic a')
.last()
.text()}<br>描述${item.find('.content p').text()}<br><img referrerpolicy="no-referrer" src="${itemPicUrl}">`,
.text()}<br>描述${item.find('.content p').text()}<br><img src="${itemPicUrl}">`,
link: item.find('.title a').attr('href'),
};
})

View File

@ -22,7 +22,7 @@ module.exports = async (ctx) => {
if (photo.length > 0) {
const src = photo[0].alt;
return `<img referrerpolicy="no-referrer" src='${src}'/><br>`;
return `<img src='${src}'/><br>`;
} else {
return '';
}

View File

@ -12,7 +12,7 @@ module.exports = async (ctx) => {
link: 'https://movie.douban.com/cinema/later/',
item: movieList.map((item) => ({
title: item.title,
description: `标题:${item.title}<br> 影片类型:${item.genres.join(' | ')} <br>评分:${item.rating.stars === '00' ? '无' : item.rating.average} <br/> <img referrerpolicy="no-referrer" src="${item.images.large}">`,
description: `标题:${item.title}<br> 影片类型:${item.genres.join(' | ')} <br>评分:${item.rating.stars === '00' ? '无' : item.rating.average} <br/> <img src="${item.images.large}">`,
link: item.alt,
})),
};

View File

@ -58,7 +58,7 @@ module.exports = async (ctx) => {
const title = `${item.title}-${item.info}`;
const link = `https://music.douban.com/subject/${item.id}/`;
const description = `
<img src="${item.cover.url}" referrerpolicy="no-referrer" /><br>
<img src="${item.cover.url}" /><br>
${item.recommend_comment}<br>
<strong>评分:</strong> ${item.rating.value.toFixed(1)}
`;

View File

@ -8,14 +8,14 @@ function getContentByActivity(status) {
title = `${status.author.name} ${status.activity}:${status.text}`;
description = status.text;
status.images.forEach((image) => {
description += `<p><img referrerpolicy="no-referrer" src="${image.normal.url}"/></p>`;
description += `<p><img src="${image.normal.url}"/></p>`;
});
break;
case '转发':
description = getContentByActivity(status.reshared_status).title;
title = `${status.author.name} ${status.activity} ${status.reshared_status.author.name} 的广播:${status.reshared_status.text}`;
status.reshared_status.images.forEach((image) => {
description += `<p><img referrerpolicy="no-referrer" src="${image.normal.url}"/></p>`;
description += `<p><img src="${image.normal.url}"/></p>`;
});
break;
default:

View File

@ -22,7 +22,7 @@ module.exports = async (ctx) => {
title: item.attr('data-title'),
description: `标题:${item.attr('data-title')}<br>评分:${itemScore}<br>片长:${item.attr('data-duration')}<br>制片国家/地区:${item.attr('data-region')}<br>导演:${item.attr(
'data-director'
)}<br>主演${item.attr('data-actors')}<br><img referrerpolicy="no-referrer" src="${item.find('.poster img').attr('src')}">`,
)}<br>主演${item.attr('data-actors')}<br><img src="${item.find('.poster img').attr('src')}">`,
link: `https://movie.douban.com/subject/${item.attr('id')}`,
};
} else {

View File

@ -37,7 +37,7 @@ module.exports = async (ctx) => {
if (images) {
let i;
for (i in images) {
description += `<br><img src="${images[i].normal.url}" referrerpolicy="no-referrer" />`;
description += `<br><img src="${images[i].normal.url}" />`;
}
}
} else {

View File

@ -14,7 +14,7 @@ module.exports = async (ctx) => {
item = item.subject;
return {
title: item.title,
description: `标题:${item.title}<br> 影片类型:${item.genres.join(' | ')} <br>评分:${item.rating.stars === '00' ? '无' : item.rating.average} <br/> <img referrerpolicy="no-referrer" src="${item.images.large}">`,
description: `标题:${item.title}<br> 影片类型:${item.genres.join(' | ')} <br>评分:${item.rating.stars === '00' ? '无' : item.rating.average} <br/> <img src="${item.images.large}">`,
link: item.alt,
};
}),

View File

@ -11,7 +11,7 @@ const formatItem = (item) => {
content = item.image_infos.reduce((acc, item) => {
const imgUrl = item.label_large.url_list[0].replace('.webp', '.png');
acc += `
<img referrerpolicy="no-referrer" src="${imgUrl}"><br>
<img src="${imgUrl}"><br>
`;
return acc;
}, '');

View File

@ -27,7 +27,7 @@ module.exports = {
item = $(item);
return {
title: item.find('.dribbble-over strong').text(),
description: `<img referrerpolicy="no-referrer" src="${item
description: `<img src="${item
.find('.dribbble-link img')
.attr('src')
.replace('_teaser', '')}"><br>

View File

@ -74,7 +74,7 @@ module.exports = async (ctx) => {
if (!$(images[k]).attr('file') || $(images[k]).attr('file') === 'undefined') {
$(images[k]).replaceWith('');
} else {
$(images[k]).replaceWith(`<img src="${$(images[k]).attr('file')}" referrerpolicy="no-referrer" />`);
$(images[k]).replaceWith(`<img src="${$(images[k]).attr('file')}" />`);
}
}
const description = postMessage.html();

View File

@ -62,8 +62,8 @@ module.exports = async (ctx) => {
if (!$(images[k]).attr('file') || $(images[k]).attr('file') === 'undefined') {
$(images[k]).replaceWith('');
} else {
// $(images[k]).replaceWith(`<img src="${$(images[k]).attr('file')}" referrerpolicy="no-referrer" />`);
description += `<img src="${$(images[k]).attr('file')}" referrerpolicy="no-referrer" />`;
// $(images[k]).replaceWith(`<img src="${$(images[k]).attr('file')}" />`);
description += `<img src="${$(images[k]).attr('file')}" />`;
}
}
// const description = postMessage.html();

View File

@ -13,7 +13,7 @@ module.exports = async (ctx) => {
const result = await Promise.all(
data.newslist.map(async (item) => {
const link = item.newsurl.match(/^http/) ? item.newsurl : domain + item.newsurl;
const description = item.imgurl1 ? `<img referrerpolicy="no-referrer" src="${domain}${item.imgurl1}"><br>` : '';
const description = item.imgurl1 ? `<img src="${domain}${item.imgurl1}"><br>` : '';
const entity = {
title: item.newstitle,
author: item.source,

View File

@ -21,7 +21,7 @@ module.exports = async (ctx) => {
const d = await getArticle('https://mbasic.facebook.com' + url);
return {
title: d.title,
description: d.imgs.map((u) => `<img referrerpolicy="no-referrer" src="${u}">`).join('<br>') + '<br>' + d.content.replace(/\n/g, '<br>'),
description: d.imgs.map((u) => `<img src="${u}">`).join('<br>') + '<br>' + d.content.replace(/\n/g, '<br>'),
link: d.url,
};
})

View File

@ -30,7 +30,7 @@ module.exports = async (ctx) => {
title: Title,
link: Author,
description: `
<img referrerpolicy="no-referrer" src="${HomeImagePath}"><br>
<img src="${HomeImagePath}"><br>
${Summary}<br>
${PublishDate}`,
})),

View File

@ -10,7 +10,7 @@ const ProcessFeed = ($, link) => {
content.find('div.story-image > figure').each((i, e) => {
const src = `https://www.ft.com/__origami/service/image/v2/images/raw/${encodeURIComponent(e.attribs['data-url'])}?source=ftchinese&width=800&fit=cover`;
$(`<img referrerpolicy="no-referrer" src=${src}>`).insertAfter(content.find('div.story-lead')[0]);
$(`<img src=${src}>`).insertAfter(content.find('div.story-lead')[0]);
});
// 付费文章跳转

View File

@ -14,7 +14,7 @@ module.exports = async (ctx) => {
description: '花火学园',
item: data.map((item) => ({
title: item.title,
description: `<img referrerpolicy="no-referrer" src="${item.img}">`,
description: `<img src="${item.img}">`,
pubDate: new Date(parseInt(item.date.substr(0, 4)), parseInt(item.date.substr(4, 2)), parseInt(item.date.substr(6, 2))).toUTCString(),
link: item.url,
})),

View File

@ -23,7 +23,7 @@ module.exports = async (ctx) => {
link: $(ele).attr('href'),
description: `
<h1>${title}</h1>
<img referrerpolicy="no-referrer" src="${coverImg}" />
<img src="${coverImg}" />
`.trim(),
};
})

View File

@ -42,7 +42,7 @@ module.exports = async (ctx) => {
link: host,
item: data.map((follower) => ({
title: `${follower.node.login} started following ${user}`,
description: `<a href="https://github.com/${follower.node.login}">${follower.node.login}</a> <br> <img referrerpolicy="no-referrer" sytle="width:50px;" src='${follower.node.avatarUrl}'>`,
description: `<a href="https://github.com/${follower.node.login}">${follower.node.login}</a> <br> <img sytle="width:50px;" src='${follower.node.avatarUrl}'>`,
link: `https://github.com/${follower.node.login}`,
})),
};

View File

@ -43,7 +43,7 @@ module.exports = async (ctx) => {
link: host,
item: data.map((follower) => ({
title: `${follower.node.login} starred ${user}/${repo}`,
description: `<a href="https://github.com/${follower.node.login}">${follower.node.login}</a> <br> <img referrerpolicy="no-referrer" sytle="width:50px;" src='${follower.node.avatarUrl}'>`,
description: `<a href="https://github.com/${follower.node.login}">${follower.node.login}</a> <br> <img sytle="width:50px;" src='${follower.node.avatarUrl}'>`,
link: `https://github.com/${follower.node.login}`,
})),
};

View File

@ -26,7 +26,7 @@ module.exports = async (ctx) => {
item = $(item);
return {
title: item.find('.GN-lbox2D').text(),
description: item.find('.GN-lbox2C').text() + '<img referrerpolicy="no-referrer" src="' + item.find('.GN-lbox2E img').attr('src') + '">',
description: item.find('.GN-lbox2C').text() + '<img src="' + item.find('.GN-lbox2E img').attr('src') + '">',
pubDate: new Date(item.find('.time').data('shared-at')).toUTCString(),
link: item.find('.GN-lbox2D a').attr('href'),
};

View File

@ -25,7 +25,7 @@ module.exports = async (ctx) => {
return {
title: item.title,
description: `<img src="https:${item.url}" referrerpolicy="no-referrer" /><br>${item.share_text}`,
description: `<img src="https:${item.url}" /><br>${item.share_text}`,
pubDate: new Date(date).toUTCString(),
guid: item.url,
link: `https://www.google.com/search?q=${encodeURIComponent(item.query)}`,

View File

@ -52,7 +52,7 @@ module.exports = async (ctx) => {
list.map((item) => {
const single = {
title: item.title,
description: `${item.title}<br><img referrerpolicy="no-referrer" src="${item.img_url}">`, // Get fulltext manually if needs be. Snippet like: $('.widget-article').first().html();
description: `${item.title}<br><img src="${item.img_url}">`, // Get fulltext manually if needs be. Snippet like: $('.widget-article').first().html();
pubDate: new Date(item.publish_ts * 1000).toUTCString(),
link: item.link,
};

View File

@ -20,7 +20,7 @@ module.exports = async (ctx) => {
const img_url = item.media_list && item.media_list[0].img_url;
const single = {
title: item.title,
description: `${item.summary}<br><img referrerpolicy="no-referrer" src="${img_url}">`,
description: `${item.summary}<br><img src="${img_url}">`,
pubDate: new Date(item.edit_time * 1000).toUTCString(),
link: `${url}/detail/${item.topic_id}`,
};

View File

@ -66,7 +66,7 @@ module.exports = async (ctx) => {
*/
function generateItemDesc(pics) {
const itemDesc = pics.reduce((acc, pic) => {
acc += `<img referrerpolicy="no-referrer" src='${pic}><br>`;
acc += `<img src='${pic}><br>`;
return acc;
}, '');
return itemDesc;

View File

@ -11,7 +11,7 @@ const ProcessFeed = (data) => {
content.find('.element-image').each((i, e) => {
const pic = $(e).find('img');
let rpic = `<figure><img referrerpolicy="no-referrer" alt='${pic[0].attribs.alt}' src='${pic[0].attribs.src}'><br><figcaption>`;
let rpic = `<figure><img alt='${pic[0].attribs.alt}' src='${pic[0].attribs.src}'><br><figcaption>`;
const rcaption = $(e).find('figcaption');
rpic += `${$(rcaption[0])
.text()
@ -23,7 +23,7 @@ const ProcessFeed = (data) => {
// there is a cover photo
const photo = $('#img-1').find('img');
let cover = `<figure><img referrerpolicy="no-referrer" alt='${photo[0].attribs.alt}' src='${photo[0].attribs.src}'><br><figcaption>`;
let cover = `<figure><img alt='${photo[0].attribs.alt}' src='${photo[0].attribs.src}'><br><figcaption>`;
const caption = $('#img-1').find('figcaption');

View File

@ -11,7 +11,7 @@ module.exports = async (ctx) => {
description: '果壳网 科学人',
item: result.map((item) => ({
title: item.title,
description: `${item.summary}<br><img referrerpolicy="no-referrer" src="${item.image_info.url}">`,
description: `${item.summary}<br><img src="${item.image_info.url}">`,
pubDate: item.date_published,
link: item.url,
author: item.author.nickname,

View File

@ -54,11 +54,11 @@ module.exports = async (ctx) => {
'Description: '.bold() +
videoDescription +
'<br>' +
'<img referrerpolicy="no-referrer" src="' +
'<img src="' +
videoCover +
'">' +
'<br>' +
'<img referrerpolicy="no-referrer" src="' +
'<img src="' +
videoImage +
'">',
link: videoUrl,

View File

@ -40,7 +40,7 @@ module.exports = async (ctx) => {
return {
title: _item.find('.detail-grid-title').text(),
link: host + '/' + _item.find('.detail-grid-title a').attr('href'),
description: `<img referrerpolicy="no-referrer" src="${_item.find('.thumbnail img').attr('src')}">${_item
description: `<img src="${_item.find('.thumbnail img').attr('src')}">${_item
.find('.detail-grid-info span')
.eq(0)
.text()}<br>${_item

View File

@ -51,7 +51,7 @@ module.exports = async (ctx) => {
>
</p>
`
: `<img referrerpolicy="no-referrer" src="${item.imgUrl}"><br>`;
: `<img src="${item.imgUrl}"><br>`;
const description = `
<strong>${title}</strong><br>
${tags}<br>

View File

@ -40,7 +40,7 @@ module.exports = async (ctx) => {
const subtitle = item.find('.subtitle').children()[0].next ? item.find('.subtitle').children()[0].next.data : '';
return {
title: item.find('div.title').text(),
description: `${subtitle} ${pretitle} <img referrerpolicy="no-referrer" src="${item.find('img.cover').attr('src')}">`,
description: `${subtitle} ${pretitle} <img src="${item.find('img.cover').attr('src')}">`,
link: `${baseUrl}${item.find('a.info').attr('href')}`,
};
})

View File

@ -78,7 +78,7 @@ module.exports = async (ctx) => {
for (let i = 0; i < media[index].length; i++) {
if (media[index][i].image && !media[index][i].video) {
content += `<img referrerpolicy="no-referrer" src="${media[index][i].image}"><br>`;
content += `<img src="${media[index][i].image}"><br>`;
image++;
}

View File

@ -79,7 +79,7 @@ module.exports = async (ctx) => {
for (let i = 0; i < media[index].length; i++) {
if (media[index][i].image && !media[index][i].video) {
content += `<img referrerpolicy="no-referrer" src="${media[index][i].image}"><br>`;
content += `<img src="${media[index][i].image}"><br>`;
image++;
}

View File

@ -42,7 +42,7 @@ module.exports = async (ctx) => {
return {
title,
description: `<img referrerpolicy="no-referrer" src="${$(item)
description: `<img src="${$(item)
.find('.site-piclist_pic .site-piclist_pic_link img')
.attr('src')}">`,
link: $(item)

View File

@ -35,7 +35,7 @@ module.exports = async (ctx) => {
return {
title,
description: `<img referrerpolicy="no-referrer" src="${$(item)
description: `<img src="${$(item)
.find('.site-piclist_pic img')
.attr('src')}">`,
pubDate: new Date(

View File

@ -18,7 +18,7 @@ module.exports = async (ctx) => {
title: `${item.name} / ${item.round} / ${item.money}`,
link: `https://www.itjuzi.com/company/${item.invse_com_id}`,
description: `
<img referrerpolicy="no-referrer" src="${item.logo}"><br><br>
<img src="${item.logo}"><br><br>
<strong>${item.name}</strong><br>
${item.slogan}<br>
${item.round} / ${item.money} / ${item.time}<br>

View File

@ -18,7 +18,7 @@ module.exports = async (ctx) => {
title: `${item.name}-${item.slogan}`,
link: `https://www.itjuzi.com/merger/${item.id}`,
description: `
<img referrerpolicy="no-referrer" src="${item.logo}"><br><br>
<img src="${item.logo}"><br><br>
<strong>${item.name}</strong><br>
${item.slogan}<br>
股权占比: ${item.ratio} / 金额: ${item.money} / ${item.time}<br>

View File

@ -56,7 +56,7 @@ module.exports = async (ctx) => {
description:
`${text}<br>` +
imgList.reduce((description, imgUrl) => {
description += `<img referrerpolicy="no-referrer" src="http:${imgUrl}"><br>`;
description += `<img src="http:${imgUrl}"><br>`;
return description;
}, ''),
link,

View File

@ -45,7 +45,7 @@ const parseItems = ($, ctx) =>
const detail = await getDetail(link, ctx);
title = `${aid} ${title}${detail.filmTime}`;
if (detail.screenData) {
detail.imgHTML = detail.screenData.map((url) => `<img referrerpolicy="no-referrer" src="${url}"><br />`);
detail.imgHTML = detail.screenData.map((url) => `<img src="${url}"><br />`);
}
return {
title,
@ -54,7 +54,7 @@ const parseItems = ($, ctx) =>
description: `
<h3>${title}</h3>
<br />
<img referrerpolicy="no-referrer" src="${thumb.replace(/\/thumbs?\//, '/cover/').replace('.jpg', '_b.jpg')}" />
<img src="${thumb.replace(/\/thumbs?\//, '/cover/').replace('.jpg', '_b.jpg')}" />
${detail.filmTime ? `<h3>发售日期 : ${detail.filmTime}</h3>` : ''}
${detail.actresses ? `<h3>女优 : ${detail.actresses}</h3>` : ''}
${detail.filmEstabName ? `<h3>發行商 : ${detail.filmEstabName}</h3>` : ''}

View File

@ -65,7 +65,7 @@ module.exports = async (ctx) => {
.find('div.p-outter > div.p-items > ul')
.html()
.trim();
const description = `<img src="${image}" referrerpolicy="no-referrer" /><br>${information}`;
const description = `<img src="${image}" /><br>${information}`;
const info = {
link: url.resolve(

View File

@ -15,7 +15,7 @@ module.exports = async (ctx) => {
title,
link: `https://juejin.im/book/${id}`,
description: `
<img referrerpolicy="no-referrer" src="${img}"><br>
<img src="${img}"><br>
<strong>${title}</strong><br><br>
${desc}<br>
<strong>价格:</strong> ${price}

View File

@ -20,7 +20,7 @@ module.exports = async (ctx) => {
const author = item.user.username;
const imgs = item.pictures.reduce((imgs, item) => {
imgs += `
<img referrerpolicy="no-referrer" src="${item}"><br>
<img src="${item}"><br>
`;
return imgs;
}, '');

View File

@ -29,7 +29,7 @@ module.exports = async (ctx) => {
}
let imagesTpl = '';
images.forEach((item) => {
imagesTpl += `<img referrerpolicy="no-referrer" src="${item}">`;
imagesTpl += `<img src="${item}">`;
});
const minute = Math.floor(item.meta.secondDuration / 60);

View File

@ -10,7 +10,7 @@ module.exports = async (ctx) => {
link: 'https://kirarafantasia.com/news/',
description: '「まんがタイムきらら」の人気キャラクターたちが、RPGの世界に大集合あなたの毎日が「きらら」でいっぱいに #きらファン',
item: posts.map((post) => {
const image = `<img referrerpolicy="no-referrer" src=${post.thumbnail} />`;
const image = `<img src=${post.thumbnail} />`;
const html = image;

View File

@ -36,7 +36,7 @@ module.exports = async (ctx) => {
if (url.startsWith('//')) {
url = 'https:' + url;
}
let result = `<img referrerpolicy="no-referrer" src="${url}" />`;
let result = `<img src="${url}" />`;
if (post.source) {
result += `<a href="${post.source}">source</a>`;
}

View File

@ -16,7 +16,7 @@ module.exports = async (ctx) => {
item: data.map(({ title, resourceid, image, publishtime }) => ({
title,
link: `http://www.laosiji.com/thread/${resourceid}.html`,
description: `<img referrerpolicy="no-referrer" src="${image.url}">`,
description: `<img src="${image.url}">`,
pubDate: parseDate(publishtime, 8),
})),
};

View File

@ -15,7 +15,7 @@ module.exports = async (ctx) => {
item: data.map(({ title, description, id, imageInfo, createtime }) => ({
title: title === '' ? description : title,
link: `http://www.laosiji.com/thread/${id}.html`,
description: `<img referrerpolicy="no-referrer" src="${imageInfo.url}">${description}`,
description: `<img src="${imageInfo.url}">${description}`,
pubDate: new Date(createtime).toUTCString(),
})),
};

Some files were not shown because too many files have changed in this diff Show More