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:
11
Scripts/555Ad.js
Normal file
11
Scripts/555Ad.js
Normal file
@ -0,0 +1,11 @@
|
||||
let obj = JSON.parse($response.body);
|
||||
|
||||
// 过滤掉 layout 为 advert_self 的 data 条目
|
||||
obj.data = obj.data.filter(item => item.layout !== "advert_self");
|
||||
|
||||
// 对每个 data 条目中的 list 进行二次过滤 (移除 type=3 的元素)
|
||||
obj.data.forEach(item => {
|
||||
item.list = item.list.filter(ad => ad.type !== 3);
|
||||
});
|
||||
|
||||
$done({body: JSON.stringify(obj)});
|
||||
Reference in New Issue
Block a user