Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 16c3ef7

Browse files
authored
feat(YouTube - Hide Shorts components): Add option to hide like fountain (#708)
1 parent df2ebfb commit 16c3ef7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsFilter.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public final class ShortsFilter extends Filter {
3333
private final StringFilterGroup shelfHeader;
3434

3535
private final StringFilterGroup suggestedAction;
36-
private final ByteArrayFilterGroupList suggestedActionsGroupList = new ByteArrayFilterGroupList();
36+
private final ByteArrayFilterGroupList suggestedActionsGroupList = new ByteArrayFilterGroupList();
3737

3838
private final StringFilterGroup actionBar;
3939
private final ByteArrayFilterGroupList videoActionButtonGroupList = new ByteArrayFilterGroupList();
@@ -117,6 +117,11 @@ public ShortsFilter() {
117117
"stickers_layer.eml"
118118
);
119119

120+
StringFilterGroup likeFountain = new StringFilterGroup(
121+
Settings.HIDE_SHORTS_LIKE_FOUNTAIN,
122+
"like_fountain.eml"
123+
);
124+
120125
joinButton = new StringFilterGroup(
121126
Settings.HIDE_SHORTS_JOIN_BUTTON,
122127
"sponsor_button"
@@ -145,7 +150,7 @@ public ShortsFilter() {
145150
addPathCallbacks(
146151
shortsCompactFeedVideoPath, suggestedAction, actionBar, joinButton, subscribeButton,
147152
paidPromotionButton, pausedOverlayButtons, channelBar, fullVideoLinkLabel, videoTitle,
148-
reelSoundMetadata, soundButton, infoPanel, stickers
153+
reelSoundMetadata, soundButton, infoPanel, stickers, likeFountain
149154
);
150155

151156
//

app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ public class Settings extends BaseSettings {
223223
public static final BooleanSetting HIDE_SHORTS_SEARCH_SUGGESTIONS = new BooleanSetting("revanced_hide_shorts_search_suggestions", FALSE);
224224
public static final BooleanSetting HIDE_SHORTS_STICKERS = new BooleanSetting("revanced_hide_shorts_stickers", TRUE);
225225
public static final BooleanSetting HIDE_SHORTS_SUPER_THANKS_BUTTON = new BooleanSetting("revanced_hide_shorts_super_thanks_button", TRUE);
226+
public static final BooleanSetting HIDE_SHORTS_LIKE_FOUNTAIN = new BooleanSetting("revanced_hide_shorts_like_fountain", TRUE);
226227
public static final BooleanSetting HIDE_SHORTS_LIKE_BUTTON = new BooleanSetting("revanced_hide_shorts_like_button", FALSE);
227228
public static final BooleanSetting HIDE_SHORTS_DISLIKE_BUTTON = new BooleanSetting("revanced_hide_shorts_dislike_button", FALSE);
228229
public static final BooleanSetting HIDE_SHORTS_COMMENTS_BUTTON = new BooleanSetting("revanced_hide_shorts_comments_button", FALSE);

0 commit comments

Comments
 (0)