mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-06 09:34:37 +02:00
feat(YouTube/Hide layout components): custom filtering of the protocol buffer
This commit is contained in:
parent
2bc970e6d6
commit
a57c0f9d9b
@ -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;")
|
||||
|
||||
/**
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user