diff --git a/Loon/plugin/weibo.plugin b/Loon/plugin/weibo.plugin index 6675a80d..e74119a3 100644 --- a/Loon/plugin/weibo.plugin +++ b/Loon/plugin/weibo.plugin @@ -10,7 +10,7 @@ #!system = iOS, iPadOS #!system_version = #!loon_version = -#!date=2025-07-02 19:30:17 +#!date=2025-07-30 14:30:17 ############################################# # > "reject" 策略返回 HTTP 状态码 404,不附带任何额外内容 # > "reject-200" 策略返回 HTTP 状态码 200,不附带任何额外内容 @@ -124,7 +124,7 @@ http-response ^https?:\/\/m?api\.weibo\.c(n|om)\/2\/groups\/allgroups\/v2 script # 微博评论区广告 http-response ^https?:\/\/m?api\.weibo\.c(n|om)\/2\/comments\/mix_comments\? script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60, tag=微博评论区广告, enable={RemoveCommentAds} -http-response ^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/container_detail_comment\? script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60, tag=微博评论区广告, enable={RemoveCommentAds} +http-response ^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/(container_detail_comment|container_detail_mix)\? script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60, tag=微博评论区广告, enable={RemoveCommentAds} # 微博转发区广告 http-response ^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/container_detail_forward\? script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60, tag=微博转发区广告, enable={RemoveRepostAds} diff --git a/QuantumultX/rewrite/weibo.snippet b/QuantumultX/rewrite/weibo.snippet index 56975c3f..605a0e8b 100644 --- a/QuantumultX/rewrite/weibo.snippet +++ b/QuantumultX/rewrite/weibo.snippet @@ -10,7 +10,7 @@ #!system = iOS, iPadOS #!system_version = #!loon_version = -#!date=2025-07-02 19:30:17 +#!date=2025-07-30 14:30:17 ############################################# # > "reject" 策略返回 HTTP 状态码 404,不附带任何额外内容 # > "reject-200" 策略返回 HTTP 状态码 200,不附带任何额外内容 @@ -81,7 +81,7 @@ hostname = *.weibo.cn, *.weibo.com, weibo.com # 微博评论区广告 ^https?:\/\/m?api\.weibo\.c(n|om)\/2\/comments\/mix_comments\? Weibo url-and-header script-response-body https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js -^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/container_detail_comment\? Weibo url-and-header script-response-body https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js +^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/(container_detail_comment|container_detail_mix)\? Weibo url-and-header script-response-body https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js # 转发区广告 ^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/container_detail_forward\? Weibo url-and-header script-response-body https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js diff --git a/Scripts/weibo/weibo_ads.js b/Scripts/weibo/weibo_ads.js index 3d9b14c4..da878cba 100644 --- a/Scripts/weibo/weibo_ads.js +++ b/Scripts/weibo/weibo_ads.js @@ -1,7 +1,7 @@ /** * @author fmz200 * @function 微博去广告 - * @date 2025-07-09 19:00:00 + * @date 2025-07-30 14:30:17 */ let url = $request.url; @@ -70,6 +70,10 @@ try { resp_data.pageHeader.data.items = resp_data.pageHeader.data.items.filter(item => item?.category !== 'card' && item?.category !== "group" && item?.category !== "wboxcard" && item?.type !== 'share' ); + // 详情页面的关注悬浮横幅 + if (resp_data.detailInfo?.extend?.follow_data) { + delete resp_data.detailInfo.extend.follow_data; + } } // 6、移除微博首页的多余tab页 微博首页Tab标签页 @@ -154,7 +158,7 @@ try { resp_data.datas = resp_data.datas.filter(item => item.adType !== "广告"); console.log('处理评论区广告结束💕💕'); } - if (url.includes("/statuses/container_detail_comment?")) { + if (url.includes("/statuses/container_detail_comment?") || url.includes("/statuses/container_detail_mix?")) { resp_data.items = resp_data.items.filter(item => item.type !== "trend" && !item.commentAdType); console.log('处理评论区广告结束💕💕'); } diff --git a/Surge/module/weibo.module b/Surge/module/weibo.module index 43f69379..7d6d3049 100644 --- a/Surge/module/weibo.module +++ b/Surge/module/weibo.module @@ -8,7 +8,7 @@ #!tg-group=https://t.me/lanjieguanggao #!tag=去广告, 微博, fmz200 #!system=ios -#!date=2025-07-02 19:30:17 +#!date=2025-07-30 14:30:17 [Rule] # 收集用户信息,上传用户日志的请求 @@ -113,12 +113,10 @@ http-response-jq ^https:\/\/api\.weibo\.cn\/2\/cardlist\? 'del(.items[] | select # 微博评论区广告 微博评论区广告 = type=http-response, pattern=^https?:\/\/m?api\.weibo\.c(n|om)\/2\/comments\/mix_comments\?, script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60 - -微博评论区广告 = type=http-response, pattern=^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/container_detail_comment\?, script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60 +微博评论区广告 = type=http-response, pattern=^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/(container_detail_comment|container_detail_mix)\?, script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60 # 微博转发区广告 微博转发区广告 = type=http-response, pattern=^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/container_detail_forward\?, script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_ads.js, requires-body=true, timeout=60 - 微博转发区广告 = type=http-response, pattern=^https?:\/\/m?api\.weibo\.c(n|om)\/2\/statuses\/repost_timeline\?, script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/weibo/weibo_main.js, requires-body=true, timeout=60 # 微博去广告以及去除各部分推广模块 - cherish