mirror of
https://github.com/fmz200/wool_scripts.git
synced 2025-12-19 13:41:18 +08:00
Initial commit: new history
This commit is contained in:
18
Scripts/cmschina/cmschina.js
Normal file
18
Scripts/cmschina/cmschina.js
Normal file
@ -0,0 +1,18 @@
|
||||
try {
|
||||
let obj = JSON.parse($response.body);
|
||||
|
||||
// 去除首页横幅广告
|
||||
if (obj.body?.app_home_banner?.data) {
|
||||
obj.body.app_home_banner.data = [];
|
||||
}
|
||||
|
||||
// 去除理财页横幅广告
|
||||
if (obj.body?.tagbanner2024?.data) {
|
||||
obj.body.tagbanner2024.data = [];
|
||||
}
|
||||
|
||||
$done({ body: JSON.stringify(obj) });
|
||||
} catch (e) {
|
||||
console.log("招商证券广告去除脚本异常:" + e);
|
||||
$done({});
|
||||
}
|
||||
Reference in New Issue
Block a user