feat(youtube/hide-shorts-component): hide toolbar in shorts player

This commit is contained in:
inotia00
2023-06-27 01:53:30 +09:00
parent d32d1d340d
commit 7f5be6241a
6 changed files with 69 additions and 4 deletions

View File

@ -0,0 +1,17 @@
package app.revanced.patches.youtube.utils.fingerprints
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch.Companion.ToolBarPaddingHome
import app.revanced.util.bytecode.isWideLiteralExists
import org.jf.dexlib2.Opcode
object SetToolBarPaddingFingerprint : MethodFingerprint(
returnType = "V",
parameters = listOf("I", "I"),
opcodes = listOf(
Opcode.INVOKE_VIRTUAL,
Opcode.IGET_OBJECT,
Opcode.INVOKE_STATIC
),
customFingerprint = { methodDef, _ -> methodDef.isWideLiteralExists(ToolBarPaddingHome) }
)