feat(YouTube/Hide layout components): custom filtering of the protocol buffer

This commit is contained in:
inotia00 2024-03-11 14:36:04 +09:00
parent 2bc970e6d6
commit a57c0f9d9b
2 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@ import app.revanced.patches.youtube.utils.settings.SettingsPatch
object LayoutComponentsPatch : BytecodePatch(emptySet()) {
override fun execute(context: BytecodeContext) {
LithoFilterPatch.addFilter("$COMPONENTS_PATH/ChannelBarFilter;")
LithoFilterPatch.addFilter("$COMPONENTS_PATH/CustomFilter;")
LithoFilterPatch.addFilter("$COMPONENTS_PATH/LayoutComponentsFilter;")
/**

View File

@ -80,6 +80,8 @@ Note: This feature hasn't been tested."</string>
<string name="revanced_custom_filter_strings_summary">Configure which components to filter, separated by new lines.</string>
<string name="revanced_custom_filter_strings_title">Edit custom filter</string>
<string name="revanced_custom_filter_strings_warning">Invalid custom filter. Filter reset to default.</string>
<string name="revanced_custom_filter_toast_invalid_characters" formatted="false">Invalid custom filter (must be ASCII only): %s.</string>
<string name="revanced_custom_filter_toast_invalid_syntax" formatted="false">Invalid custom filter: %s.</string>
<string name="revanced_custom_filter_summary_off">Custom filter is disabled.</string>
<string name="revanced_custom_filter_summary_on">Custom filter is enabled.</string>
<string name="revanced_custom_filter_title">Enable custom filter</string>