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:
parent
263d6b818e
commit
ab77187fd3
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue