mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +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(
|
addInstructionsWithLabels(
|
||||||
0,
|
0,
|
||||||
"""
|
"""
|
||||||
move-object v0, p2
|
invoke-static/range {p2 .. p2}, $FULLSCREEN_ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
||||||
invoke-static {v0}, $FULLSCREEN_ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
|
||||||
move-result v0
|
move-result v0
|
||||||
if-eqz v0, :show
|
if-eqz v0, :show
|
||||||
return-void
|
return-void
|
||||||
|
@ -57,8 +57,7 @@ object AdsBytecodePatch : BytecodePatch(
|
|||||||
addInstructionsWithLabels(
|
addInstructionsWithLabels(
|
||||||
0,
|
0,
|
||||||
"""
|
"""
|
||||||
move-object v0, p2
|
invoke-static/range {p2 .. p2}, $ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
||||||
invoke-static {v0}, $ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
|
|
||||||
move-result v0
|
move-result v0
|
||||||
if-eqz v0, :show
|
if-eqz v0, :show
|
||||||
return-void
|
return-void
|
||||||
|
@ -5,6 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
|||||||
|
|
||||||
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
|
||||||
returnType = "V",
|
returnType = "V",
|
||||||
parameters = listOf("[B", "L"),
|
|
||||||
literalSupplier = { SlidingDialogAnimation }
|
literalSupplier = { SlidingDialogAnimation }
|
||||||
)
|
)
|
Reference in New Issue
Block a user