diff --git a/lib/routes/cna/utils.ts b/lib/routes/cna/utils.ts index 57f341871a75..9096ad60ae74 100644 --- a/lib/routes/cna/utils.ts +++ b/lib/routes/cna/utils.ts @@ -14,6 +14,13 @@ export async function getFullText(item) { const content = load(detailResponse.data); content('div.SubscriptionInner').remove(); content('.gmailNews').remove(); + + // Those boxes are for explaining terms. They are injected inline and interrupt reading. + // If readers want to learn about terms, they can learn more online. + content('.dictionary-box').remove(); + // Those are for "延伸閱讀" links, which are not part of the main article. + content('.moreArticle').remove(); + const topImage = content('.fullPic').html(); item.description = (topImage === null ? '' : topImage) + content('.paragraph').eq(0).html();