mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): remove swissinfo ads (#8671)
This commit is contained in:
@@ -48,6 +48,10 @@ module.exports = async (ctx) => {
|
||||
|
||||
const content = cheerio.load(detailResponse.data);
|
||||
|
||||
content('.si-detail__content .si-grid').remove();
|
||||
content('.si-detail__content .si-teaser').remove();
|
||||
content('.show-for-sr, time, address, .si-detail__translation').remove();
|
||||
|
||||
content('picture').each(function () {
|
||||
content(this).html(`<img src="${content(this).find('source').first().attr('srcset')}">`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user