Skip to content

Commit

Permalink
feat(YouTube - Hide layout components): Hide chips shelf (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnconner122 committed Jul 26, 2023
1 parent d7fc06a commit c7d2a9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -136,6 +136,11 @@ public LayoutComponentsFilter() {
"cell_divider" // layout residue (gray line above the buttoned ad),
);

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

this.pathFilterGroups.addAll(
channelBar,
communityPosts,
Expand All @@ -158,7 +163,10 @@ public LayoutComponentsFilter() {
channelMemberShelf
);

this.identifierFilterGroups.addAll(graySeparator);
this.identifierFilterGroups.addAll(
graySeparator,
chipsShelf
);
}

@Override
Expand Down
Expand Up @@ -105,6 +105,7 @@ public enum SettingsEnum {
HIDE_CAST_BUTTON("revanced_hide_cast_button", BOOLEAN, TRUE, true),
HIDE_COMMENTS_SECTION("revanced_hide_comments_section", BOOLEAN, FALSE, true),
HIDE_CREATE_BUTTON("revanced_hide_create_button", BOOLEAN, TRUE, true),
HIDE_CHIPS_SHELF("revanced_hide_chips_shelf", BOOLEAN, TRUE),
HIDE_CROWDFUNDING_BOX("revanced_hide_crowdfunding_box", BOOLEAN, FALSE, true),
HIDE_EMAIL_ADDRESS("revanced_hide_email_address", BOOLEAN, FALSE),
HIDE_ENDSCREEN_CARDS("revanced_hide_endscreen_cards", BOOLEAN, TRUE),
Expand Down

0 comments on commit c7d2a9b

Please sign in to comment.