diff --git a/patches/src/main/kotlin/app/revanced/patches/pixiv/ads/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/pixiv/ads/HideAdsPatch.kt index 29f63e9cf..4454895b1 100644 --- a/patches/src/main/kotlin/app/revanced/patches/pixiv/ads/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/pixiv/ads/HideAdsPatch.kt @@ -1,21 +1,15 @@ package app.revanced.patches.pixiv.ads -import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.bytecodePatch +import app.revanced.util.returnEarly @Suppress("unused") val hideAdsPatch = bytecodePatch( name = "Hide ads", ) { - compatibleWith("jp.pxv.android") + compatibleWith("jp.pxv.android"("6.141.1")) execute { - shouldShowAdsFingerprint.method.addInstructions( - 0, - """ - const/4 v0, 0x0 - return v0 - """, - ) + shouldShowAdsFingerprint.method.returnEarly(false) } }