Skip to content

Commit

Permalink
feat: block live room qoe popup
Browse files Browse the repository at this point in the history
  • Loading branch information
zjns committed Sep 24, 2024
1 parent 9e5ebf9 commit ae58109
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ private static Object parseObjectHookInternal(Object obj) {
} catch (Throwable ignored) {
}
}
if (keys.contains("qoe")) try {
info.qoe = null;
} catch (Throwable ignored) {
}
} else if (data instanceof LiveShoppingGotoBuyInfo) {
if (Settings.PurifyLivePopups.get().contains("gotoBuy"))
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
import com.bilibili.bililive.videoliveplayer.net.beans.gateway.roominfo.LiveRoomPlayTogetherCardInfo;
import com.bilibili.bililive.videoliveplayer.net.beans.playtogether.LivePlayTogetherInfoUser;

import kotlin.jvm.JvmField;

public class BiliLiveRoomUserInfo {
@Nullable
public FunctionCard functionCard;
@Nullable
public BiliLiveRoomUserTaskInfo taskInfo;

@JvmField
@JSONField(name = "play_together_info")
@Nullable
public LivePlayTogetherInfoUser playTogetherInfo;

@JvmField
@JSONField(name = "play_together_info_v2")
@Nullable
public LiveRoomPlayTogetherCardInfo playTogetherInfoV2;

@JSONField(name = "qoe_show")
@Nullable
public LiveRoomUserResearch qoe;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.bilibili.bililive.videoliveplayer.net.beans.gateway.userinfo;

public class LiveRoomUserResearch {
}
2 changes: 2 additions & 0 deletions patches/src/main/resources/bilibili/host/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<item>主播帮玩</item>
<item>各种+1</item>
<item>心愿助力</item>
<item>直播效果打分</item>
</string-array>
<string-array name="biliroaming_live_popup_values">
<item>shoppingCard</item>
Expand All @@ -89,6 +90,7 @@
<item>playTogether</item>
<item>plusOne</item>
<item>wish</item>
<item>qoe</item>
</string-array>
<string-array name="biliroaming_drawer_style_entries">
<item>默认</item>
Expand Down

0 comments on commit ae58109

Please sign in to comment.