From 0aa1f131ce08999b06e9074b22360f4d6b1752ae Mon Sep 17 00:00:00 2001 From: king Date: Sat, 1 Nov 2025 17:20:48 +0800 Subject: [PATCH] update weibo --- Loon/plugin/weibo.plugin | 12 ++++++------ QuantumultX/rewrite/weibo.snippet | 12 ++++++------ Surge/module/weibo.module | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Loon/plugin/weibo.plugin b/Loon/plugin/weibo.plugin index 6101c4a2..7929dd8b 100644 --- a/Loon/plugin/weibo.plugin +++ b/Loon/plugin/weibo.plugin @@ -82,13 +82,13 @@ DOMAIN, adpinpai.video.weibocdn.com, REJECT ^https:\/\/card\.weibo\.com\/article\/m\/aj\/(reward|uvead)\? reject-dict ^https:\/\/weibo\.com\/ttarticle\/x\/m\/aj\/(reward|uvead)\? reject-dict # 微博 -^https?:\/\/api\.weibo\.cn\/2\/!\/huati\/discovery_home_bottom_channels reject-dict -^https?:\/\/api\.weibo\.cn\/2\/!\/chaohua\/discovery\/home_bottom\/switch reject-dict -^https?:\/\/api\.weibo\.cn\/2\/!\/was\/finder\/searchbarchange\? reject-dict -^https?:\/\/api\.weibo\.cn\/2\/logservice\/service\? reject -^https?:\/\/api\.weibo\.cn\/2\/push\/info\? reject +^https?:\/\/m?api\.weibo\.c(n|om)\/2\/!\/huati\/discovery_home_bottom_channels reject-dict +^https?:\/\/m?api\.weibo\.c(n|om)\/2\/!\/chaohua\/discovery\/home_bottom\/switch reject-dict +^https?:\/\/m?api\.weibo\.c(n|om)\/2\/!\/was\/finder\/searchbarchange\? reject-dict +^https?:\/\/m?api\.weibo\.c(n|om)\/2\/logservice\/service\? reject +^https?:\/\/m?api\.weibo\.c(n|om)\/2\/push\/info\? reject # 搜索页面净化 -^https?:\/\/api\.weibo\.cn\/2\/cardlist\? response-body-json-jq 'del(.items[] | select(.category == "group"))' +^https?:\/\/m?api\.weibo\.c(n|om)\/2\/cardlist\? response-body-json-jq 'del(.items[] | select(.category == "group"))' [Script] # 微博移除发现页广告 diff --git a/QuantumultX/rewrite/weibo.snippet b/QuantumultX/rewrite/weibo.snippet index 28b6e067..393275cc 100644 --- a/QuantumultX/rewrite/weibo.snippet +++ b/QuantumultX/rewrite/weibo.snippet @@ -75,16 +75,16 @@ host, bootpreload.uve.weibo.com, reject ############################################# 微博国内版去广告 ############################################# # User-Agent: Weibo/83823 (iPhone; iOS 17.2; Scale/3.00) -^https:\/\/api\.weibo\.cn\/2\/!\/huati\/discovery_home_bottom_channels Weibo url-and-header reject-dict -^https:\/\/api\.weibo\.cn\/2\/!\/chaohua\/discovery\/home_bottom\/switch Weibo url-and-header reject-dict -^https:\/\/api\.weibo\.cn\/2\/!\/was\/finder\/searchbarchange\? Weibo url-and-header reject-dict -^https:\/\/api\.weibo\.cn\/2\/push\/info\? Weibo url-and-header reject-dict +^https:\/\/m?api\.weibo\.c(n|om)\/2\/!\/huati\/discovery_home_bottom_channels Weibo url-and-header reject-dict +^https:\/\/m?api\.weibo\.c(n|om)\/2\/!\/chaohua\/discovery\/home_bottom\/switch Weibo url-and-header reject-dict +^https:\/\/m?api\.weibo\.c(n|om)\/2\/!\/was\/finder\/searchbarchange\? Weibo url-and-header reject-dict +^https:\/\/m?api\.weibo\.c(n|om)\/2\/push\/info\? Weibo url-and-header reject-dict # 搜索页面净化 -# ^https?:\/\/api\.weibo\.cn\/2\/cardlist\? url jsonjq-response-body 'del(.items[] | select(.category == "group"))' +# ^https?:\/\/m?api\.weibo\.c(n|om)\/2\/cardlist\? url jsonjq-response-body 'del(.items[] | select(.category == "group"))' # 似乎没用的请求,收集用户信息 -^https?:\/\/api\.weibo\.c(n|om)\/2\/(push\/active|client\/addlog_batch|ad\/preload) Weibo url-and-header script-request-body https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/template/req_replace_body.js +^https?:\/\/m?api\.weibo\.c(n|om)\/2\/(push\/active|client\/addlog_batch|ad\/preload) Weibo url-and-header script-request-body https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/template/req_replace_body.js # 屏蔽首页左上角每日的弹窗tips ^https?:\/\/m?api\.weibo\.c(n|om)\/\d/push/daily Weibo url-and-header reject-dict diff --git a/Surge/module/weibo.module b/Surge/module/weibo.module index bb7a0b82..f2c94cf0 100644 --- a/Surge/module/weibo.module +++ b/Surge/module/weibo.module @@ -82,10 +82,10 @@ http-response-jq ^https?:\/\/weibointl\.api\.weibo\.cn\/portal\.php\?a=trends& ' ^https:\/\/weibo\.com\/ttarticle\/x\/m\/aj\/(reward|uvead)\? data-type=text data="{}" status-code=200 header="Content-Type:application/json" # 微博 -^https:\/\/api\.weibo\.cn\/2\/!\/huati\/discovery_home_bottom_channels data-type=text data="{}" status-code=200 header="Content-Type:application/json" -^https:\/\/api\.weibo\.cn\/2\/!\/chaohua\/discovery\/home_bottom\/switch data-type=text data="{}" status-code=200 header="Content-Type:application/json" -^https:\/\/api\.weibo\.cn\/2\/!\/was\/finder\/searchbarchange\? data-type=text data="{}" status-code=200 header="Content-Type:application/json" -^https:\/\/api\.weibo\.cn\/2\/push\/info\? data-type=text data="{}" status-code=200 header="Content-Type:application/json" +^https:\/\/m?api\.weibo\.c(n|om)\/2\/!\/huati\/discovery_home_bottom_channels data-type=text data="{}" status-code=200 header="Content-Type:application/json" +^https:\/\/m?api\.weibo\.c(n|om)\/2\/!\/chaohua\/discovery\/home_bottom\/switch data-type=text data="{}" status-code=200 header="Content-Type:application/json" +^https:\/\/m?api\.weibo\.c(n|om)\/2\/!\/was\/finder\/searchbarchange\? data-type=text data="{}" status-code=200 header="Content-Type:application/json" +^https:\/\/m?api\.weibo\.c(n|om)\/2\/push\/info\? data-type=text data="{}" status-code=200 header="Content-Type:application/json" [Script] 微博移除发现页广告 = type=http-response, pattern=^https?:\/\/m?api\.weibo\.c(n|om)\/2\/search\/(finder|container_timeline|container_discover)\?, script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60