Compare commits

...

3 Commits

Author SHA1 Message Date
0aa1f131ce update weibo 2025-11-01 17:20:48 +08:00
a0b4aa8c10 update weibo 2025-11-01 17:14:22 +08:00
ee04bd481e update something 2025-11-01 17:02:37 +08:00
4 changed files with 25 additions and 22 deletions

View File

@ -73,7 +73,7 @@ DOMAIN, adpinpai.video.weibocdn.com, REJECT
# 屏蔽首页左上角每日的弹窗tips
^https?:\/\/m?api\.weibo\.c(n|om)\/\d/push\/daily reject-dict
# 超话按钮的提示
^https?:\/\/api\.weibo\.c(n|om)\/2\/!\/huati\/(discovery_home_bottom_getdotinfo|mobile_discovery_searchchange)\? reject-dict
^https?:\/\/m?api\.weibo\.c(n|om)\/2\/!\/huati\/(discovery_home_bottom_getdotinfo|mobile_discovery_searchchange)\? reject-dict
# 开屏广告
^https?:\/\/bootrealtime\.uve\.weibo\.com\/v\d\/ad\/realtime reject-dict
^https?:\/\/bootpreload\.uve\.weibo\.com\/v\d\/ad\/preload reject-dict
@ -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]
# 微博移除发现页广告

View File

@ -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

View File

@ -1,7 +1,7 @@
/**
* @author fmz200
* @function 微博去广告
* @date 2025-10-12 10:15:00
* @date 2025-11-01 17:15:00
*/
let url = $request.url;
@ -224,8 +224,8 @@ function removeHeaderAds(headerItems) {
function removeCommonAds(items) {
// 模块类型,不在里面的都计划删除
// 17微博热搜101热门微博
const cardTypes = [17, 101];
// 17微博热搜235新版微博热搜101热门微博
const cardTypes = [17, 235, 101];
let firstVerticalFound = false;
for (let i = 0; i < items.length; i++) {
@ -249,8 +249,11 @@ function removeCommonAds(items) {
}
// 1.1、"微博热搜"模块
if (card_type === 17) {
console.log('处理微博热搜模块💕💕');
console.log('处理微博热搜模块17💕');
removeHotSearchAds(items[i].data.group);
} else if (card_type === 235) {
console.log('处理微博热搜模块235💕');
removeHotSearchAds(items[i].data.channel_list[0]?.group);
}
// 118横版广告图片 182热议话题 217错过了热词 247横版视频广告 236微博趋势
// 删除信息流中的图片广告、推广

View File

@ -71,7 +71,7 @@ http-response-jq ^https?:\/\/weibointl\.api\.weibo\.cn\/portal\.php\?a=trends& '
^https?:\/\/m?api\.weibo\.c(n|om)\/\d/push\/daily data-type=text data="{}" status-code=200 header="Content-Type:application/json"
# 超话按钮的提示
^https?:\/\/api\.weibo\.c(n|om)\/2\/!\/huati\/(discovery_home_bottom_getdotinfo|mobile_discovery_searchchange)\? data-type=text data="{}" status-code=200 header="Content-Type:application/json"
^https?:\/\/m?api\.weibo\.c(n|om)\/2\/!\/huati\/(discovery_home_bottom_getdotinfo|mobile_discovery_searchchange)\? data-type=text data="{}" status-code=200 header="Content-Type:application/json"
# 开屏广告
^https?:\/\/bootrealtime\.uve\.weibo\.com\/v\d\/ad\/realtime data-type=text data="{}" status-code=200 header="Content-Type:application/json"
@ -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