add X(Twitter)网页版去广告

This commit is contained in:
king
2026-04-26 23:15:24 +08:00
parent b1704d96f1
commit b25e37300f
2 changed files with 92 additions and 1 deletions

View File

@ -13,7 +13,10 @@
[Body Rewrite]
# 首页信息流中的推广
http-response-jq ^https?:\/\/x\.com\/i\/api\/graphql\/[^\/]+\/HomeTimeline '.data.home.home_timeline_urt.instructions[]?.entries |= map(select(.content.itemContent.promotedMetadata == null and (.entryId | startswith("promoted-tweet-") | not)))'
# http-response-jq ^https?:\/\/x\.com\/i\/api\/graphql\/[^\/]+\/HomeTimeline '.data.home.home_timeline_urt.instructions[]?.entries |= map(select(.content.itemContent.promotedMetadata == null and (.entryId | startswith("promoted-tweet-") | not)))'
[Script]
X网页版去广告 = type=http-response,pattern=^https?:\/\/x\.com\/i\/api\/graphql\/[^\/]+\/(HomeTimeline|TweetDetail),requires-body=1,max-size=0,binary-body-mode=0,script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/X/X_ads.js
[MITM]
hostname = %APPEND% x.com