Skip to content

Commit

Permalink
feat(YouTube - Hide Shorts Component): Add new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
YT-Advanced committed Mar 26, 2024
1 parent ceb15f3 commit f84f72b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ public ShortsFilter() {
"sponsor_button"
);

final StringFilterGroup reelSoundMetadata = new StringFilterGroup(
SettingsEnum.HIDE_SHORTS_PLAYER_SOUND_METADATA_LABEL,
"reel_sound_metadata"
);

final StringFilterGroup subscribeButton = new StringFilterGroup(
SettingsEnum.HIDE_SHORTS_PLAYER_SUBSCRIPTIONS_BUTTON,
"shorts_paused_state",
Expand All @@ -93,12 +98,25 @@ public ShortsFilter() {
"shorts_video_action_button"
);

final StringFilterGroup videoLinkLabel = new StringFilterGroup(
SettingsEnum.HIDE_SHORTS_PLAYER_VIDEO_LINK_LABEL,
"reel_multi_format_link"
);

final StringFilterGroup videoTitle = new StringFilterGroup(
SettingsEnum.HIDE_SHORTS_PLAYER_VIDEO_TITLE,
"shorts_video_title_item"
);

pathFilterGroupList.addAll(
shortsCompactFeedVideoPath,
joinButton,
reelSoundMetadata,
subscribeButton,
infoPanel,
videoActionButton
videoActionButton,
videoLinkLabel,
videoTitle
);

final ByteArrayAsStringFilterGroup shortsDislikeButton =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ public enum SettingsEnum {
HIDE_SHORTS_PLAYER_SUBSCRIPTIONS_BUTTON("revanced_hide_shorts_player_subscriptions_button", BOOLEAN, TRUE),
HIDE_SHORTS_PLAYER_THANKS_BUTTON("revanced_hide_shorts_player_thanks_button", BOOLEAN, TRUE),
HIDE_SHORTS_PLAYER_PIVOT_BUTTON("revanced_hide_shorts_player_pivot_button", BOOLEAN, TRUE),
HIDE_SHORTS_PLAYER_VIDEO_TITLE("revanced_hide_shorts_player_video_title", BOOLEAN, FALSE),

HIDE_SHORTS_PLAYER_SOUND_METADATA_LABEL("revanced_hide_shorts_player_sound_metadata_label", BOOLEAN, TRUE),
HIDE_SHORTS_PLAYER_VIDEO_LINK_LABEL("revanced_hide_shorts_player_video_link_label", BOOLEAN, TRUE),

HIDE_SHORTS_TOOLBAR_BANNER("revanced_hide_shorts_toolbar_banner", BOOLEAN, FALSE, true),
HIDE_SHORTS_TOOLBAR_CAMERA_BUTTON("revanced_hide_shorts_toolbar_camera_button", BOOLEAN, FALSE, true),
HIDE_SHORTS_TOOLBAR_MENU_BUTTON("revanced_hide_shorts_toolbar_menu_button", BOOLEAN, FALSE, true),
Expand Down

0 comments on commit f84f72b

Please sign in to comment.