Compare commits
2 Commits
b1704d96f1
...
3891fdb8c5
| Author | SHA1 | Date | |
|---|---|---|---|
| 3891fdb8c5 | |||
| b25e37300f |
88
Scripts/X/X_ads.js
Normal file
88
Scripts/X/X_ads.js
Normal file
File diff suppressed because one or more lines are too long
9
Surge/module/RedditTranslation.module
Normal file
9
Surge/module/RedditTranslation.module
Normal 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
|
||||
@ -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
|
||||
Reference in New Issue
Block a user