feat(YouTube - Hide layout components): Hide chips shelf (#448)

This commit is contained in:
johnconner122 2023-07-26 18:47:56 +05:00 committed by GitHub
parent d7fc06a647
commit c7d2a9b310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -136,6 +136,11 @@ public final class LayoutComponentsFilter extends Filter {
"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,
@ -158,7 +163,10 @@ public final class LayoutComponentsFilter extends Filter {
channelMemberShelf
);
this.identifierFilterGroups.addAll(graySeparator);
this.identifierFilterGroups.addAll(
graySeparator,
chipsShelf
);
}
@Override

View File

@ -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),