feat(route): Kemono Posts remove Ad (#14841)

* feat(route): Kemono Posts remove Ad

* style: auto format

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Neko Aria
2024-03-19 12:10:28 +08:00
committed by GitHub
co-authored by github-actions[bot]
parent 263d6b818e
commit ab77187fd3
+5 -1
View File
@@ -125,7 +125,11 @@ async function handler(ctx) {
content(this).html(`<img src="${href.startsWith('http') ? href : rootUrl + href}">`);
});
item.description = content('.post__body').html();
item.description = content('.post__body')
.each(function () {
content(this).find('.ad-container').remove();
})
.html();
item.author = content('.post__user-name').text();
item.title = content('.post__title span').first().text();
item.guid = item.link.replace('kemono.su', 'kemono.party');