feat: 更新 部分脚本(powered by @ddgksf2013)

This commit is contained in:
Demo 2023-05-10 21:08:19 +08:00
parent 3973c7e6d2
commit 2861009512
2 changed files with 28 additions and 27 deletions

View File

@ -1,16 +1,25 @@
/**
* @ScriptName Cainiao.adblock
* @ScriptDescription 菜鸟[菜鸟裹裹]☆净化
* @LastUpdateTime 2023-02-03
* @Version V1.0.4
* @Remark
*/
// ==UserScript==
// @ScriptName 菜鸟[菜鸟裹裹](支付宝小程序)净化[墨鱼版]
// @Author @ddgksf2013
// @ForHelp 若有屏蔽广告的需求可公众号后台回复APP名称
// @WechatID 公众号墨鱼手记
// @TgChannel https://t.me/ddgksf2021
// @Contribute https://t.me/ddgksf2013_bot
// @Feedback 📮 ddgksf2013@163.com 📮
// @UpdateTime 2023-04-25
// @Suitable 自行观看“# > ”注释内容
// @Attention 使用前请卸载菜鸟APP挂载脚本然后使用
// @Attention 如需引用请注明出处,谢谢合作!
// @Version V1.0.7
// @ScriptURL https://github.com/ddgksf2013/Rewrite/raw/master/AdBlock/Cainiao.conf
// ==/UserScript==
hostname=cn-acs.m.cainiao.com
# > 菜鸟裹裹_请自行添加本地分流@ddgksf2013
;host, amdc.m.taobao.com, reject
hostname=cn-acs.m.cainiao.com, guide-acs.m.taobao.com
# > 菜鸟裹裹_amdc处理[Anti已将Amdc分流删除,故更换屏蔽策略]@ddgksf2013
^http:\/\/amdc\.m\.taobao\.com url script-response-body https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/Amdc.min.js
# > 菜鸟裹裹_首页中部的惊喜福利推广@ddgksf2013
^https?:\/\/cn-acs\.m\.cainiao\.com\/gw\/mtop\.cainiao\.nbpresentation\.protocol\.homepage\.get\.cn url script-response-body https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/Cainiao.js
# > 菜鸟裹裹_搜索框下方今日好物推荐@ddgksf2013
@ -18,4 +27,12 @@ hostname=cn-acs.m.cainiao.com
# > 菜鸟裹裹_首页底部商品推广@ddgksf2013
^https?:\/\/cn-acs\.m\.cainiao\.com\/gw\/mtop\.cainiao\.guoguo\.nbnetflow\.ads\.index\.cn url script-response-body https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/Cainiao.js
# > 菜鸟裹裹_通用广告请求@ddgksf2013
^https?:\/\/cn-acs\.m\.cainiao\.com\/gw\/mtop\.cainiao\.guoguo\.nbnetflow\.ads\.(show|mshow)\.cn url reject-200
^https?:\/\/cn-acs\.m\.cainiao\.com\/gw\/mtop\.cainiao\.guoguo\.nbnetflow\.ads\.(show|mshow)\.cn\/ url reject-200
# > 菜鸟裹裹_支付宝小程序_通用广告请求@ddgksf2013
^https?:\/\/guide-acs\.m\.taobao\.com\/gw\/mtop\.cainiao\.guoguo\.nbnetflow\.ads\.show url reject-200
# > 菜鸟裹裹_支付宝小程序_底部商品推广@ddgksf2013
^https?:\/\/guide-acs\.m\.taobao\.com\/gw\/mtop\.cainiao\.adx\.flyad\.getad url reject-200
# > 菜鸟裹裹_支付宝小程序_匿名选择@ddgksf2013
^https?:\/\/guide-acs\.m\.taobao\.com\/gw\/mtop\.cainiao\.nbmensa\.research\.researchservice\.consultmerge url reject-200
# > 菜鸟裹裹_支付宝小程序_中部的寄件推广[导致的空白占位后续处理]@ddgksf2013
^https?:\/\/guide-acs\.m\.taobao\.com\/gw\/mtop\.cainiao\.guoguo\.nbnetflow\.ads\.mshow url script-response-body https://cdn.jsdelivr.net/gh/sve1r/Rules-For-Quantumult-X@develop/Scripts/AdBlock/Other/Cainiao.js

View File

@ -1,19 +1,3 @@
/***********************************************
> 应用名称墨鱼自用高德地图去广告脚本
> 脚本作者@ddgksf2013
> 微信账号墨鱼手记
> 更新时间2022-04-25
> 通知频道https://t.me/ddgksf2021
> 贡献投稿https://t.me/ddgksf2013_bot
> 问题反馈ddgksf2013@163.com
> 特别提醒如需转载请注明出处谢谢合作
***********************************************/
const version = 'V1.0.28';
var obj=JSON.parse($response.body);if(-1!=$request.url.indexOf("valueadded/alimama/splash_screen")){if(obj.data&&obj.data.ad)for(let a of obj.data.ad)a.set.setting.display_time=0,a.creative[0].start_time=2240150400,a.creative[0].end_time=2240150400;$done({body:JSON.stringify(obj)})}else if(-1!=$request.url.indexOf("faas/amap-navigation/main-page"))obj.data?.cardList&&(obj.data.cardList=Object.values(obj.data.cardList).filter(a=>"LoginCard"==a.dataType)),obj.data?.pull3?.msgs&&(obj.data.pull3.msgs=[]),obj.data?.business_position&&(obj.data.business_position=[]),obj.data?.mapBizList&&(obj.data.mapBizList=[]),$done({body:JSON.stringify(obj)});else if(-1!=$request.url.indexOf("profile/index/node"))delete obj.data.tipData,obj.data?.cardList&&(obj.data.cardList=Object.values(obj.data.cardList).filter(a=>"MyOrderCard"==a.dataType||"GdRecommendCard"==a.dataType)),$done({body:JSON.stringify(obj)});else if(-1!=$request.url.indexOf("new_hotword"))obj.data?.header_hotword&&(obj.data.header_hotword=[]),$done({body:JSON.stringify(obj)});else if(-1!=$request.url.indexOf("ws/promotion-web/resource")){let e=["icon","banner","tips","popup","bubble"];for(let o of e)obj.data?.[o]&&(obj.data[o]=[]);$done({body:JSON.stringify(obj)})}else if(-1!=$request.url.indexOf("ws/msgbox/pull"))obj.msgs&&(obj.msgs=[]),obj.pull3?.msgs&&(obj.pull3.msgs=[]),$done({body:JSON.stringify(obj)});else if(-1!=$request.url.indexOf("ws/message/notice/list"))obj.data?.noticeList&&(obj.data.noticeList=[]),$done({body:JSON.stringify(obj)});else if(-1!=$request.url.indexOf("ws/shield/frogserver/aocs")){for(let t of["gd_notch_logo","home_business_position_config","his_input_tip","operation_layer"])obj.data?.[t]&&(obj.data[t]={status:1,version:"",value:""});$done({body:JSON.stringify(obj)})}else if(-1!=$request.url.indexOf("search/nearbyrec_smart")){let i=["coupon","scene","activity","commodity_rec"];obj.data&&(i.forEach(a=>{delete obj.data[a]}),obj.data.modules&&(obj.data.modules=obj.data.modules.filter(a=>!i.includes(a)))),$done({body:JSON.stringify(obj)})}else $done({});