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