Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
palapal committed Aug 28, 2024
1 parent 6693fdf commit 217ee27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
12 changes: 1 addition & 11 deletions Resource/Script/DubbingShow/DubbingShow_remove_ads.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 2024-07-18 17:58:12
// 2024-08-28 08:57:11
const url = $request.url;
const body = $response.body;

Expand All @@ -17,16 +17,6 @@ function removeDataWithKeyword(array) {
try {
let obj = JSON.parse(body);

if (url.includes("/Api/live/LiveList")) {
delete obj.data.banners; // 首页 - 推荐 - 语聊横幅
} else if (url.includes("/api/live/FollowList")) {
delete obj.data; // 首页 - 推荐 - 语聊关注推荐
} else if (url.includes("/Api/Friend/GetRecommendUsers")) {
delete obj.data; // 首页 - 关注推荐
} else if (url.includes("/api/Union/HomeData")) {
delete obj.data; // 消息 - 群聊推荐
}

if (url.includes("/Api/Film/GetConfigValue")) {
if (obj.data && Array.isArray(obj.data)) {
removeDataWithKeyword(obj.data);
Expand Down
21 changes: 11 additions & 10 deletions Tool/Loon/Plugin/DubbingShow_remove_ads.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#!loon_version = 3.2.1(745)
#!homepage = https://gitlab.com/lodepuly/vpn_tool/-/blob/master/README.md
#!icon = https://gitlab.com/lodepuly/iconlibrary/-/raw/main/App_icon/120px/DubbingShow.png
#!date = 2024-07-18 17:58:17
#!date = 2024-08-28 08:53:44

[Rule]
# 腾讯优量汇 - 广告服务商
Expand All @@ -29,21 +29,22 @@ DOMAIN-SUFFIX, gdt.qq.com, REJECT
# c2.gdt.qq.com, REJECT
DOMAIN, tmeadcomm.y.qq.com, REJECT

[Script]
# 首页 - 底部弹窗
http-response ^https:\/\/iosapi\.peiyinxiu\.com\/Api\/Film\/GetConfigValue script-path = https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Resource/Script/DubbingShow/DubbingShow_remove_ads.js, requires-body = true, tag = 移除首页底部弹窗

# 首页 - 推荐 - 语聊横幅
http-response ^https:\/\/iosapi\.peiyinxiu\.com\/Api\/live\/LiveList script-path = https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Resource/Script/DubbingShow/DubbingShow_remove_ads.js, requires-body = true, tag = 移除语聊横幅
[Rewrite]
首页 - 推荐 - 语聊横幅
^https:\/\/iosapi\.peiyinxiu\.com\/Api\/live\/LiveList response-body-json-del data.banners

# 首页 - 推荐 - 语聊关注推荐
http-response ^https:\/\/iosapi\.peiyinxiu\.com\/api\/live\/FollowList script-path = https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Resource/Script/DubbingShow/DubbingShow_remove_ads.js, requires-body = true, tag = 移除语聊关注推荐
^https:\/\/iosapi\.peiyinxiu\.com\/api\/live\/FollowList response-body-json-del obj.data

# 首页 - 关注推荐
http-response ^https:\/\/iosapi\.peiyinxiu\.com\/Api\/Friend\/GetRecommendUsers script-path = https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Resource/Script/DubbingShow/DubbingShow_remove_ads.js, requires-body = true, tag = 移除首页关注推荐
^https:\/\/iosapi\.peiyinxiu\.com\/Api\/Friend\/GetRecommendUsers response-body-json-del obj.data

# 消息 - 群聊推荐
http-response ^https:\/\/iosapi\.peiyinxiu\.com\/api\/Union\/HomeData script-path = https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Resource/Script/DubbingShow/DubbingShow_remove_ads.js, requires-body = true, tag = 移除群聊推荐
^https:\/\/iosapi\.peiyinxiu\.com\/api\/Union\/HomeData response-body-json-del obj.data

[Script]
# 首页 - 底部弹窗
http-response ^https:\/\/iosapi\.peiyinxiu\.com\/Api\/Film\/GetConfigValue script-path = https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Resource/Script/DubbingShow/DubbingShow_remove_ads.js, requires-body = true, tag = 移除首页底部弹窗

[Mitm]
hostname = iosapi.peiyinxiu.com

0 comments on commit 217ee27

Please sign in to comment.