Skip to content

Commit

Permalink
fix(route/oschina): Remove ads from entries (#16272)
Browse files Browse the repository at this point in the history
  • Loading branch information
HolgerHuo authored Jul 27, 2024
1 parent 1728ea5 commit 4dd9837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/routes/oschina/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ async function handler(ctx) {
});
const $ = load(res.data);

$('.ad-wrap').remove();

const list = $('.items .news-item')
.toArray()
.map((item) => {
Expand Down

0 comments on commit 4dd9837

Please sign in to comment.