fix(YouTube - Hide Shorts components): Find resource id only for 21.05+

This commit is contained in:
oSumAtrIX 2026-03-06 15:31:41 +01:00
parent a031891566
commit 63161e9fb3
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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