feat(Kleinanzeigen): Add Hide PUR patch (#6558)

This commit is contained in:
Johannes Obermeier 2026-02-12 21:49:26 +01:00 committed by GitHub
parent e389632afd
commit 4958ecf10c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 0 deletions

View file

@ -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;
}

View file

@ -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"
}
}

View file

@ -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)
}
}