mirror of
https://github.com/fmz200/wool_scripts.git
synced 2026-05-07 15:02:44 +08:00
add X网页版去广告
This commit is contained in:
@ -57,6 +57,9 @@ try {
|
||||
entry.content.items = entry.content.items.filter((item) => {
|
||||
const itemContent = item.item?.itemContent || item.itemContent;
|
||||
const isItemAd = item.entryId?.includes("promoted") || itemContent?.promotedMetadata;
|
||||
if (isItemAd) {
|
||||
console.log(`❌TweetDetail去除广告条目2:${item.entryId}`);
|
||||
}
|
||||
return !isItemAd;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user