移除部分过时的代码

This commit is contained in:
blackmatrix7
2025-07-10 14:48:47 +08:00
parent f26b88d5cf
commit 593a8466ae
124 changed files with 0 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
# 什么值得买每日自动签到
http-request ^https?:\/\/zhiyou\.smzdm\.com\/user$ requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,tag=什么值得买_获取cookie
http-request ^https?:\/\/user-api\.smzdm\.com\/user_login\/normal$ requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,tag=什么值得买_获取账号密码
cron "5 0 * * *" script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,timeout=120,tag=什么值得买_每日签到
hostname = zhiyou.smzdm.com,user-api.smzdm.com

View File

@ -0,0 +1,6 @@
# 什么值得买每日自动签到
^https?:\/\/zhiyou\.smzdm\.com\/user$ url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js
^https?:\/\/user-api\.smzdm\.com\/user_login\/normal$ url script-request-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js
hostname = zhiyou.smzdm.com,user-api.smzdm.com

View File

@ -0,0 +1,11 @@
#!name=什么值得买
#!desc=什么值得买每日自动签到与完成任务
#!system=ios
[Script]
什么值得买_每日签到 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,timeout=120,type=cron,cronexp=5 0 * * *
什么值得买_获取cookie = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,type=http-request,requires-body=true,pattern=^https?:\/\/zhiyou\.smzdm\.com\/user$
什么值得买_获取账号密码 = script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/smzdm_checkin.js,type=http-request,requires-body=true,pattern=^https?:\/\/user-api\.smzdm\.com\/user_login\/normal$
[MITM]
hostname = %APPEND% zhiyou.smzdm.com, user-api.smzdm.com

View File

@ -0,0 +1,78 @@
let body = $response.body;
body=JSON.parse(body);
let homepage_regex = /^https?:\/\/homepage-api.smzdm.com\/home/;
let haojia_regex = /^https?:\/\/haojia-api.smzdm.com\/home\/list/;
let article_regex = /^https?:\/\/article-api.smzdm.com\/article\/index_home_page/;
let util_regex = /^https?:\/\/app-api\.smzdm\.com\/util\/update/;
let sou_regex = /^https?:\/\/s-api\.smzdm\.com\/sou\/list/;
// 去除首页推荐广告
if (homepage_regex.test($request.url)){
if (!!body){
if (body['data'].hasOwnProperty('banner')){
if (body['data']['banner'].hasOwnProperty('big_banner')){
delete body['data']['banner']['big_banner'];
}
if (body['data']['banner'].hasOwnProperty('tonglan_banner')){
delete body['data']['banner']['tonglan_banner'];
}
}
if (body.hasOwnProperty('data') && body['data'].hasOwnProperty('rows')){
let rows = body['data']['rows'].filter((item) =>{
return item['model_type'] != 'ads' && item['model_type'] != 'cluster';
})
body['data']['rows'] = rows;
}
delete body['data']['widget'];
}
}
// 好价去广告
else if(haojia_regex.test($request.url)){
if (body['data'].hasOwnProperty('banner')){
if (body['data']['banner'].hasOwnProperty('two_banner')){
delete body['data']['banner']['two_banner'];
}
if (body['data']['banner'].hasOwnProperty('big_banner')){
delete body['data']['banner']['big_banner'];
}
if (body['data']['banner'].hasOwnProperty('calendar_banner')){
delete body['data']['banner']['calendar_banner'];
}
if (body['data']['banner'].hasOwnProperty('hongbao_banner')){
delete body['data']['banner']['hongbao_banner'];
}
}
let rows = body['data']['rows'].filter((item) =>{
return item['tag'] != '广告';
})
body['data']['rows'] = rows;
}
// 社区好文去广告
else if(article_regex.test($request.url)){
if (body['data'].hasOwnProperty('big_banner')){
delete body['data']['big_banner'];
}
if (body['data'].hasOwnProperty('notice')){
delete body['data']['notice'];
}
}
// 去除浮动广告
else if (util_regex.test($request.url)){
delete body['data']['ad_filter'];
delete body['data']['operation_float_7_0'];
delete body['data']['operation_full'];
delete body['data']['operation_float_screen'];
delete body['data']['operation_float'];
}
// 去除搜索结果广告
else if (sou_regex.test($request.url)){
if (body.hasOwnProperty('data') && body['data'].hasOwnProperty('rows')){
let rows = body['data']['rows'].filter((item) =>{
return item['model_type'] != 'ads';
})
body['data']['rows'] = rows;
}
}
body=JSON.stringify(body);
$done({body});

View File

@ -0,0 +1,16 @@
# 什么值得买去广告
[URL Rewrite]
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/banner - reject
^https?:\/\/api\.smzdm\.com\/v\d\/util\/(banner|loading) - reject
^https?:\/\/app-api\.smzdm\.com\/util\/loading - reject
[Script]
http-response ^https?:\/\/homepage-api\.smzdm\.com\/home script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_首页去广告
http-response ^https?:\/\/haojia-api\.smzdm\.com\/home\/list script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_好价去广告
http-response ^https?:\/\/app-api\.smzdm\.com\/util\/update script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_去浮动广告
http-response ^https?:\/\/article-api\.smzdm\.com\/article\/index_home_page script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_首页去广告
http-response ^https?:\/\/s-api\.smzdm\.com\/sou\/list script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js, requires-body=true, timeout=10, tag=什么值得买_搜索去广告
[MITM]
hostname = homepage-api.smzdm.com,haojia-api.smzdm.com,article-api.smzdm.com,haojia.m.smzdm.com,app-api.smzdm.com,s-api.smzdm.com

View File

@ -0,0 +1,19 @@
# 什么值得买去广告
# 详情页去广告
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/banner url reject-dict
# 首页去广告
^https?:\/\/homepage-api\.smzdm\.com\/home url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
# 好价去广告
^https?:\/\/haojia-api\.smzdm\.com\/home\/list url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
# 去浮动广告
^https?:\/\/app-api\.smzdm\.com\/util\/update url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
# 好文去广告
^https?:\/\/article-api\.smzdm\.com\/article\/index_home_page url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
# 搜索去广告
^https?:\/\/s-api\.smzdm\.com\/sou\/list url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
# 其他
^https?:\/\/api\.smzdm\.com\/v\d\/util\/(banner|loading) url reject-dict
^https?:\/\/app-api\.smzdm\.com\/util\/loading url reject-dict
hostname = homepage-api.smzdm.com,haojia-api.smzdm.com,article-api.smzdm.com,haojia.m.smzdm.com,app-api.smzdm.com,s-api.smzdm.com

View File

@ -0,0 +1,18 @@
#!name=什么值得买
#!desc=什么值得买APP去广告
[URL Rewrite]
^https?:\/\/haojia\.m\.smzdm\.com\/detail_modul\/banner - reject
^https?:\/\/api\.smzdm\.com\/v\d\/util\/(banner|loading) - reject
^https?:\/\/app-api\.smzdm\.com\/util\/loading - reject
[Script]
什么值得买_首页去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/homepage-api\.smzdm\.com\/home,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
什么值得买_去浮动广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/app-api\.smzdm\.com\/util\/update,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
什么值得买_好价去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/haojia-api\.smzdm\.com\/home\/list\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
什么值得买_好文去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/article-api\.smzdm\.com\/article\/index_home_page,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
什么值得买_搜索去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/s-api\.smzdm\.com\/sou\/list,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/smzdm/backup/smzdm_remove_ads.js
[MITM]
hostname = %APPEND% homepage-api.smzdm.com,haojia-api.smzdm.com,article-api.smzdm.com,haojia.m.smzdm.com,app-api.smzdm.com,s-api.smzdm.com