forked from chxm1023/Advertising
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwei.js
33 lines (23 loc) · 1.1 KB
/
wei.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*************************************
项目名称:魏-魏牌新能源(优化底栏+净化AD)
下载地址:https://t.cn/A6leY3hH
更新日期:2024-01-05
脚本作者:chxm1023
电报频道:https://t.me/chxm1023
使用声明:⚠️仅供参考,🈲转载与售卖!
**************************************
[rewrite_local]
^https?:\/\/gw-app\.beantechyun\.com\/app-api\/api\/(wey\/.+|.+)\/content\/route\/(getWholeNodeContentInfo\?contentType=(MENU|APPSECONDAD)|getContentInfo) url script-response-body https://raw.githubusercontent.com/chxm1023/Advertising/main/wei.js
[mitm]
hostname = gw-app.beantechyun.com
*************************************/
var chxm1023 = JSON.parse($response.body);
const Alter = /contentType=MENU/;
const AD = /(getContentInfo|contentType=APPSECONDAD)/;
if(Alter.test($request.url)){
for (var i = 0; i < chxm1023.data.length; i++) { chxm1023.data[i].contentMessageList = chxm1023.data[i].contentMessageList.filter(item => item.title !== '发现' && item.title !== '商城');}
}
if(AD.test($request.url)){
chxm1023.data = [];
}
$done({body: JSON.stringify(chxm1023)});