From 4dd9837ab07760903f77adea0577b35ad7dfeb5b Mon Sep 17 00:00:00 2001 From: HolgerHuo <50446405+HolgerHuo@users.noreply.github.com> Date: Sat, 27 Jul 2024 15:34:49 +0800 Subject: [PATCH] fix(route/oschina): Remove ads from entries (#16272) --- lib/routes/oschina/news.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/routes/oschina/news.ts b/lib/routes/oschina/news.ts index 7de987fa10b9a4..73a64b32feae75 100644 --- a/lib/routes/oschina/news.ts +++ b/lib/routes/oschina/news.ts @@ -85,6 +85,8 @@ async function handler(ctx) { }); const $ = load(res.data); + $('.ad-wrap').remove(); + const list = $('.items .news-item') .toArray() .map((item) => {