Skip to content

Commit dd4e2cd

Browse files
fix(YouTube - Hide Shorts components): Fix "Hide preview comment" (#5990)
1 parent fadc668 commit dd4e2cd

File tree

1 file changed

+8
-7
lines changed
  • extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components

1 file changed

+8
-7
lines changed

extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/components/ShortsFilter.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ public ShortsFilter() {
154154
"reel_dislike_button.eml"
155155
);
156156

157+
StringFilterGroup previewComment = new StringFilterGroup(
158+
Settings.HIDE_SHORTS_PREVIEW_COMMENT,
159+
// Preview comment that can popup while a Short is playing.
160+
// Uses no bundled icons, and instead the users profile photo is shown.
161+
"participation_bar.eml"
162+
);
163+
157164
joinButton = new StringFilterGroup(
158165
Settings.HIDE_SHORTS_JOIN_BUTTON,
159166
"sponsor_button"
@@ -213,7 +220,7 @@ public ShortsFilter() {
213220

214221
addPathCallbacks(
215222
shortsCompactFeedVideo, joinButton, subscribeButton, paidPromotionButton,
216-
shortsActionBar, suggestedAction, pausedOverlayButtons, channelBar,
223+
shortsActionBar, suggestedAction, pausedOverlayButtons, channelBar, previewComment,
217224
fullVideoLinkLabel, videoTitle, useSoundButton, reelSoundMetadata, soundButton, infoPanel,
218225
stickers, likeFountain, likeButton, dislikeButton
219226
);
@@ -243,12 +250,6 @@ public ShortsFilter() {
243250
// Suggested actions.
244251
//
245252
suggestedActionsBuffer.addAll(
246-
new ByteArrayFilterGroup(
247-
Settings.HIDE_SHORTS_PREVIEW_COMMENT,
248-
// Preview comment that can popup while a Short is playing.
249-
// Uses no bundled icons, and instead the users profile photo is shown.
250-
"shorts-comments-panel"
251-
),
252253
new ByteArrayFilterGroup(
253254
Settings.HIDE_SHORTS_SHOP_BUTTON,
254255
"yt_outline_bag_"

0 commit comments

Comments
 (0)