From 1efb6d0cbe0fd5a4d50ec88ee6fd0237f0e513b0 Mon Sep 17 00:00:00 2001 From: Bin Wang Date: Sat, 20 Dec 2025 10:13:41 -0500 Subject: [PATCH] fix(routes/cbc): fix CBC route to exclude text to speech widget (#20734) CBC articles have a text to speech widget at the beginning of every article, which is useless and add lots of noise. This PR removes it. --- lib/routes/cbc/topics.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/cbc/topics.ts b/lib/routes/cbc/topics.ts index 5b9721eed..b561143d0 100644 --- a/lib/routes/cbc/topics.ts +++ b/lib/routes/cbc/topics.ts @@ -71,6 +71,7 @@ async function handler(ctx) { const pubDate = head.datePublished; const descriptionDom = $('div[data-cy=storyWrapper]'); descriptionDom.find('div[class=share]').remove(); + descriptionDom.find('div[class^="textToSpeech"]').remove(); const description = descriptionDom.html(); return { title, author, pubDate, description, link };