mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-04 16:44:29 +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.CompatiblePackage
|
||||||
import app.revanced.patcher.patch.annotation.Patch
|
import app.revanced.patcher.patch.annotation.Patch
|
||||||
import app.revanced.patches.youtube.general.channellistsubmenu.fingerprints.ChannelListSubMenuFingerprint
|
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.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.resourceid.SharedResourceIdPatch
|
||||||
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
||||||
import app.revanced.util.exception
|
import app.revanced.util.exception
|
||||||
@ -17,6 +19,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
|||||||
name = "Hide channel avatar section",
|
name = "Hide channel avatar section",
|
||||||
description = "Adds an option to hide the channel avatar section of the subscription feed.",
|
description = "Adds an option to hide the channel avatar section of the subscription feed.",
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
LithoFilterPatch::class,
|
||||||
SettingsPatch::class,
|
SettingsPatch::class,
|
||||||
SharedResourceIdPatch::class
|
SharedResourceIdPatch::class
|
||||||
],
|
],
|
||||||
@ -55,6 +58,7 @@ object ChannelListSubMenuPatch : BytecodePatch(
|
|||||||
setOf(ChannelListSubMenuFingerprint)
|
setOf(ChannelListSubMenuFingerprint)
|
||||||
) {
|
) {
|
||||||
override fun execute(context: BytecodeContext) {
|
override fun execute(context: BytecodeContext) {
|
||||||
|
LithoFilterPatch.addFilter("$COMPONENTS_PATH/ChannelListSubMenuFilter;")
|
||||||
|
|
||||||
ChannelListSubMenuFingerprint.result?.let {
|
ChannelListSubMenuFingerprint.result?.let {
|
||||||
it.mutableMethod.apply {
|
it.mutableMethod.apply {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user