mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-12 16:20:27 +08:00
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2
This commit is contained in:
@@ -25,12 +25,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
// replace placeholer image url
|
||||
imgNode.each((index, element) => {
|
||||
if (
|
||||
$(element).attr('src') &&
|
||||
$(element)
|
||||
.attr('src')
|
||||
.indexOf('none.gif') !== -1
|
||||
) {
|
||||
if ($(element).attr('src') && $(element).attr('src').indexOf('none.gif') !== -1) {
|
||||
$(element).attr('src', $(element).attr('zoomfile'));
|
||||
}
|
||||
|
||||
@@ -40,23 +35,13 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
|
||||
// remove image tips
|
||||
$(description)
|
||||
.find('div[class*="aimg_tip"]')
|
||||
.remove();
|
||||
$(description)
|
||||
.find('div[class*="tip"]')
|
||||
.remove();
|
||||
$(description)
|
||||
.find('p[class="mbn"]')
|
||||
.remove();
|
||||
$(description).find('div[class*="aimg_tip"]').remove();
|
||||
$(description).find('div[class*="tip"]').remove();
|
||||
$(description).find('p[class="mbn"]').remove();
|
||||
|
||||
// remove rate infomation
|
||||
$(description)
|
||||
.find('dl[class="rate"]')
|
||||
.remove();
|
||||
$(description)
|
||||
.find('h3[class*="psth"]')
|
||||
.remove();
|
||||
$(description).find('dl[class="rate"]').remove();
|
||||
$(description).find('h3[class*="psth"]').remove();
|
||||
|
||||
const single = {
|
||||
title: item.title,
|
||||
|
||||
Reference in New Issue
Block a user