fix(YouTube - Hide Shorts components): Find resource id only for 21.05+
This commit is contained in:
parent
a031891566
commit
63161e9fb3
1 changed files with 2 additions and 2 deletions
|
|
@ -178,9 +178,9 @@ val hideShortsComponentsPatch = bytecodePatch(
|
|||
|
||||
// region Hide sound button.
|
||||
|
||||
if (!is_21_05_or_greater) {
|
||||
val id = ResourceType.DIMEN["reel_player_right_pivot_v2_size"]
|
||||
|
||||
if (!is_21_05_or_greater) {
|
||||
forEachInstructionAsSequence({ _, method, instruction, index ->
|
||||
if (instruction.wideLiteral != id) return@forEachInstructionAsSequence null
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue