mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-04 08:34:27 +02:00
fix(YouTube/Hide channel avatar section): not worked due to A/B tests
This commit is contained in:
parent
a00bf31824
commit
4bf3feefdc
@ -7,7 +7,9 @@ import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.annotation.CompatiblePackage
|
||||
import app.revanced.patcher.patch.annotation.Patch
|
||||
import app.revanced.patches.youtube.general.channellistsubmenu.fingerprints.ChannelListSubMenuFingerprint
|
||||
import app.revanced.patches.youtube.utils.integrations.Constants.COMPONENTS_PATH
|
||||
import app.revanced.patches.youtube.utils.integrations.Constants.GENERAL
|
||||
import app.revanced.patches.youtube.utils.litho.LithoFilterPatch
|
||||
import app.revanced.patches.youtube.utils.resourceid.SharedResourceIdPatch
|
||||
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
||||
import app.revanced.util.exception
|
||||
@ -17,6 +19,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
name = "Hide channel avatar section",
|
||||
description = "Adds an option to hide the channel avatar section of the subscription feed.",
|
||||
dependencies = [
|
||||
LithoFilterPatch::class,
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
@ -55,6 +58,7 @@ object ChannelListSubMenuPatch : BytecodePatch(
|
||||
setOf(ChannelListSubMenuFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext) {
|
||||
LithoFilterPatch.addFilter("$COMPONENTS_PATH/ChannelListSubMenuFilter;")
|
||||
|
||||
ChannelListSubMenuFingerprint.result?.let {
|
||||
it.mutableMethod.apply {
|
||||
|
Loading…
x
Reference in New Issue
Block a user