Compare commits

...

2 Commits

Author SHA1 Message Date
3891fdb8c5 创建 RedditTranslation.module 2026-04-27 12:21:10 +08:00
b25e37300f add X(Twitter)网页版去广告 2026-04-26 23:15:24 +08:00
3 changed files with 101 additions and 1 deletions

88
Scripts/X/X_ads.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,9 @@
#!name=Reddit 自动翻译
#!desc=自动注入 x-reddit-translations 开启 Reddit App 翻译功能
#!author=RavelloH
[Script]
Reddit自动翻译 = type=http-request, pattern=^https?:\/\/gql(-fed)?\.reddit\.com, script-path=https://gist.github.com/RavelloH/68ed0626dae69a1ce7c8ad6887087ea1/raw/c008127260bc4dcd550fcd98285048cf6176f602/main.js
[MITM]
hostname = %APPEND% gql.reddit.com, gql-fed.reddit.com

View File

@ -13,7 +13,10 @@
[Body Rewrite] [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] [MITM]
hostname = %APPEND% x.com hostname = %APPEND% x.com