refactor: hide-autoplay-button & refactor: hide-autoplay-button && premium-heading patch

This commit is contained in:
oSumAtrIX
2022-06-30 02:39:24 +02:00
parent ab9213641c
commit c1a0f2c035
4 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ import org.jf.dexlib2.Opcode
@Name("autonav-informer-fingerprint")
@MatchingMethod(
"com/google/android/libraries/youtube/player/features/prefetch/WillAutonavInformer;", "k"
"LWillAutonavInformer;", "k"
)
@FuzzyPatternScanMethod(2)
@AutoplayButtonCompatibility

View File

@ -12,7 +12,7 @@ import org.jf.dexlib2.Opcode
@Name("layout-constructor-fingerprint")
@MatchingMethod(
"Lcom/google/android/apps/youtube/app/player/overlay/YouTubeControlsOverlay;", "F"
"LYouTubeControlsOverlay;", "F"
)
@FuzzyPatternScanMethod(2)
@AutoplayButtonCompatibility

View File

@ -19,11 +19,11 @@ import org.jf.dexlib2.iface.instruction.WideLiteralInstruction
@Patch
@Dependencies(dependencies = [ResourceIdMappingProviderResourcePatch::class])
@Name("disable-autoplay-button")
@Name("hide-autoplay-button")
@Description("Disable the autoplay button.")
@AutoplayButtonCompatibility
@Version("0.0.1")
class AutoplayButtonRemoverPatch : BytecodePatch(
class HideAutoplayButton : BytecodePatch(
listOf(
LayoutConstructorFingerprint, AutonavInformerFingerprint
)
@ -51,8 +51,8 @@ class AutoplayButtonRemoverPatch : BytecodePatch(
autonavInformerMethod.replaceInstructions(
0,
"""
const/4 v0, 0x0
return v0
const/4 v0, 0x0
return v0
"""
)