Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
fix: remove "For you" tab for 9.97.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonKhew96 committed Jul 8, 2023
1 parent 48e0bf5 commit b05c048
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ object HomeTimelineHook : BaseHook() {

MethodFinder.fromClass(homeTimelineTabClassName).filterByName("apply").first().createHook {
beforeMeasure(name) { param ->
val c =
if (param.args[0] !is List<*>) return@beforeMeasure
val c =
FieldFinder.fromClass(homeTimelineTabClassName).filterByType(Int::class.java)
.first().getInt(param.thisObject)
if (c != 0) return@beforeMeasure
unhook = MethodFinder.fromClass(homeTimelineListClassName).filterByName(
homeTimelineListAddMethodName
).first().createHook {
Expand Down Expand Up @@ -125,4 +125,4 @@ object HomeTimelineHook : BaseHook() {
modulePrefs.putLong("hook_home_timeline_last_update", System.currentTimeMillis())
}
}
}
}

0 comments on commit b05c048

Please sign in to comment.