File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
kotlin/app/revanced/patches/youtube/layout/hide/general
resources/addresources/values Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ object HideLayoutComponentsPatch : BytecodePatch(
5959 " Lapp/revanced/integrations/youtube/patches/components/LayoutComponentsFilter;"
6060 private const val DESCRIPTION_COMPONENTS_FILTER_CLASS_NAME =
6161 " Lapp/revanced/integrations/youtube/patches/components/DescriptionComponentsFilter;"
62+ private const val CUSTOM_FILTER_CLASS_NAME =
63+ " Lapp/revanced/integrations/youtube/patches/components/CustomFilter;"
64+
6265
6366 override fun execute (context : BytecodeContext ) {
6467 AddResourcesPatch (this ::class )
@@ -116,6 +119,7 @@ object HideLayoutComponentsPatch : BytecodePatch(
116119
117120 LithoFilterPatch .addFilter(LAYOUT_COMPONENTS_FILTER_CLASS_DESCRIPTOR )
118121 LithoFilterPatch .addFilter(DESCRIPTION_COMPONENTS_FILTER_CLASS_NAME )
122+ LithoFilterPatch .addFilter(CUSTOM_FILTER_CLASS_NAME )
119123
120124 // region Mix playlists
121125
Original file line number Diff line number Diff line change 178178 <string name =" revanced_custom_filter_strings_title" >Custom filter</string >
179179 <string name =" revanced_custom_filter_strings_summary" >List of component path builder strings to filter separated by new line</string >
180180 <string name =" revanced_custom_filter_preference_screen_summary" >Hide components using custom filters</string >
181+ <string name =" revanced_custom_filter_toast_invalid_characters" >Invalid custom filter (must be ASCII only): %s</string >
182+ <string name =" revanced_custom_filter_toast_invalid_syntax" >Invalid custom filter: %s</string >
183+ <string name =" revanced_custom_filter_toast_reset" >Custom filter reset to default</string >
181184 </patch >
182185 <patch id =" ad.general.HideAdsResourcePatch" >
183186 <string name =" revanced_hide_general_ads_title" >Hide general ads</string >
You can’t perform that action at this time.
0 commit comments