mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
fix(YouTube/Hide ads): Hide ads
patch does not work on YouTube 18.29.38
This commit is contained in:
@ -96,8 +96,7 @@ object AdsPatch : BaseBytecodePatch(
|
||||
addInstructionsWithLabels(
|
||||
0,
|
||||
"""
|
||||
move-object v0, p2
|
||||
invoke-static {v0}, $FULLSCREEN_ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
||||
invoke-static/range {p2 .. p2}, $FULLSCREEN_ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
||||
move-result v0
|
||||
if-eqz v0, :show
|
||||
return-void
|
||||
|
@ -57,8 +57,7 @@ object AdsBytecodePatch : BytecodePatch(
|
||||
addInstructionsWithLabels(
|
||||
0,
|
||||
"""
|
||||
move-object v0, p2
|
||||
invoke-static {v0}, $ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
||||
invoke-static/range {p2 .. p2}, $ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
||||
move-result v0
|
||||
if-eqz v0, :show
|
||||
return-void
|
||||
|
@ -5,6 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
parameters = listOf("[B", "L"),
|
||||
literalSupplier = { SlidingDialogAnimation }
|
||||
)
|
Reference in New Issue
Block a user