feat(Tumblr): Add Disable Ad-Free Banner
patch (#3091)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
f462ca3243
commit
54baf08f77
|
@ -1062,6 +1062,12 @@ public final class app/revanced/patches/tumblr/ads/DisableDashboardAds : app/rev
|
||||||
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
|
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch : app/revanced/patcher/patch/BytecodePatch {
|
||||||
|
public static final field INSTANCE Lapp/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch;
|
||||||
|
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
|
||||||
|
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
|
||||||
|
}
|
||||||
|
|
||||||
public final class app/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch : app/revanced/patcher/patch/BytecodePatch {
|
public final class app/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch : app/revanced/patcher/patch/BytecodePatch {
|
||||||
public static final field INSTANCE Lapp/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch;
|
public static final field INSTANCE Lapp/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch;
|
||||||
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
|
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
package app.revanced.patches.tumblr.annoyances.adfree
|
||||||
|
|
||||||
|
import app.revanced.patcher.data.BytecodeContext
|
||||||
|
import app.revanced.patcher.patch.BytecodePatch
|
||||||
|
import app.revanced.patcher.patch.annotation.CompatiblePackage
|
||||||
|
import app.revanced.patcher.patch.annotation.Patch
|
||||||
|
import app.revanced.patches.tumblr.featureflags.OverrideFeatureFlagsPatch
|
||||||
|
|
||||||
|
@Patch(
|
||||||
|
name = "Disable Ad-Free Banner",
|
||||||
|
description = "Disables the banner with a frog, prompting you to buy Tumblr Ad-Free.",
|
||||||
|
dependencies = [OverrideFeatureFlagsPatch::class],
|
||||||
|
compatiblePackages = [CompatiblePackage("com.tumblr")],
|
||||||
|
)
|
||||||
|
@Suppress("unused")
|
||||||
|
object DisableAdFreeBannerPatch : BytecodePatch(emptySet()) {
|
||||||
|
override fun execute(context: BytecodeContext) {
|
||||||
|
// Disable the "AD_FREE_CTA_BANNER" ("Whether or not to show ad free prompt") feature flag.
|
||||||
|
OverrideFeatureFlagsPatch.addOverride("adFreeCtaBanner", "false")
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue