Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: certain webview pages not showing correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mkx173 committed Apr 12, 2024
1 parent 5735970 commit 49f1b1c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/src/main/java/gm/tieba/tabswitch/hooker/eliminate/Purge.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public List<? extends Matcher> matchers() {
new SmaliMatcher("Lcom/baidu/tieba/lego/card/model/BaseCardInfo;-><init>(Lorg/json/JSONObject;)V"),
new StringMatcher("pic_amount"),
new StringMatcher("准备展示精灵动画提示控件"),
new StringMatcher("TbChannelJsInterfaceNew"),
// new StringMatcher("TbChannelJsInterfaceNew"),
new StringMatcher("bottom_bubble_config"),
// new StringMatcher("top_level_navi"),
new StringMatcher("index_tab_info"),
Expand Down Expand Up @@ -77,18 +77,18 @@ public void hook() throws Throwable {
case "准备展示精灵动画提示控件": // 吧内%s新贴热议中
XposedBridge.hookAllMethods(XposedHelpers.findClass(clazz, sClassLoader), method, XC_MethodReplacement.returnConstant(false));
break;
case "TbChannelJsInterfaceNew": // 吧友直播
if (method.equals("getInitData")) {
XposedHelpers.findAndHookMethod(clazz, sClassLoader, method, new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
JSONObject resultJson = new JSONObject((String) param.getResult());
resultJson.getJSONObject("baseData").put("clientVersion", "undefined");
param.setResult(resultJson.toString());
}
});
}
break;
// case "TbChannelJsInterfaceNew": // 吧友直播
// if (method.equals("getInitData")) {
// XposedHelpers.findAndHookMethod(clazz, sClassLoader, method, new XC_MethodHook() {
// @Override
// protected void afterHookedMethod(MethodHookParam param) throws Throwable {
// JSONObject resultJson = new JSONObject((String) param.getResult());
// resultJson.getJSONObject("baseData").put("clientVersion", "undefined");
// param.setResult(resultJson.toString());
// }
// });
// }
// break;
case "bottom_bubble_config": // 底部导航栏活动图标
if (method.equals("invoke")) {
XposedHelpers.findAndHookMethod(clazz, sClassLoader, method, new XC_MethodHook() {
Expand Down

0 comments on commit 49f1b1c

Please sign in to comment.