Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b9a5b09
feat(YouTube - Hide layout components): Add "Hide visual spacers"
ILoveOpenSourceApplications Dec 2, 2025
2bc493c
feat(YouTube - Hide layout components): Added "Hide Featured links" a…
ILoveOpenSourceApplications Dec 2, 2025
50bfedf
Revert "feat(YouTube - Hide layout components): Added "Hide Featured …
ILoveOpenSourceApplications Dec 2, 2025
295b7fa
Revert "feat(YouTube - Hide layout components): Add "Hide visual spac…
ILoveOpenSourceApplications Dec 2, 2025
a0fc244
feat(YouTube - Hide layout components): Add "Hide visual spacers"
ILoveOpenSourceApplications Dec 2, 2025
ef4563f
feat(YouTube - Hide Shorts components): Add "Hide disclosure tag"
ILoveOpenSourceApplications Dec 2, 2025
f107279
Revert "feat(YouTube - Hide Shorts components): Add "Hide disclosure …
ILoveOpenSourceApplications Dec 2, 2025
e9a1c1d
fix(YouTube - Hide Shorts components): Fix "Hide paid promotion label"
ILoveOpenSourceApplications Dec 2, 2025
b323365
feat(YouTube - Hide Shorts components): Add "Hide live preview"
ILoveOpenSourceApplications Dec 2, 2025
c5471a5
feat(YouTube - Hide layout components): Added "Hide Featured links" a…
ILoveOpenSourceApplications Dec 2, 2025
753dab5
Revert "feat(YouTube - Hide Shorts components): Add "Hide live preview""
ILoveOpenSourceApplications Dec 2, 2025
ca7106e
Revert "fix(YouTube - Hide Shorts components): Fix "Hide paid promoti…
ILoveOpenSourceApplications Dec 2, 2025
5313b10
Reapply "feat(YouTube - Hide Shorts components): Add "Hide disclosure…
ILoveOpenSourceApplications Dec 2, 2025
3e82cfc
Revert "feat(YouTube - Hide Shorts components): Add "Hide live preview""
ILoveOpenSourceApplications Dec 2, 2025
549f863
Revert "feat(YouTube - Hide Shorts components): Add "Hide live preview""
ILoveOpenSourceApplications Dec 2, 2025
b11926b
Revert "Reapply "feat(YouTube - Hide Shorts components): Add "Hide di…
ILoveOpenSourceApplications Dec 2, 2025
321f61e
Revert "fix(YouTube - Hide Shorts components): Fix "Hide paid promoti…
ILoveOpenSourceApplications Dec 2, 2025
22f1bee
feat(YouTube - Hide layout components): Added "Hide Featured links" a…
ILoveOpenSourceApplications Dec 2, 2025
ccc81aa
Revert "feat(YouTube - Hide layout components): Added "Hide Featured …
ILoveOpenSourceApplications Dec 2, 2025
7fadc27
Revert "feat(YouTube - Hide layout components): Add "Hide visual spac…
ILoveOpenSourceApplications Dec 2, 2025
78bdb91
feat(YouTube - Hide layout components): Add "Hide visual spacers"
ILoveOpenSourceApplications Dec 2, 2025
0d17035
feat(YouTube - Hide Shorts components): Add "Hide disclosure tag"
ILoveOpenSourceApplications Dec 2, 2025
53a0dbc
Revert "feat(YouTube - Hide Shorts components): Add "Hide disclosure …
ILoveOpenSourceApplications Dec 2, 2025
3589a34
fix(YouTube - Hide Shorts components): Fix "Hide paid promotion label"
ILoveOpenSourceApplications Dec 2, 2025
d19c8dd
feat(YouTube - Hide Shorts components): Add "Hide live preview"
ILoveOpenSourceApplications Dec 2, 2025
529708d
feat(YouTube - Hide layout components): Added "Hide Featured links" a…
ILoveOpenSourceApplications Dec 2, 2025
1649caa
Revert "feat(YouTube - Hide Shorts components): Add "Hide live preview""
ILoveOpenSourceApplications Dec 2, 2025
0199903
Revert "fix(YouTube - Hide Shorts components): Fix "Hide paid promoti…
ILoveOpenSourceApplications Dec 2, 2025
c5feb7e
Reapply "feat(YouTube - Hide Shorts components): Add "Hide disclosure…
ILoveOpenSourceApplications Dec 2, 2025
641286e
Revert "feat(YouTube - Hide Shorts components): Add "Hide live preview""
ILoveOpenSourceApplications Dec 2, 2025
90c9431
Revert "feat(YouTube - Hide Shorts components): Add "Hide live preview""
ILoveOpenSourceApplications Dec 2, 2025
ddbc465
Revert "Reapply "feat(YouTube - Hide Shorts components): Add "Hide di…
ILoveOpenSourceApplications Dec 2, 2025
fbcaa6d
Revert "fix(YouTube - Hide Shorts components): Fix "Hide paid promoti…
ILoveOpenSourceApplications Dec 2, 2025
f6ebc8a
Merge remote-tracking branch 'origin/feat/hide-layout-components' int…
ILoveOpenSourceApplications Dec 2, 2025
92b8896
Rename "Hide visual spacers" to "Hide cell divider"
ILoveOpenSourceApplications Dec 3, 2025
0baec54
Apply suggestion from @oSumAtrIX
oSumAtrIX Dec 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,23 @@ public List<Setting<?>> getParentSettings() {
};
}

/**
* Availability based on a single parent setting being disabled.
*/
public static Availability parentNot(BooleanSetting parent) {
return new Availability() {
@Override
public boolean isAvailable() {
return !parent.get();
}

@Override
public List<Setting<?>> getParentSettings() {
return Collections.singletonList(parent);
}
};
}

/**
* Availability based on all parents being enabled.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ public DescriptionComponentsFilter() {
"video_attributes_section"
);

final StringFilterGroup featuredSection = new StringFilterGroup(
Settings.HIDE_FEATURED_SECTION,
// "media_lockup", "structured_description_video_lockup"
"compact_infocard"
final StringFilterGroup featuredLinksSection = new StringFilterGroup(
Settings.HIDE_FEATURED_LINKS_SECTION,
"media_lockup"
);

final StringFilterGroup featuredVideosSection = new StringFilterGroup(
Settings.HIDE_FEATURED_VIDEOS_SECTION,
"structured_description_video_lockup"
);

final StringFilterGroup podcastSection = new StringFilterGroup(
Expand Down Expand Up @@ -76,7 +80,7 @@ public DescriptionComponentsFilter() {
);

subscribeButton = new StringFilterGroup(
Settings.HIDE_DESCRIPTION_SUBSCRIBE_BUTTON,
Settings.HIDE_SUBSCRIBE_BUTTON,
"subscribe_button"
);

Expand Down Expand Up @@ -110,7 +114,8 @@ public DescriptionComponentsFilter() {
aiGeneratedVideoSummarySection,
askSection,
attributesSection,
featuredSection,
featuredLinksSection,
featuredVideosSection,
horizontalShelf,
howThisWasMadeSection,
hypePoints,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,18 @@ public LayoutComponentsFilter() {

// Identifiers.

final var cellDivider = new StringFilterGroup(
Settings.HIDE_CELL_DIVIDER,
"cell_divider"
);

final var chipsShelf = new StringFilterGroup(
Settings.HIDE_CHIPS_SHELF,
"chips_shelf"
);

addIdentifierCallbacks(
cellDivider,
chipsShelf
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;
import static app.revanced.extension.shared.settings.Setting.parent;
import static app.revanced.extension.shared.settings.Setting.parentNot;
import static app.revanced.extension.shared.settings.Setting.parentsAll;
import static app.revanced.extension.shared.settings.Setting.parentsAny;
import static app.revanced.extension.youtube.patches.ChangeFormFactorPatch.FormFactor;
Expand Down Expand Up @@ -92,6 +93,7 @@ public class Settings extends BaseSettings {
// Feed
public static final BooleanSetting HIDE_ALBUM_CARDS = new BooleanSetting("revanced_hide_album_cards", FALSE, true);
public static final BooleanSetting HIDE_ARTIST_CARDS = new BooleanSetting("revanced_hide_artist_cards", FALSE);
public static final BooleanSetting HIDE_CELL_DIVIDER = new BooleanSetting("revanced_hide_cell_divider", TRUE);
public static final BooleanSetting HIDE_CHIPS_SHELF = new BooleanSetting("revanced_hide_chips_shelf", TRUE);
public static final BooleanSetting HIDE_COMMUNITY_POSTS = new BooleanSetting("revanced_hide_community_posts", FALSE);
public static final BooleanSetting HIDE_COMPACT_BANNER = new BooleanSetting("revanced_hide_compact_banner", TRUE);
Expand Down Expand Up @@ -210,13 +212,14 @@ public class Settings extends BaseSettings {
public static final BooleanSetting HIDE_ASK_SECTION = new BooleanSetting("revanced_hide_ask_section", FALSE);
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_FEATURED_SECTION = new BooleanSetting("revanced_hide_featured_section", TRUE);
public static final BooleanSetting HIDE_HOW_THIS_WAS_MADE_SECTION = new BooleanSetting("revanced_hide_how_this_was_made_section", FALSE);
public static final BooleanSetting HIDE_HYPE_POINTS = new BooleanSetting("revanced_hide_hype_points", FALSE);
public static final BooleanSetting HIDE_INFO_CARDS_SECTION = new BooleanSetting("revanced_hide_info_cards_section", TRUE);
public static final BooleanSetting HIDE_FEATURED_LINKS_SECTION = new BooleanSetting("revanced_hide_featured_links_section", FALSE, parentNot(HIDE_INFO_CARDS_SECTION));
public static final BooleanSetting HIDE_FEATURED_VIDEOS_SECTION = new BooleanSetting("revanced_hide_featured_videos_section", FALSE, parentNot(HIDE_INFO_CARDS_SECTION));
public static final BooleanSetting HIDE_SUBSCRIBE_BUTTON = new BooleanSetting("revanced_hide_subscribe_button", FALSE, parentNot(HIDE_INFO_CARDS_SECTION));
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);
public static final BooleanSetting HIDE_DESCRIPTION_SUBSCRIBE_BUTTON = new BooleanSetting("revanced_hide_description_subscribe_button", TRUE);
public static final BooleanSetting HIDE_TRANSCRIPT_SECTION = new BooleanSetting("revanced_hide_transcript_section", TRUE);

// Action buttons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,14 @@ val hideLayoutComponentsPatch = bytecodePatch(
SwitchPreference("revanced_hide_ask_section"),
SwitchPreference("revanced_hide_attributes_section"),
SwitchPreference("revanced_hide_chapters_section"),
SwitchPreference("revanced_hide_featured_section"),
SwitchPreference("revanced_hide_featured_links_section"),
SwitchPreference("revanced_hide_featured_videos_section"),
SwitchPreference("revanced_hide_info_cards_section"),
SwitchPreference("revanced_hide_how_this_was_made_section"),
SwitchPreference("revanced_hide_hype_points"),
SwitchPreference("revanced_hide_key_concepts_section"),
SwitchPreference("revanced_hide_podcast_section"),
SwitchPreference("revanced_hide_description_subscribe_button"),
SwitchPreference("revanced_hide_subscribe_button"),
SwitchPreference("revanced_hide_transcript_section"),
),
),
Expand Down Expand Up @@ -223,10 +224,11 @@ val hideLayoutComponentsPatch = bytecodePatch(
),
SwitchPreference("revanced_hide_album_cards"),
SwitchPreference("revanced_hide_artist_cards"),
SwitchPreference("revanced_hide_cell_divider"),
SwitchPreference("revanced_hide_chips_shelf"),
SwitchPreference("revanced_hide_community_posts"),
SwitchPreference("revanced_hide_compact_banner"),
SwitchPreference("revanced_hide_crowdfunding_box"),
SwitchPreference("revanced_hide_chips_shelf"),
SwitchPreference("revanced_hide_expandable_card"),
SwitchPreference("revanced_hide_floating_microphone_button"),
SwitchPreference(
Expand All @@ -242,9 +244,9 @@ val hideLayoutComponentsPatch = bytecodePatch(
SwitchPreference("revanced_hide_show_more_button"),
SwitchPreference("revanced_hide_surveys"),
SwitchPreference("revanced_hide_ticket_shelf"),
SwitchPreference("revanced_hide_upload_time"),
SwitchPreference("revanced_hide_video_recommendation_labels"),
SwitchPreference("revanced_hide_view_count"),
SwitchPreference("revanced_hide_upload_time"),
SwitchPreference("revanced_hide_doodles"),
)

Expand Down
18 changes: 12 additions & 6 deletions patches/src/main/resources/addresources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ However, enabling this will also log some user data such as your IP address."</s
<string name="revanced_hide_artist_cards_title">Hide artist cards</string>
<string name="revanced_hide_artist_cards_summary_on">Artist cards are hidden</string>
<string name="revanced_hide_artist_cards_summary_off">Artist cards are shown</string>
<string name="revanced_hide_cell_divider_title">Hide cell divider</string>
<string name="revanced_hide_cell_divider_summary_on">Cell divider (Visual space) is hidden</string>
<string name="revanced_hide_cell_divider_summary_off">Cell divider (Visual space) is shown</string>
<string name="revanced_hide_chips_shelf_title">Hide chips shelf</string>
<string name="revanced_hide_chips_shelf_summary_on">Chips shelf is hidden</string>
<string name="revanced_hide_chips_shelf_summary_off">Chips shelf is shown</string>
Expand Down Expand Up @@ -346,18 +349,21 @@ If a Doodle is currently showing in your region and this hide setting is on, the
<string name="revanced_hide_podcast_section_title">Hide \'Explore the podcast\'</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>
<string name="revanced_hide_featured_section_title">Hide Featured content</string>
<string name="revanced_hide_featured_section_summary_on">Featured content section is hidden</string>
<string name="revanced_hide_featured_section_summary_off">Featured content section is shown</string>
<string name="revanced_hide_featured_links_section_title">Hide Featured links</string>
<string name="revanced_hide_featured_links_section_summary_on">Featured links section is hidden</string>
<string name="revanced_hide_featured_links_section_summary_off">Featured links section is shown</string>
<string name="revanced_hide_featured_videos_section_title">Hide Featured videos</string>
<string name="revanced_hide_featured_videos_section_summary_on">Featured videos section is hidden</string>
<string name="revanced_hide_featured_videos_section_summary_off">Featured videos section is shown</string>
<string name="revanced_hide_info_cards_section_title">Hide Info cards</string>
<string name="revanced_hide_info_cards_section_summary_on">Info cards section is hidden</string>
<string name="revanced_hide_info_cards_section_summary_off">Info cards section is shown</string>
<string name="revanced_hide_key_concepts_section_title">Hide \'Key concepts\'</string>
<string name="revanced_hide_key_concepts_section_summary_on">Key concepts section is hidden</string>
<string name="revanced_hide_key_concepts_section_summary_off">Key concepts section is shown</string>
<string name="revanced_hide_description_subscribe_button_title">Hide Subscribe button</string>
<string name="revanced_hide_description_subscribe_button_summary_on">Subscribe button is hidden</string>
<string name="revanced_hide_description_subscribe_button_summary_off">Subscribe button is shown</string>
<string name="revanced_hide_subscribe_button_title">Hide Subscribe button</string>
<string name="revanced_hide_subscribe_button_summary_on">Subscribe button is hidden</string>
<string name="revanced_hide_subscribe_button_summary_off">Subscribe button is shown</string>
<string name="revanced_hide_transcript_section_title">Hide Transcript</string>
<string name="revanced_hide_transcript_section_summary_on">Transcript section is hidden</string>
<string name="revanced_hide_transcript_section_summary_off">Transcript section is shown</string>
Expand Down