mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-19 13:41:18 +08:00
23 lines
609 B
JavaScript
23 lines
609 B
JavaScript
/**
|
|
* @author Sliverkiss
|
|
* @function 中国人保app 去广告
|
|
* @date 2024-02-18 18:18:00
|
|
*/
|
|
|
|
const Body = JSON.parse($response.body);
|
|
const url = $request.url;
|
|
|
|
const actions = {
|
|
'homeInit': () => {
|
|
Body.data.startupPage = {};
|
|
Body.data.templates = Body.data.templates.filter(e => !e.name.match(/主轮播图|保险推荐|专享|腰封轮播图|浮标配置|二楼营销位|首页主题/));
|
|
},
|
|
'myPageConfigList': () => {
|
|
Body.data.YFList = [];
|
|
}
|
|
};
|
|
|
|
const actionKey = Object.keys(actions).find(key => url.includes(key));
|
|
actions[actionKey]?.();
|
|
|
|
$done({body: JSON.stringify(Body)}); |