From 72d489ba867a451353e4e75eca0f481845878c74 Mon Sep 17 00:00:00 2001 From: sve1r Date: Wed, 1 Feb 2023 16:11:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=9B=B8=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=8E=BB=E5=B9=BF=E5=91=8A=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rewrite/AdBlock/StartUp.conf | 28 ++++---- Rewrite/AdBlock/Youtube.conf | 16 +++-- Scripts/AdBlock/JD/jd_search_json.js | 21 +++++- Scripts/AdBlock/JD/jx_startup.js | 17 +++-- Scripts/AdBlock/Other/12306.js | 103 +++------------------------ 5 files changed, 64 insertions(+), 121 deletions(-) diff --git a/Rewrite/AdBlock/StartUp.conf b/Rewrite/AdBlock/StartUp.conf index c8ffdc6..5899e2d 100644 --- a/Rewrite/AdBlock/StartUp.conf +++ b/Rewrite/AdBlock/StartUp.conf @@ -4,23 +4,23 @@ // @TgChannel https://t.me/ddgksf2021 // @TgBot https://t.me/ddgksf2013_bot // @WechatID 公众号墨鱼手记 -// @UpdateTime 2023-01-11 +// @UpdateTime 2023-01-31 // @Please 如需引用请注明出处,谢谢合作! // @Function 去除APP首页启动广告和部分应用内广告,如果有需要的去除广告的APP,可以公众号后台直接回复 // @ExtraTxt Only provide the removal of open-screen advertisements for personally used apps -// @Attention QuantumultX能去广告,不代表能去所有广告!(应用个数:197) +// @Attention QuantumultX能去广告,不代表能去所有广告!(应用个数:200) // @Mark 名字后面的*代表该应用启动倒计时仍然存在 -// @Version V2.0(244) // @Attention 如果广告仍然存在,请卸载应用重新安装,还是不行则表示规则里没有或已失效 // @ScriptURL https://github.com/ddgksf2013/Rewrite/raw/master/AdBlock/StartUp.conf // ==/UserScript== -hostname = mlol.qt.qq.com, gg.caixin.com, app-gw.csdn.net, api.gameplus.qq.com, mrobot.pconline.com.cn, djcapp.game.qq.com, mxsa.mxbc.net, cn-acs.m.cainiao.com, zjdr666.com, api.caiyunapp.com, api.ahmobile.cn, gx.10086.cn, emdcadvertise.eastmoney.com, acs.m.taobao.com, router-app-api.jdcloud.com, api-sams.walmartmobile.cn, creditcardapp.bankcomm.cn, webappcfg.paas.cmbchina.com, m.creditcard.ecitic.com, lban.spdb.com.cn, adapi.izuiyou.com, i.ys7.com, apps.api.ke.com, api.yonghuivip.com, access.mypikpak.com, gateway.shouqiev.com, res.pizzahut.com.cn, api.caijingmobile.com, 3g.csair.com, client-api.oray.com, bgw.xinyue.qq.com, api-new.app.acfun.cn, m.client.10010.com, open.fitdays.cn, gd.10086.cn, gha.ghac.cn, ap.dongqiudi.com, sh-gateway.shihuo.cn, wcprd.hilton.com, ad.12306.cn, 103.91.210.141, adx-cn.anythinktech.com, js-ad.ayximgs.com, api.dangdang.com, pzoap.moedot.com, pipi.4kya.com, vip7.fzwdyy.cn, sdk.alibaba.com.ailbaba.me, tft-app.cdtft.cn, bgw.xinyue.qq.com, pan.baidu.com, yunbusiness.ccb.com, client.app.coc.10086.cn, t1.market.xiaomi.com, api.m.mi.com, app.zhuanzhuan.com, api.cloud.189.cn, appwk.baidu.com, us.l.qq.com, open.e.kuaishou.com, mi.gdt.qq.com, emdcadvertise.eastmoney.com, adm.10jqka.com, a.qiumibao.com, api.tipsoon.com, b.appsimg.com, ios.sspai.com, zconfig.alibabausercontent.com, g.alicdn.com, api.touker.com, mpcs.suning.com, api.pinduoduo.com, api.yangkeduo.com, easyreadfs.nosdn.127.net, sp.kaola.com, gw.kaola.com, mime.baidu.com, learn.chaoxing.com, mapi.dangdang.com, api.dangdang.com, open.e.kuaishou.com, client.qunar.com, mpos-pic.helipay.com, dili.bdatu.com, wap.ngchina.cn, ih2.ireader.com, adpai.thepaper.cn, api.haohaozhu.cn, list-app-m.i4.cn, api.xiachufang.com, jdread-api.jd.com, peisongapi.meituan.com, *gaoqingdianshi.com, *.kakamobi.cn, api.jxedt.com, slapi.oray.net, r.inews.qq.com, app.yinxiang.com, mapi.appvipshop.com, syh.zybang.com, cdn.cmgadx.com, api.internetofcity.cn, img.meituan.net, lcen.xiaote.net, venus.yhd.com, api.shenyin.name, mage*.if.qidian.com, god.gameyw.netease.com, m.ibuscloud.com, e.dangdang.com, app2.autoimg.cn, adproxy.autohome.com.cn, discardrp.umetrip.com, startup.umetrip.com, bp-api.bestv.com.cn, explorer.tratao.com, overseas.weico.cc, 118.178.214.118, dapis.mting.info, acs.m.taobao.com, open3.vistastory.com, ssp.dzh.com.cn, api-access.pangolin-sdk-toutiao.com, maicai.api.ddxq.mobi, www.meituan.com, client.mail.163.com, api.izuiyou.com, appapi.huazhu.com, api.wfdata.club, interface*.music.163.com, api.psy-1.com, res.kfc.com.cn, mp.weixin.qq.com, security.wechat.com, weixin110.qq.com, cdn.*.chelaileapp.cn, api.coolapk.com, edith.xiaohongshu.com, app3.qdaily.com, daoyu.sdo.com, img.jiemian.com, ccsp-egmas.sf-express.com, *.laichon.com, app.ap.d3yuiw4.com, www.i3zh.com, api.yikaobang.com.cn, api-ad-product.huxiu.com, jad-api.jin10.com, mob.mddcloud.com.cn, appactive.1234567.com.cn, rtbapi.douyucdn.cn, service.busi.inke.cn, gab.122.gov.cn, dispatcher.camera360.com, app.api.versa-ai.com, open.taou.com, api.taou.com, track.mm.taou.com, app.dewu.com, data-collector.soulapp.cn, api.gamer.com.tw, beta-api.crunchyroll.com, api.vistopia.com.cn, pss.txffp.com, m.sd.10086.cn, gw.alicdn.com, helper.2bulu.com, 47.100.65.202, api.weibo.cn, mapi.weibo.com, *.uve.weibo.com, new.vip.weibo.cn, wap.js.10086.cn, tagit.hyhuo.com, top-widgets-api.xiaozujian.com, tel.mangaapi.manhuaren.com, apis.lifeweek.com.cn, support.you.163.com, yanxuan.nosdn.127.net, *.peopleapp.com, new-app-api.ylyk.com, gw.aihuishou.com, *.58cdn.com.cn, app.58.com, static.zhihu.com, creditcardapp.bankcomm.com, res.xiaojukeji.com, 116.85.2.15, 116.85.2.14, lchttpapi.xczim.com, business.msstatic.com, mangaapi.manhuaren.com, api.kkmh.com, *.chelaile.net.cn, api.jr.mi.com, api.m.mi.com, guanyu.longfor.com, pages.xiaohongshu.com, www.xiaohongshu.com, elemecdn.com, fuss10.elemecdn.com, www1.elecfans.com, m.tuniu.com, mapi.mafengwo.cn, api.xiaoyi.com, api.douban.com, otheve.beacon.qq.com, mapi.sfbest.com, api.mwee.cn, sso.ifanr.com, s3plus.meituan.net, flowplus.meituan.net, p*.meituan.net, testflight.apple.com, ms.jr.jd.com, wmapi.meituan.com, appconf.mail.163.com, dl-cu-hz.lechange.cn, bdsp-x.jd.com, dsp-x.jd.com, api.m.jd.com, fbchina.flipchina.cn, zone.guiderank-app.com, homefront.qunar.com, afd.baidu.com, *.bdstatic.com, j-image.missfresh.cn, ma-adx.ctrip.com, m.ctrip.com, mbd.baidu.com, img.rr.tv, api.rr.tv, capis.didapinche.com, capis*.didapinche.com, *.hoopchina.com, goblin.hupu.com, spclient.wg.spotify.com +hostname = p0.pipi.cn, app.homeinns.com, uapi.huolala.cn, cdn-evone-ceph.echargenet.com, mlol.qt.qq.com, gg.caixin.com, app-gw.csdn.net, api.gameplus.qq.com, mrobot.pconline.com.cn, djcapp.game.qq.com, mxsa.mxbc.net, cn-acs.m.cainiao.com, zjdr666.com, api.caiyunapp.com, api.ahmobile.cn, gx.10086.cn, emdcadvertise.eastmoney.com, acs.m.taobao.com, router-app-api.jdcloud.com, api-sams.walmartmobile.cn, creditcardapp.bankcomm.cn, webappcfg.paas.cmbchina.com, m.creditcard.ecitic.com, lban.spdb.com.cn, adapi.izuiyou.com, i.ys7.com, apps.api.ke.com, api.yonghuivip.com, access.mypikpak.com, gateway.shouqiev.com, res.pizzahut.com.cn, api.caijingmobile.com, 3g.csair.com, client-api.oray.com, bgw.xinyue.qq.com, api-new.app.acfun.cn, m.client.10010.com, open.fitdays.cn, gd.10086.cn, gha.ghac.cn, ap.dongqiudi.com, sh-gateway.shihuo.cn, wcprd.hilton.com, ad.12306.cn, 103.91.210.141, adx-cn.anythinktech.com, js-ad.ayximgs.com, api.dangdang.com, pzoap.moedot.com, pipi.4kya.com, vip7.fzwdyy.cn, sdk.alibaba.com.ailbaba.me, tft-app.cdtft.cn, bgw.xinyue.qq.com, pan.baidu.com, yunbusiness.ccb.com, client.app.coc.10086.cn, t1.market.xiaomi.com, api.m.mi.com, app.zhuanzhuan.com, api.cloud.189.cn, appwk.baidu.com, us.l.qq.com, open.e.kuaishou.com, mi.gdt.qq.com, emdcadvertise.eastmoney.com, adm.10jqka.com, a.qiumibao.com, api.tipsoon.com, b.appsimg.com, ios.sspai.com, zconfig.alibabausercontent.com, api.touker.com, mpcs.suning.com, api.pinduoduo.com, api.yangkeduo.com, easyreadfs.nosdn.127.net, sp.kaola.com, gw.kaola.com, mime.baidu.com, learn.chaoxing.com, mapi.dangdang.com, api.dangdang.com, open.e.kuaishou.com, client.qunar.com, mpos-pic.helipay.com, dili.bdatu.com, wap.ngchina.cn, ih2.ireader.com, adpai.thepaper.cn, api.haohaozhu.cn, list-app-m.i4.cn, api.xiachufang.com, jdread-api.jd.com, peisongapi.meituan.com, *gaoqingdianshi.com, *.kakamobi.cn, api.jxedt.com, slapi.oray.net, r.inews.qq.com, app.yinxiang.com, mapi.appvipshop.com, syh.zybang.com, cdn.cmgadx.com, api.internetofcity.cn, img.meituan.net, lcen.xiaote.net, venus.yhd.com, api.shenyin.name, mage*.if.qidian.com, god.gameyw.netease.com, m.ibuscloud.com, e.dangdang.com, app2.autoimg.cn, adproxy.autohome.com.cn, discardrp.umetrip.com, startup.umetrip.com, bp-api.bestv.com.cn, explorer.tratao.com, overseas.weico.cc, 118.178.214.118, dapis.mting.info, acs.m.taobao.com, open3.vistastory.com, ssp.dzh.com.cn, api-access.pangolin-sdk-toutiao.com, maicai.api.ddxq.mobi, www.meituan.com, client.mail.163.com, api.izuiyou.com, appapi.huazhu.com, api.wfdata.club, interface*.music.163.com, api.psy-1.com, res.kfc.com.cn, mp.weixin.qq.com, security.wechat.com, weixin110.qq.com, cdn.*.chelaileapp.cn, api.coolapk.com, app3.qdaily.com, daoyu.sdo.com, img.jiemian.com, ccsp-egmas.sf-express.com, *.laichon.com, app.ap.d3yuiw4.com, www.i3zh.com, api.yikaobang.com.cn, api-ad-product.huxiu.com, jad-api.jin10.com, mob.mddcloud.com.cn, appactive.1234567.com.cn, rtbapi.douyucdn.cn, service.busi.inke.cn, gab.122.gov.cn, dispatcher.camera360.com, app.api.versa-ai.com, open.taou.com, api.taou.com, track.mm.taou.com, app.dewu.com, data-collector.soulapp.cn, api.gamer.com.tw, beta-api.crunchyroll.com, api.vistopia.com.cn, pss.txffp.com, m.sd.10086.cn, helper.2bulu.com, 47.100.65.202, api.weibo.cn, mapi.weibo.com, *.uve.weibo.com, new.vip.weibo.cn, wap.js.10086.cn, tagit.hyhuo.com, top-widgets-api.xiaozujian.com, tel.mangaapi.manhuaren.com, apis.lifeweek.com.cn, support.you.163.com, yanxuan.nosdn.127.net, *.peopleapp.com, new-app-api.ylyk.com, gw.aihuishou.com, *.58cdn.com.cn, app.58.com, static.zhihu.com, creditcardapp.bankcomm.com, res.xiaojukeji.com, 116.85.2.15, 116.85.2.14, lchttpapi.xczim.com, business.msstatic.com, mangaapi.manhuaren.com, api.kkmh.com, *.chelaile.net.cn, api.jr.mi.com, api.m.mi.com, guanyu.longfor.com, elemecdn.com, fuss10.elemecdn.com, www1.elecfans.com, m.tuniu.com, mapi.mafengwo.cn, api.xiaoyi.com, api.douban.com, otheve.beacon.qq.com, mapi.sfbest.com, api.mwee.cn, sso.ifanr.com, s3plus.meituan.net, flowplus.meituan.net, p*.meituan.net, testflight.apple.com, ms.jr.jd.com, wmapi.meituan.com, appconf.mail.163.com, dl-cu-hz.lechange.cn, bdsp-x.jd.com, dsp-x.jd.com, api.m.jd.com, fbchina.flipchina.cn, zone.guiderank-app.com, homefront.qunar.com, afd.baidu.com, *.bdstatic.com, j-image.missfresh.cn, ma-adx.ctrip.com, m.ctrip.com, mbd.baidu.com, img.rr.tv, api.rr.tv, capis.didapinche.com, capis*.didapinche.com, *.hoopchina.com, goblin.hupu.com, spclient.wg.spotify.com # ======= 0~9 ======= # +# > version +^https?:\/\/2023.01.31\/v2.0.250 url reject # > 58 -^https?:\/\/.+\.58cdn\.com\.cn\/brandads\/ url reject ^https?:\/\/app\.58\.com\/api\/home\/(advertising|appadv) url reject # > 555 ^https:\/\/vip7\.fzwdyy\.cn:8083\/api\/(getAdvertInfo|getGOOGAdvert) url reject @@ -38,11 +38,6 @@ hostname = mlol.qt.qq.com, gg.caixin.com, app-gw.csdn.net, api.gameplus.qq.com, ^https?:\/\/gw.aihuishou.com\/app-portal\/home\/getadvertisement url reject # > appso ^https?:\/\/sso.ifanr.com\/jiong\/IOS\/appso\/splash\/ url reject -# > aiqiyi -^https?:\/\/.+\/cdn\/qiyiapp\/\d{8}\/.+&dis_dz= url reject-img -^https?:\/\/.+\/cdn\/qiyiapp\/\d{8}\/.+&z=\w url reject-img -^https?:\/\/.+\/videos\/other\/ url reject -^https?:\/\/iface2\.iqiyi\.com\/fusion\/3\.0\/fusion_switch url reject-img # > alibaba ^https?:\/\/acs\.m\.taobao\.com\/gw\/mtop\.alibaba\.advertisementservice\.getadv\/ url reject @@ -148,6 +143,8 @@ https?:\/\/res\.xiaojukeji\.com\/resapi\/activity\/get(Ruled|Preload|PasMultiNot ^https?:\/\/fuss10.elemecdn.com\/.+\/w\/750\/h\/\d{3,4} url reject ^https?:\/\/fuss10.elemecdn.com\/.+.mp4 url reject ^https?:\/\/www1.elecfans.com\/www\/delivery\/ url reject +# > echongdian +^https?:\/\/cdn-evone-ceph\.echargenet\.com\/gw-emas-cdn\/63c4e3b558bb610008969f89 url reject-200 # ======= F ======= # @@ -206,6 +203,8 @@ https://fbchina.flipchina.cn/v2/ad/query/* url reject ^https?:\/\/api\.haohaozhu\.cn\/index\.php\/home\/AppInit\/getStartPhoto url reject # > huabaozhitou ^https?:\/\/api\.touker\.com\/v2\/IAdvertisementAPI\.queryStartAdvertisement url reject +# > huolala +^https?:\/\/uapi\.huolala\.cn\/\?_m=open.*?advertising url reject # ======= I ======= # @@ -326,6 +325,8 @@ https?:\/\/helper\.2bulu\.com\/(greenPea\/queryTasks|proSpecial\/allData|saveSpl ^https?:\/\/creditcardapp\.bankcomm\.cn\/mappweb_interface\/common\/(qryPopAds|qryLaunchAds)\.do url reject # > mixuebingcheng ^https:\/\/mxsa\.mxbc\.net\/api\/v1\/adinfo\/limitedAds$ url reject +# > maoyan* +^https?:\/\/p0\.pipi\.cn\/adAdmin\/\w+.jpg\? url reject-img # ======= N ======= # @@ -410,6 +411,8 @@ https://ccsp-egmas.sf-express.com/cx-app-base/base/app/ad/queryAdImages url reje ^https?:\/\/api-sams\.walmartmobile\.cn\/api\/v1\/sams\/sams-user\/(window\/getGoUpPlus|screen_promotion\/get) url reject # > shanxianyixia ^https:\/\/api\.gameplus\.qq\.com\/community\.OnloadSrv\/GetPreloadScreenInfo url reject +# > shoulvrujia +^https?:\/\/app\.homeinns\.com\/api\/landing url reject # ======= T ======= # @@ -422,7 +425,6 @@ https://ccsp-egmas.sf-express.com/cx-app-base/base/app/ad/queryAdImages url reje ^https?:\/\/api\.cloud\.189\.cn\/guns\/getOpenscreenBanners url reject # > tianmaojingling ^https?:\/\/zconfig\.alibabausercontent\.com\/zconfig url reject -^https?:\/\/g\.alicdn\.com\/living\/mesh-std-spec url reject # > testflight ^https?:\/\/testflight\.apple\.com\/v2\/accounts\/.*\/apps\/\d*/builds/\d*/install url request-body storefrontId" : ".*" request-body storefrontId" : "143441-1,29" # > TengXunShouJiGuanJia @@ -516,10 +518,6 @@ https:\/\/yanxuan.nosdn.127.net\/.*\.mp4 url reject ^https:\/\/mbd\.baidu\.com\/newspage\/api\/getmobads\?page\=landingshare url reject # > XiChuangZhu ^https?:\/\/lchttpapi\.xczim\.com\/1\.1\/functions\/getLaunchImageForIOS url reject -# > XianYu -^https:\/\/gw.alicdn.com\/mt\/ url reject -^https:\/\/gw.alicdn.com\/tfs\/.+\d{3,4}-\d{4} url reject -^https:\/\/gw.alicdn.com\/tps\/.+\d{3,4}-\d{4} url reject # > XiaoYi ^https://api.xiaoyi.com\/v5\/app\/mobile\/ads url reject ^https://api.xiaoyi.com\/v5\/app\/config\?userid=.* url reject diff --git a/Rewrite/AdBlock/Youtube.conf b/Rewrite/AdBlock/Youtube.conf index e500df6..b3f088c 100644 --- a/Rewrite/AdBlock/Youtube.conf +++ b/Rewrite/AdBlock/Youtube.conf @@ -1,9 +1,15 @@ hostname = -redirector*.googlevideo.com,*.googlevideo.com,www.youtube.com,s.youtube.com,youtubei.googleapis.com +# ======= 视频广告请求 ======= # (^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+?)&ctier=L(&.+?),ctier,(.+) url 302 $1$2$3 -^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+&oad url reject +^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+&oad url reject-200 -^https?:\/\/youtubei\.googleapis\.com\/youtubei\/v\d\/player\/ad_break url reject -^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads url reject -^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) url reject -^https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?adcontext url reject \ No newline at end of file + +# ======= 视频PIP|后台播放|瀑布流|搜索|播放页|短视频|贴片广告 ======= # +^https:\/\/youtubei\.googleapis\.com\/youtubei\/v1\/(browse|next|player|search|reel\/reel_watch_sequence|guide|account\/get_setting) url script-response-body https://raw.githubusercontent.com/Maasea/sgmodule/master/Script/Youtube/youtube.js + + +# ======= 通用广告请求 ======= # +^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads url reject-200 +^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) url reject-200 +^https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?adcontext url reject-200 \ No newline at end of file diff --git a/Scripts/AdBlock/JD/jd_search_json.js b/Scripts/AdBlock/JD/jd_search_json.js index f1baf52..bed9cb7 100644 --- a/Scripts/AdBlock/JD/jd_search_json.js +++ b/Scripts/AdBlock/JD/jd_search_json.js @@ -1,2 +1,19 @@ - -var puimCea1=JSON['\x70\x61\x72\x73\x65']($response['\x62\x6f\x64\x79']);if($request['\x75\x72\x6c']['\x69\x6e\x64\x65\x78\x4f\x66']('\x68\x6f\x74\x57\x6f\x72\x64\x73')!==-1){puimCea1['\x68\x6f\x74\x77\x6f\x72\x64\x73']={};puimCea1['\x74\x61\x62\x73']={};delete puimCea1['\x61\x62\x76\x65\x72']}if($request['\x75\x72\x6c']['\x69\x6e\x64\x65\x78\x4f\x66']('\x68\x6f\x74\x53\x65\x61\x72\x63\x68\x54\x65\x72\x6d\x73')!==-1){puimCea1['\x74\x6f\x70\x44\x61\x74\x61']['\x64\x61\x74\x61']={};puimCea1['\x64\x61\x74\x61']={}}$done({body:JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79'](puimCea1)}); \ No newline at end of file +var puimCea1 = JSON["\x70\x61\x72\x73\x65"]($response["\x62\x6f\x64\x79"]); +if ( + $request["\x75\x72\x6c"]["\x69\x6e\x64\x65\x78\x4f\x66"]( + "\x68\x6f\x74\x57\x6f\x72\x64\x73" + ) !== -1 +) { + puimCea1["\x68\x6f\x74\x77\x6f\x72\x64\x73"] = {}; + puimCea1["\x74\x61\x62\x73"] = {}; + delete puimCea1["\x61\x62\x76\x65\x72"]; +} +if ( + $request["\x75\x72\x6c"]["\x69\x6e\x64\x65\x78\x4f\x66"]( + "\x68\x6f\x74\x53\x65\x61\x72\x63\x68\x54\x65\x72\x6d\x73" + ) !== -1 +) { + puimCea1["\x74\x6f\x70\x44\x61\x74\x61"]["\x64\x61\x74\x61"] = {}; + puimCea1["\x64\x61\x74\x61"] = {}; +} +$done({ body: JSON["\x73\x74\x72\x69\x6e\x67\x69\x66\x79"](puimCea1) }); diff --git a/Scripts/AdBlock/JD/jx_startup.js b/Scripts/AdBlock/JD/jx_startup.js index d7567bb..197c8b1 100644 --- a/Scripts/AdBlock/JD/jx_startup.js +++ b/Scripts/AdBlock/JD/jx_startup.js @@ -1,6 +1,11 @@ -if (/^https?:\/\/api\.m\.jd\.com\/api\?functionId=delivery_show/.test($request.url)) { - let obj=JSON.parse($response.body); - obj.data.materialList.startTime=3667476800000; - obj.data.materialList.endTime =3667908800000; - $done({body:JSON.stringify(obj)}); -} \ No newline at end of file +let obj = JSON.parse($response.body); +/*京喜APP*/ +if ( + /^https?:\/\/api\.m\.jd\.com\/api\?functionId=delivery_show/.test( + $request.url + ) +) { + obj.data.materialList.startTime = 3667476800000; + obj.data.materialList.endTime = 3667908800000; +} +$done({ body: JSON.stringify(obj) }); diff --git a/Scripts/AdBlock/Other/12306.js b/Scripts/AdBlock/Other/12306.js index b41f9a1..763c678 100644 --- a/Scripts/AdBlock/Other/12306.js +++ b/Scripts/AdBlock/Other/12306.js @@ -1,94 +1,11 @@ -/* +const version = "V1.0.18"; -https://t.me/ddgksf2013 - -12306 去除倒计时 made by ddgksf2013 on 2023-01-06 - -使用本重写,请务必在本地添加分流 host, ad.12306.cn, direct - -[rewrite_local] - -^https?:\/\/ad\.12306\.cn\/ad\/ser\/getAdList url script-response-body https://github.com/ddgksf2013/Scripts/raw/master/12306.js - -[mitm] - -hostname = ad.12306.cn - -*/ - -var __encode = "jsjiami.com", - _a = {}, - _0xb483 = [ - "\x5F\x64\x65\x63\x6F\x64\x65", - "\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C", - ]; -(function (_0xd642x1) { - _0xd642x1[_0xb483[0]] = _0xb483[1]; -})(_a); -var __Oxf322f = [ - "\x62\x6F\x64\x79", - "\x70\x61\x72\x73\x65", - "\x6D\x61\x74\x65\x72\x69\x61\x6C\x73\x4C\x69\x73\x74", - "\x6C\x65\x6E\x67\x74\x68", - "\x66\x69\x6C\x65\x50\x61\x74\x68", - "\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x70\x69\x2E\x64\x75\x6A\x69\x6E\x2E\x6F\x72\x67\x2F\x62\x69\x6E\x67\x2F\x6D\x2E\x70\x68\x70", - "\x73\x6B\x69\x70\x54\x69\x6D\x65", - "\x61\x64\x76\x65\x72\x74\x50\x61\x72\x61\x6D", - "\x62\x69\x6C\x6C\x49\x64", - "\x62\x69\x6C\x6C\x4D\x61\x74\x65\x72\x69\x61\x6C\x73\x49\x64", - "\x36\x34\x39\x31", - "\x73\x74\x72\x69\x6E\x67\x69\x66\x79", - "\x75\x6E\x64\x65\x66\x69\x6E\x65\x64", - "\x6C\x6F\x67", - "\u5220\u9664", - "\u7248\u672C\u53F7\uFF0C\x6A\x73\u4F1A\u5B9A", - "\u671F\u5F39\u7A97\uFF0C", - "\u8FD8\u8BF7\u652F\u6301\u6211\u4EEC\u7684\u5DE5\u4F5C", - "\x6A\x73\x6A\x69\x61", - "\x6D\x69\x2E\x63\x6F\x6D", -]; -var ddgksf2013 = JSON[__Oxf322f[0x1]]($response[__Oxf322f[0x0]]); -if (ddgksf2013[__Oxf322f[0x2]]) { - if (ddgksf2013[__Oxf322f[0x2]][__Oxf322f[0x3]] == 1) { - ddgksf2013[__Oxf322f[0x2]][0x0][__Oxf322f[0x4]] = __Oxf322f[0x5]; - ddgksf2013[__Oxf322f[0x7]][__Oxf322f[0x6]] = 1; - delete ddgksf2013[__Oxf322f[0x2]][0x0][__Oxf322f[0x8]]; - ddgksf2013[__Oxf322f[0x2]][0x0][__Oxf322f[0x9]] = __Oxf322f[0xa]; - } else { - if (ddgksf2013[__Oxf322f[0x2]][__Oxf322f[0x3]] > 1) { - ddgksf2013[__Oxf322f[0x2]] = [{}]; - } - } -} -$done({ body: JSON[__Oxf322f[0xb]](ddgksf2013) }); -(function (_0xddf1x2, _0xddf1x3, _0xddf1x4, _0xddf1x5, _0xddf1x6, _0xddf1x7) { - _0xddf1x7 = __Oxf322f[0xc]; - _0xddf1x5 = function (_0xddf1x8) { - if (typeof alert !== _0xddf1x7) { - alert(_0xddf1x8); - } - if (typeof console !== _0xddf1x7) { - console[__Oxf322f[0xd]](_0xddf1x8); - } - }; - _0xddf1x4 = function (_0xddf1x9, _0xddf1x2) { - return _0xddf1x9 + _0xddf1x2; - }; - _0xddf1x6 = _0xddf1x4( - __Oxf322f[0xe], - _0xddf1x4(_0xddf1x4(__Oxf322f[0xf], __Oxf322f[0x10]), __Oxf322f[0x11]) - ); - try { - _0xddf1x2 = __encode; - if ( - !( - typeof _0xddf1x2 !== _0xddf1x7 && - _0xddf1x2 === _0xddf1x4(__Oxf322f[0x12], __Oxf322f[0x13]) - ) - ) { - _0xddf1x5(_0xddf1x6); - } - } catch (e) { - _0xddf1x5(_0xddf1x6); - } -})({}); +var body = JSON.parse($response.body); +body.materialsList && + (1 == body.materialsList.length + ? ((body.materialsList[0].filePath = "https://api.dujin.org/bing/m.php"), + (body.advertParam.skipTime = 1), + delete body.materialsList[0].billId, + (body.materialsList[0].billMaterialsId = "6491")) + : body.materialsList.length > 1 && (body.materialsList = [{}])), + $done({ body: JSON.stringify(body) });