fix: myft 移除广告

This commit is contained in:
Henry 2020-12-26 11:29:05 +00:00
parent bbb4e4d25c
commit bda9d721e5
No known key found for this signature in database
GPG Key ID: 5B3C7E38D81D924D
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ const cheerio = require('cheerio');
module.exports = async (ctx) => {
const ProcessFeed = (content) => {
content.find('div.o-share, aside').remove();
// clean up the article
content.find('div.o-share, aside, div.o-ads').remove();
return content.html();
};