youtube fully working now

This commit is contained in:
oSumAtrIX 2026-02-02 22:46:57 +01:00
parent 4a1d850bd4
commit ce689a7d95
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
32 changed files with 83 additions and 319 deletions

View file

@ -9,6 +9,6 @@ val hideLayoutComponentsPatch = hideLayoutComponentsPatch(
lithoFilterPatch = lithoFilterPatch,
getAddLithoFilter = { addLithoFilter },
settingsPatch = settingsPatch,
filterClasses = setOf("Lapp/revanced/extension/shared/patches/components/CustomFilter;"),
filterClasses = setOf("Lapp/revanced/extension/shared/patches/litho/CustomFilter;"),
compatibleWithPackages = arrayOf("com.google.android.apps.youtube.music" to setOf("7.29.52", "8.10.52")),
)

View file

@ -29,7 +29,7 @@ internal var adAttributionId = -1L
internal var fullScreenEngagementAdContainer = -1L
private set
private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/components/AdsFilter;"
private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/litho/AdsFilter;"
private val hideAdsResourcePatch = resourcePatch {
dependsOn(
@ -55,7 +55,7 @@ private val hideAdsResourcePatch = resourcePatch {
SwitchPreference("revanced_hide_web_search_results"),
)
addLithoFilter("Lapp/revanced/extension/youtube/patches/components/AdsFilter;")
addLithoFilter("Lapp/revanced/extension/youtube/patches/litho/AdsFilter;")
adAttributionId = ResourceType.ID["ad_attribution"]
fullScreenEngagementAdContainer = ResourceType.ID["fullscreen_engagement_ad_container"]

View file

@ -78,6 +78,6 @@ val hideVideoActionButtonsPatch = resourcePatch(
),
)
addLithoFilter("Lapp/revanced/extension/youtube/patches/components/ButtonsFilter;")
addLithoFilter("Lapp/revanced/extension/youtube/patches/litho/ButtonsFilter;")
}
}

View file

@ -55,15 +55,15 @@ private val hideLayoutComponentsResourcePatch = resourcePatch {
}
private const val LAYOUT_COMPONENTS_FILTER_CLASS_DESCRIPTOR =
"Lapp/revanced/extension/youtube/patches/components/LayoutComponentsFilter;"
"Lapp/revanced/extension/youtube/patches/litho/LayoutComponentsFilter;"
private const val DESCRIPTION_COMPONENTS_FILTER_CLASS_NAME =
"Lapp/revanced/extension/youtube/patches/components/DescriptionComponentsFilter;"
"Lapp/revanced/extension/youtube/patches/litho/DescriptionComponentsFilter;"
private const val COMMENTS_FILTER_CLASS_NAME =
"Lapp/revanced/extension/youtube/patches/components/CommentsFilter;"
"Lapp/revanced/extension/youtube/patches/litho/CommentsFilter;"
private const val CUSTOM_FILTER_CLASS_NAME =
"Lapp/revanced/extension/shared/patches/components/CustomFilter;"
"Lapp/revanced/extension/shared/patches/litho/CustomFilter;"
private const val KEYWORD_FILTER_CLASS_NAME =
"Lapp/revanced/extension/youtube/patches/components/KeywordContentFilter;"
"Lapp/revanced/extension/youtube/patches/litho/KeywordContentFilter;"
val hideLayoutComponentsPatch = hideLayoutComponentsPatch(
lithoFilterPatch = lithoFilterPatch,

View file

@ -97,7 +97,7 @@ val hideInfoCardsPatch = bytecodePatch(
}
// Info cards can also appear as Litho components.
val filterClassDescriptor = "Lapp/revanced/extension/youtube/patches/components/HideInfoCardsFilter;"
val filterClassDescriptor = "Lapp/revanced/extension/youtube/patches/litho/HideInfoCardsFilter;"
addLithoFilter(filterClassDescriptor)
}
}

View file

@ -33,7 +33,7 @@ val hidePlayerFlyoutMenuItemsPatch = bytecodePatch(
)
apply {
val filterClassDescriptor = "Lapp/revanced/extension/youtube/patches/components/PlayerFlyoutMenuItemsFilter;"
val filterClassDescriptor = "Lapp/revanced/extension/youtube/patches/litho/PlayerFlyoutMenuItemsFilter;"
addResources("youtube", "layout.hide.player.flyoutmenupanel.hidePlayerFlyoutMenuPatch")

View file

@ -157,7 +157,7 @@ private val hideShortsComponentsResourcePatch = resourcePatch {
}
}
private const val FILTER_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/components/ShortsFilter;"
private const val FILTER_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/litho/ShortsFilter;"
@Suppress("unused")
val hideShortsComponentsPatch = bytecodePatch(

View file

@ -41,7 +41,7 @@ private const val EXTENSION_CLASS_DESCRIPTOR =
"Lapp/revanced/extension/youtube/patches/ReturnYouTubeDislikePatch;"
private const val FILTER_CLASS_DESCRIPTOR =
"Lapp/revanced/extension/youtube/patches/components/ReturnYouTubeDislikeFilter;"
"Lapp/revanced/extension/youtube/patches/litho/ReturnYouTubeDislikeFilter;"
@Suppress("ObjectPropertyName")
val returnYouTubeDislikePatch = bytecodePatch(

View file

@ -19,7 +19,7 @@ import com.android.tools.smali.dexlib2.Opcode
lateinit var addLithoFilter: (String) -> Unit
private set
private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/components/LithoFilterPatch;"
private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/litho/LithoFilterPatch;"
val lithoFilterPatch = bytecodePatch(
description = "Hooks the method which parses the bytes into a ComponentContext to filter components.",

View file

@ -27,7 +27,7 @@ private const val EXTENSION_CLASS_DESCRIPTOR =
"Lapp/revanced/extension/youtube/patches/playback/quality/AdvancedVideoQualityMenuPatch;"
private const val FILTER_CLASS_DESCRIPTOR =
"Lapp/revanced/extension/youtube/patches/components/AdvancedVideoQualityMenuFilter;"
"Lapp/revanced/extension/youtube/patches/litho/AdvancedVideoQualityMenuFilter;"
internal val advancedVideoQualityMenuPatch = bytecodePatch {
dependsOn(

View file

@ -34,7 +34,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
import com.android.tools.smali.dexlib2.immutable.ImmutableField
private const val FILTER_CLASS_DESCRIPTOR =
"Lapp/revanced/extension/youtube/patches/components/PlaybackSpeedMenuFilter;"
"Lapp/revanced/extension/youtube/patches/litho/PlaybackSpeedMenuFilter;"
private const val EXTENSION_CLASS_DESCRIPTOR =
"Lapp/revanced/extension/youtube/patches/playback/speed/CustomPlaybackSpeedPatch;"