Skip to content

Commit e5ced63

Browse files
fix(YouTube - Hide description components): Replace Hide game section and Hide music section with Hide attributes section (#3327)
Co-authored-by: ILoveOpenSourceApplications <[email protected]>
1 parent 1147094 commit e5ced63

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,9 @@ object HideLayoutComponentsPatch : BytecodePatch(
9494
PreferenceScreen(
9595
key = "revanced_hide_description_components_screen",
9696
preferences = setOf(
97-
SwitchPreference("revanced_hide_chapters"),
97+
SwitchPreference("revanced_hide_attributes_section"),
98+
SwitchPreference("revanced_hide_chapters_section"),
9899
SwitchPreference("revanced_hide_info_cards_section"),
99-
SwitchPreference("revanced_hide_game_section"),
100-
SwitchPreference("revanced_hide_music_section"),
101100
SwitchPreference("revanced_hide_podcast_section"),
102101
SwitchPreference("revanced_hide_transcript_section"),
103102
),

src/main/resources/addresources/values/strings.xml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,22 +198,19 @@
198198
<string name="revanced_hide_chips_shelf_title">Hide chips shelf</string>
199199
<string name="revanced_hide_chips_shelf_summary_on">Chips shelf is hidden</string>
200200
<string name="revanced_hide_chips_shelf_summary_off">Chips shelf is shown</string>
201+
<string name="revanced_hide_attributes_section_title">Hide attributes section</string>
202+
<string name="revanced_hide_attributes_section_summary_on">\'Featured places\', Games and Music sections are hidden</string>
203+
<string name="revanced_hide_attributes_section_summary_off">\'Featured places\', Games and Music sections are shown</string>
204+
<string name="revanced_hide_chapters_title">Hide Chapters section</string>
205+
<string name="revanced_hide_chapters_summary_on">Chapters section is hidden</string>
206+
<string name="revanced_hide_chapters_summary_off">Chapters section is shown</string>
207+
<string name="revanced_hide_podcast_section_title">Hide \'Explore the podcast\' section</string>
208+
<string name="revanced_hide_podcast_section_summary_on">\'Explore the podcast\' section is hidden</string>
209+
<string name="revanced_hide_podcast_section_summary_off">\'Explore the podcast\' section is shown</string>
201210
<string name="revanced_hide_info_cards_section_title">Hide info cards section</string>
202211
<string name="revanced_hide_info_cards_section_summary_on">Info cards section is hidden</string>
203212
<string name="revanced_hide_info_cards_section_summary_off">Info cards section is shown</string>
204-
<string name="revanced_hide_chapters_title">Hide chapters</string>
205-
<string name="revanced_hide_chapters_summary_on">Chapters are hidden</string>
206-
<string name="revanced_hide_chapters_summary_off">Chapters are shown</string>
207-
<string name="revanced_hide_game_section_title">Hide game section</string>
208-
<string name="revanced_hide_game_section_summary_on">Game section is hidden</string>
209-
<string name="revanced_hide_game_section_summary_off">Game section is shown</string>
210-
<string name="revanced_hide_music_section_title">Hide music section</string>
211-
<string name="revanced_hide_music_section_summary_on">Music section is hidden</string>
212-
<string name="revanced_hide_music_section_summary_off">Music section is shown</string>
213-
<string name="revanced_hide_podcast_section_title">Hide podcast section</string>
214-
<string name="revanced_hide_podcast_section_summary_on">Podcast section is hidden</string>
215-
<string name="revanced_hide_podcast_section_summary_off">Podcast section is shown</string>
216-
<string name="revanced_hide_transcript_section_title">Hide transcript section</string>
213+
<string name="revanced_hide_transcript_section_title">Hide Transcript section</string>
217214
<string name="revanced_hide_transcript_section_summary_on">Transcript section is hidden</string>
218215
<string name="revanced_hide_transcript_section_summary_off">Transcript section is shown</string>
219216
<string name="revanced_hide_description_components_screen_title">Video description</string>

0 commit comments

Comments
 (0)