Skip to content

Commit

Permalink
feat(YouTube - Hide video description components): Add `Hide How this…
Browse files Browse the repository at this point in the history
… was made section`
  • Loading branch information
ILoveOpenSourceApplications committed Jan 25, 2025
1 parent b4cc149 commit cfe6c8a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public DescriptionComponentsFilter() {
"transcript_section"
);

final StringFilterGroup howThisWasMadeSection = new StringFilterGroup(
Settings.HIDE_HOW_THIS_WAS_MADE_SECTION,
"how_this_was_made_section"
);

macroMarkersCarousel = new StringFilterGroup(
null,
"macro_markers_carousel.eml"
Expand All @@ -64,6 +69,7 @@ public DescriptionComponentsFilter() {
addPathCallbacks(
attributesSection,
infoCardsSection,
howThisWasMadeSection,
podcastSection,
transcriptSection,
macroMarkersCarousel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public class Settings extends BaseSettings {
// Description
public static final BooleanSetting HIDE_ATTRIBUTES_SECTION = new BooleanSetting("revanced_hide_attributes_section", FALSE);
public static final BooleanSetting HIDE_CHAPTERS_SECTION = new BooleanSetting("revanced_hide_chapters_section", TRUE);
public static final BooleanSetting HIDE_HOW_THIS_WAS_MADE_SECTION = new BooleanSetting("revanced_hide_how_this_was_made_section"),", TRUE);
public static final BooleanSetting HIDE_INFO_CARDS_SECTION = new BooleanSetting("revanced_hide_info_cards_section", TRUE);
public static final BooleanSetting HIDE_KEY_CONCEPTS_SECTION = new BooleanSetting("revanced_hide_key_concepts_section", FALSE);
public static final BooleanSetting HIDE_PODCAST_SECTION = new BooleanSetting("revanced_hide_podcast_section", TRUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ val hideLayoutComponentsPatch = bytecodePatch(
SwitchPreference("revanced_hide_attributes_section"),
SwitchPreference("revanced_hide_chapters_section"),
SwitchPreference("revanced_hide_info_cards_section"),
SwitchPreference("revanced_hide_how_this_was_made_section"),
SwitchPreference("revanced_hide_key_concepts_section"),
SwitchPreference("revanced_hide_podcast_section"),
SwitchPreference("revanced_hide_transcript_section"),
Expand Down
3 changes: 3 additions & 0 deletions patches/src/main/resources/addresources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ You will not be notified of any unexpected events."</string>
<string name="revanced_hide_chapters_section_title">Hide Chapters section</string>
<string name="revanced_hide_chapters_section_summary_on">Chapters section is hidden</string>
<string name="revanced_hide_chapters_section_summary_off">Chapters section is shown</string>
<string name="revanced_hide_content_section_title">Hide How this was made section</string>
<string name="revanced_hide_content_section_summary_on">How this was made section is hidden</string>
<string name="revanced_hide_content_section_summary_off">How this was made section is shown</string>
<string name="revanced_hide_podcast_section_title">Hide \'Explore the podcast\' section</string>
<string name="revanced_hide_podcast_section_summary_on">\'Explore the podcast\' section is hidden</string>
<string name="revanced_hide_podcast_section_summary_off">\'Explore the podcast\' section is shown</string>
Expand Down

0 comments on commit cfe6c8a

Please sign in to comment.