feat(Kleinanzeigen): Add Hide PUR patch (#6558)
This commit is contained in:
@@ -376,6 +376,10 @@ public final class app/revanced/patches/kleinanzeigen/ads/HideAdsPatchKt {
|
|||||||
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class app/revanced/patches/kleinanzeigen/hide_pur/HidePurPatchKt {
|
||||||
|
public static final fun getHidePurPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
|
}
|
||||||
|
|
||||||
public final class app/revanced/patches/letterboxd/ads/HideAdsPatchKt {
|
public final class app/revanced/patches/letterboxd/ads/HideAdsPatchKt {
|
||||||
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package app.revanced.patches.kleinanzeigen.hide_pur
|
||||||
|
|
||||||
|
import app.revanced.patcher.fingerprint
|
||||||
|
|
||||||
|
internal val getShowAdFreeSubscriptionFingerprint = fingerprint {
|
||||||
|
custom { method, classDef ->
|
||||||
|
method.name == "getShowAdFreeSubscription"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package app.revanced.patches.kleinanzeigen.hide_pur
|
||||||
|
|
||||||
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
|
@Suppress("unused")
|
||||||
|
val hidePurPatch = bytecodePatch(
|
||||||
|
name = "Hide Pur",
|
||||||
|
description = "Hides Pur (Ad Free Subscription) from Settings Menu.",
|
||||||
|
) {
|
||||||
|
compatibleWith("com.ebay.kleinanzeigen")
|
||||||
|
|
||||||
|
execute {
|
||||||
|
getShowAdFreeSubscriptionFingerprint.method.returnEarly(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user