Rules-For-Quantumult-X/Scripts/AdBlock/Other/CoolApk.js

55 lines
1.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/***********************************
> 应用名称:酷安净化
> 脚本作者ddgksf2013
> 微信账号:墨鱼手记
> 更新时间2023-01-21
> 通知频道https://t.me/ddgksf2021
> 贡献投稿https://t.me/ddgksf2013_bot
> 问题反馈ddgksf2013@163.com
> 特别提醒:如需转载请注明出处,谢谢合作!
> 特别说明:⚠️⚠️⚠️
本脚本仅供学习交流使用,禁止转载、售卖
⚠️⚠️⚠️
***********************************/
const version = "V1.0.9";
if (-1 != $request.url.indexOf("replyList")) {
var t = JSON.parse($response.body);
t.data.length && (t.data = t.data.filter((t) => t.id)),
$done({ body: JSON.stringify(t) });
} else if (-1 != $request.url.indexOf("indexV8")) {
var t = JSON.parse($response.body);
(t.data = t.data.filter(
(t) =>
!(
"sponsorCard" == t.entityTemplate ||
8639 == t.entityId ||
29349 == t.entityId ||
33006 == t.entityId ||
32557 == t.entityId ||
-1 != t.title.indexOf("值得买") ||
-1 != t.title.indexOf("红包")
)
)),
$done({ body: JSON.stringify(t) });
} else if (-1 != $request.url.indexOf("dataList")) {
var t = JSON.parse($response.body);
(t.data = t.data.filter(
(t) =>
!("sponsorCard" == t.entityTemplate || -1 != t.title.indexOf("精选配件"))
)),
$done({ body: JSON.stringify(t) });
} else if (-1 != $request.url.indexOf("detail")) {
var t = JSON.parse($response.body);
t.data?.hotReplyRows?.length &&
(t.data.hotReplyRows = t.data.hotReplyRows.filter((t) => t.id)),
t.data?.topReplyRows?.length &&
(t.data.topReplyRows = t.data.topReplyRows.filter((t) => t.id)),
t.data?.include_goods_ids && (t.data.include_goods_ids = []),
t.data?.include_goods && (t.data.include_goods = []),
t.data?.detailSponsorCard && (t.data.detailSponsorCard = []),
$done({ body: JSON.stringify(t) });
} else $done($response);