feat(Kleinanzeigen): Add Hide ads patch (#6533)

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
xehpuk
2026-01-26 15:20:59 +01:00
committed by GitHub
parent dbdd2a67ff
commit bd6e544007
3 changed files with 29 additions and 0 deletions

View File

@@ -364,6 +364,10 @@ public final class app/revanced/patches/irplus/ad/RemoveAdsPatchKt {
public static final fun getRemoveAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
}
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/letterboxd/ads/HideAdsPatchKt {
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
}

View File

@@ -0,0 +1,9 @@
package app.revanced.patches.kleinanzeigen.ads
import app.revanced.patcher.fingerprint
internal val getLibertyInitFingerprint = fingerprint {
custom { method, classDef ->
method.name == "init" && classDef.endsWith("/Liberty;")
}
}

View File

@@ -0,0 +1,16 @@
package app.revanced.patches.kleinanzeigen.ads
import app.revanced.patcher.patch.bytecodePatch
import app.revanced.util.returnEarly
@Suppress("unused")
val hideAdsPatch = bytecodePatch(
name = "Hide ads",
description = "Hides sponsored ads and Google Ads. Also happens to disable Microsoft Clarity analytics.",
) {
compatibleWith("com.ebay.kleinanzeigen")
execute {
getLibertyInitFingerprint.method.returnEarly()
}
}