From b5be05b1e2bdc18e6fec5ebe137cca9937175ff3 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Mon, 6 Dec 2021 13:34:07 +0800 Subject: [PATCH] fix(route): remove swissinfo ads (#8671) --- lib/v2/swissinfo/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/v2/swissinfo/index.js b/lib/v2/swissinfo/index.js index ce9d748c9a..55c4e7cf83 100644 --- a/lib/v2/swissinfo/index.js +++ b/lib/v2/swissinfo/index.js @@ -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(``); });