-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathzhihu.sgmodule
More file actions
15 lines (15 loc) · 1.15 KB
/
zhihu.sgmodule
File metadata and controls
15 lines (15 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!name=Zhihu Web
#!desc=Cleanse the Zhihu
[Rule]
URL-REGEX,https://www\.zhihu\.com/api/v4/answers/\d+/related-readings,REJECT
URL-REGEX,https://www\.zhihu\.com/api/v4/questions/\d+/related-readings,REJECT
URL-REGEX,https://www\.zhihu\.com/api/v4/hot_recommendation,REJECT
URL-REGEX,https://www\.zhihu\.com/commercial_api/banners_v3/mobile_banner,REJECT
URL-REGEX,https://zhuanlan\.zhihu\.com/api/articles/\d+/recommendation,REJECT
[Header Rewrite]
^https:\/\/www\.zhihu\.com\/ header-replace User-Agent "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 Quark/604.1 T7/10.7 SearchCraft/2.7.7 (Baidu; P1 9.0.0)"
[Script]
Zhihu = type=http-response,pattern=https://zhuanlan\.zhihu\.com/p/,requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/id77/QuantumultX/master/Script/zhihu.js,script-update-interval=0
Zhihu = type=http-response,pattern=^https://www\.zhihu\.com/question/,requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/id77/QuantumultX/master/Script/zhihu.js,script-update-interval=0
[MITM]
hostname = %APPEND% www.zhihu.com zhuanlan.zhihu.com