mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-04 16:44:29 +02:00
fix(YouTube/Player components): Disable player popup panels
setting disables the engagement panel in Mix playlists on certain YouTube version
This commit is contained in:
parent
1cf3c6da53
commit
6d48adef53
@ -12,5 +12,17 @@ internal object StartVideoInformerFingerprint : MethodFingerprint(
|
|||||||
Opcode.INVOKE_INTERFACE,
|
Opcode.INVOKE_INTERFACE,
|
||||||
Opcode.RETURN_VOID
|
Opcode.RETURN_VOID
|
||||||
),
|
),
|
||||||
strings = listOf("pc")
|
strings = listOf("pc"),
|
||||||
|
customFingerprint = custom@{ methodDef, _ ->
|
||||||
|
if (methodDef.implementation == null)
|
||||||
|
return@custom false
|
||||||
|
|
||||||
|
methodDef.implementation!!.instructions
|
||||||
|
.withIndex()
|
||||||
|
.filter { (_, instruction) ->
|
||||||
|
instruction.opcode == Opcode.CONST_STRING
|
||||||
|
}
|
||||||
|
.map { (index, _) -> index }
|
||||||
|
.size == 1
|
||||||
|
}
|
||||||
)
|
)
|
Loading…
x
Reference in New Issue
Block a user