feat(Kleinanzeigen): Add Hide PUR patch (#6558)
This commit is contained in:
parent
e389632afd
commit
4958ecf10c
3 changed files with 29 additions and 0 deletions
|
|
@ -376,6 +376,10 @@ public final class app/revanced/patches/kleinanzeigen/ads/HideAdsPatchKt {
|
|||
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 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue