/* 脚本引用https://raw.githubusercontent.com/ZenmoFeiShi/Qx/main/HP.js */ // 2024-06-14 11:04 const url = $request.url; let obj = JSON.parse($response.body); if (url.includes("/buffer/hotList")) { delete obj.result.topBanner; } if (url.includes("/mang/preview/banners")) { delete obj.data; } if (url.includes("/bbsallapi/lego/data")) { obj.data.cards.forEach(card => { if (card.code === "multiIcon") { const titlesToRemove = ["个性换肤", "专家预测", "邀请好友", "版主中心", "JRs战术板", "草稿箱", "58同城"]; if (card.components && card.components.length > 0) { card.components = card.components.filter(component => { return !(component.data && titlesToRemove.includes(component.data.title)); }); } } }); } if (obj.data && obj.data.cards) { obj.data.cards = obj.data.cards.filter(card => { if (card.components && card.components.length > 0) { return !card.components.some(component => component.data && component.data.title === "我的应用"); } return true; }); } if (url.includes("/bplapi/user/v1/more")) { if (obj.result && obj.result.vipInfo && obj.result.vipInfo.textInfo) { delete obj.result.vipInfo.textInfo; } if (obj.result && obj.result.vipInfo) { delete obj.result.vipInfo; } } $done({ body: JSON.stringify(obj) });