mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-11 13:46:17 +00:00
fix(pixiv - Hide ads): Constrain patch to last working app target
This commit is contained in:
@@ -1,21 +1,15 @@
|
|||||||
package app.revanced.patches.pixiv.ads
|
package app.revanced.patches.pixiv.ads
|
||||||
|
|
||||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
|
||||||
import app.revanced.patcher.patch.bytecodePatch
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
val hideAdsPatch = bytecodePatch(
|
val hideAdsPatch = bytecodePatch(
|
||||||
name = "Hide ads",
|
name = "Hide ads",
|
||||||
) {
|
) {
|
||||||
compatibleWith("jp.pxv.android")
|
compatibleWith("jp.pxv.android"("6.141.1"))
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
shouldShowAdsFingerprint.method.addInstructions(
|
shouldShowAdsFingerprint.method.returnEarly(false)
|
||||||
0,
|
|
||||||
"""
|
|
||||||
const/4 v0, 0x0
|
|
||||||
return v0
|
|
||||||
""",
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user