# 本脚本合集订阅用于Remove Ads + unlock vip.
# 需要配置 CA 证书并启用 MitM 开关.
# https://raw.githubusercontent.com/jnlaoshu/MySelf/master/Loon/Script.conf

# Boxjs
http-request ^https?://boxjs.net script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/box/chavy.boxjs.js, requires-body=true, timeout=120, tag=BoxJs.net

# 扫描全能王高级会员 ap*.intsig.net
http-response https:\/\/(api|api-cs)\.intsig\.net\/purchase\/cs\/query_property\? requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/jnlaoshu/MySelf/master/Script/CamScanner.js

# Nicegram会员
http-request ^https?:\/\/restore-access\.indream\.app\/restoreAccess\?id=\w+$ script-path=https://raw.githubusercontent.com/jnlaoshu/MySelf/main/Script/Nicegram.js, timeout=10, tag=Nicegram会员

# notability
http-response ^https:\/\/notability\.com\/subscriptions script-path=https://raw.githubusercontent.com/PoetryU/Scientist/master/Scripts/notabilityvip.js, request-body=true

# TF 下载 testflight.apple.com,
http-request ^https?:\/\/testflight\.apple\.com\/v\d\/accounts\/.+?\/install$ requires-body=1,max-size=0,script-path=https://gist.githubusercontent.com/NobyDa/9be418b93afc5e9c8a8f4d28ae403cf2/raw/TF_Download.js, tag=TF区域限制解除

# VUE pro api.vuevideo.net
http-response https:\/\/api\.vuevideo\.net\/api\/v1\/(users\/.+\/profile|subtitle\/prepare) requires-body=true,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/VUE.js, tag=VUE pr

# > vsco vsco.co, api.revenuecat.com
http-response ^https:\/\/(api\.revenuecat\.com\/v\d\/subscribers|vsco\.co\/api\/subscriptions\/\d\.\d\/user-subscriptions)\/ script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/vsco.js, requires-body=true, tag=VSCO

# 百度(全站替换为手机百度 Quark 的 User-Agent)*.baidu.com,
http-request ^https?:\/\/(?!d\.pcs).*(?<!map)\.baidu\.com, script-path=https://raw.githubusercontent.com/zZPiglet/Task/master/asset/BaiduChangeUA.js, tag=BaiduChangeUA

# > 抖音 Remove Ad & Logo
# 需配合URL Rewrite使用 
http-response ^https?:\/\/aweme\.snssdk\.com\/aweme\/v1\/(feed|aweme\/post|follow\/feed|nearby\/feed|search\/item|general\/search\/single|hot\/search\/video\/list)\/ script-path=https://Choler.github.io/Surge/Script/douyin.js, requires-body=true, timeout=10, tag=douyin.js

# 京东历史价格及去开屏广告 api.m.jd.com
^https?://api\.m\.jd\.com/(client\.action|api)\?functionId=(wareBusiness|serverConfig|basicConfig|lite_wareBusiness|pingou_item) url script-response-body https://raw.githubusercontent.com/zwf234/rules/master/js/jd_price.js, tag=京东比价
http-response ^https?:\/\/hd\.mina\.mi\.com\/splashscreen\/alert requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.js,tag=京东_开屏去广告

# 酷我音乐SVIP vip1.kuwo.cn
http-response ^https?:\/\/vip1\.kuwo\.cn\/(vip\/v2\/user\/vip|vip\/spi/mservice) requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/Kuwo.js

# 美颜相机一次性解锁内购(by黑黑酱)
http-response ^https:\/\/api\.meiyan\.com\/iap\/verify\.json script-path=https://raw.githubusercontent.com/nzw9314/QuantumultX/master/Script/myxj.js, requires-body=true, timeout=10, tag=美颜相机

# 淘宝比价 历史价格在“保障”中显示,需要点击“保障”才能看到. trade-acs.m.taobao.com
^http://.+/amdc/mobileDispatch url script-request-body https://raw.githubusercontent.com/zwf234/rules/master/js/tb_price.js, tag=淘宝历史价格
^https?://trade-acs\.m\.taobao\.com/gw/mtop\.taobao\.detail\.getdetail url script-response-body https://raw.githubusercontent.com/zwf234/rules/master/js/tb_price.js, tag=淘宝历史价格

# 微博去广告
http-response ^https?://(sdk|wb)app\.uve\.weibo\.com(/interface/sdk/sdkad.php|/wbapplua/wbpullad.lua) requires-body=true,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/wb_launch.js, tag=微博去广告
http-response ^https?://m?api\.weibo\.c(n|om)/2/(statuses/(unread|extend|positives/get|(friends|video)(/|_)(mix)?timeline)|stories/(video_stream|home_list)|(groups|fangle)/timeline|profile/statuses|comments/build_comments|photo/recommend_list|service/picfeed|searchall|cardlist|page|!/photos/pic_recommend_status|video/tiny_stream_video_list|photo/info) requires-body=true,max-size=-1,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/wb_ad.js, tag=微博去广告

# 微信去广告 mp.weixin.qq.com
http-response ^https?:\/\/mp\.weixin\.qq\.com\/mp\/getappmsgad requires-body=1,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/Wechat.js, tag=微信去广告
# 解除微信链接限制
http-response ^https\:\/\/(weixin110\.qq|security.wechat)\.com\/cgi-bin\/mmspamsupport-bin\/newredirectconfirmcgi\? script-path=https://raw.githubusercontent.com/zZPiglet/Task/master/asset/UnblockURLinWeChat.js, requires-body=true, timeout=10, tag=解除微信链接限制

# 小影解锁Vip xy-viva.kakalili.com
http-response ^https:\/\/xy-viva\.kakalili\.com\/api\/rest\/u\/vipVerifyReceipt script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/vivavideo.js, requires-body=true, timeout=10, tag=小影 

# 有道云笔记 note.youdao.com
http-response https://note.youdao.com/yws/(mapi/payment|api/self) script-path=https://raw.githubusercontent.com/Alex0510/Eric/master/surge/Script/ydybj.js, requires-body=true, timeout=10, tag=有道云笔记

hostname = testflight.apple.com,ap*.intsig.net,restore-access.indream.app,notability.com,api.vuevideo.net,vsco.co, api.revenuecat.com,*.baidu.com, aweme.snssdk.com,api.m.jd.com,vip1.kuwo.cn,api.meiyan.com,trade-acs.m.taobao.com,api.weibo.cn,mapi.weibo.com,*.uve.weibo.com,weixin110.qq.com,mp.weixin.qq.com,xy-viva.kakalili.com,note.youdao.com