mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-28 12:50:19 +02:00
feat(youtube): cleanup
This commit is contained in:
parent
2ba97f99bf
commit
9821754695
@ -95,6 +95,7 @@ class SpoofPlayerParameterPatch : BytecodePatch(
|
||||
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val INTEGRATIONS_CLASS_DESCRIPTOR =
|
||||
"$MISC_PATH/SpoofPlayerParameterPatch;"
|
||||
|
@ -79,12 +79,13 @@ class NavBarIndexHookPatch : BytecodePatch(
|
||||
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val INTEGRATIONS_CLASS_DESCRIPTOR =
|
||||
"$UTILS_PATH/NavBarIndexPatch;"
|
||||
|
||||
fun MethodFingerprint.injectIndex(index: Int) {
|
||||
result?.let{
|
||||
result?.let {
|
||||
it.mutableMethod.apply {
|
||||
addInstructions(
|
||||
0, """
|
||||
|
@ -58,7 +58,7 @@ class PlayerTypeHookPatch : BytecodePatch(
|
||||
"""
|
||||
)
|
||||
}
|
||||
}
|
||||
} ?: return VideoStateFingerprint.toErrorResult()
|
||||
} ?: return YouTubeControlsOverlayFingerprint.toErrorResult()
|
||||
|
||||
return PatchResultSuccess()
|
||||
|
@ -18,7 +18,8 @@ class VideoCpnPatch : BytecodePatch(
|
||||
) {
|
||||
override fun execute(context: BytecodeContext): PatchResult {
|
||||
|
||||
insertMethod = OrganicPlaybackContextModelFingerprint.result?.mutableMethod?: return OrganicPlaybackContextModelFingerprint.toErrorResult()
|
||||
insertMethod = OrganicPlaybackContextModelFingerprint.result?.mutableMethod
|
||||
?: return OrganicPlaybackContextModelFingerprint.toErrorResult()
|
||||
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user