#!name=京东
#!desc=某些APP要清除缓存或者重新安装拦截广告才会生效！
#!author=奶思
#!homepage=https://github.com/fmz200/wool_scripts
#!icon=https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/gif/naisi-01.gif
#!raw-url=https://github.com/fmz200/wool_scripts/raw/main/Loon/plugin/split/partJ/JD.com.lpx
#!tg-group=https://t.me/lanjieguanggao
#!date=2025-08-21 22:37:00
#############################################

[Argument]
jkds_enable = switch,true,false,tag=京东-脚本开关

[Rule]
DOMAIN-SUFFIX,jzt.jd.com, REJECT
DOMAIN-SUFFIX,img-x.jd.com, REJECT
DOMAIN-SUFFIX,du.jd.com, REJECT
DOMAIN-SUFFIX,c-nfa.jd.com, REJECT
DOMAIN-SUFFIX,cm.jd.com, REJECT
DOMAIN-SUFFIX,jddebug.com, REJECT
DOMAIN-SUFFIX,policy.jd.com, REJECT
DOMAIN-SUFFIX,kepler.jd.com, REJECT
DOMAIN-SUFFIX,bdsp.x.jd.com, REJECT
DOMAIN-SUFFIX,keplerapi.jd.com, REJECT
DOMAIN-SUFFIX,mapi.m.jd.com, REJECT
DOMAIN-SUFFIX, ad.3.cn, REJECT
DOMAIN-SUFFIX, jd.c-ptsp.com.cn, REJECT
# 屏蔽DNS, REJECT
DOMAIN, dns.jd.com, REJECT
IP-CIDR, 101.124.19.122/32, no-resolve, REJECT
IP-CIDR6,2402:db40:5100:1011::5/128, no-resolve, REJECT


[Rewrite]
# 禁京东直播小窗
^https?:\/\/api\.m\.jd\.com\/client\.action\?functionId=getWidgetV1052 reject


[Script]
http-response ^https:\/\/api\.m\.jd\.com\/client\.action\?functionId=(deliverLayer|getTabHomeInfo|myOrderInfo|orderTrackBusiness|personinfoBusiness|start|welcomeHome) script-path=https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/jingdong/jingdong.js, requires-body=true, timeout=60, tag=京东, enable={jkds_enable}


[MITM]
hostname = api.m.jd.com, dns.jd.com