mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-20 13:43:58 +08:00
Initial commit: new history
This commit is contained in:
23
Scripts/picc/picc_ads.js
Normal file
23
Scripts/picc/picc_ads.js
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* @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)});
|
||||
Reference in New Issue
Block a user