mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-07 10:35:49 +01:00
feat(YouTube - Hide Shorts components): Hide title and full video link label
This commit is contained in:
parent
2a08e5a98e
commit
59165de801
@ -21,6 +21,8 @@ public final class ShortsFilter extends Filter {
|
|||||||
private final ByteArrayFilterGroup shortsCompactFeedVideoBuffer;
|
private final ByteArrayFilterGroup shortsCompactFeedVideoBuffer;
|
||||||
|
|
||||||
private final StringFilterGroup channelBar;
|
private final StringFilterGroup channelBar;
|
||||||
|
private final StringFilterGroup fullVideoLinkLabel;
|
||||||
|
private final StringFilterGroup videoTitle;
|
||||||
private final StringFilterGroup subscribeButton;
|
private final StringFilterGroup subscribeButton;
|
||||||
private final StringFilterGroup subscribeButtonPaused;
|
private final StringFilterGroup subscribeButtonPaused;
|
||||||
private final StringFilterGroup soundButton;
|
private final StringFilterGroup soundButton;
|
||||||
@ -84,6 +86,16 @@ public final class ShortsFilter extends Filter {
|
|||||||
REEL_CHANNEL_BAR_PATH
|
REEL_CHANNEL_BAR_PATH
|
||||||
);
|
);
|
||||||
|
|
||||||
|
fullVideoLinkLabel = new StringFilterGroup(
|
||||||
|
Settings.HIDE_SHORTS_FULL_VIDEO_LINK_LABEL,
|
||||||
|
"reel_multi_format_link"
|
||||||
|
);
|
||||||
|
|
||||||
|
videoTitle = new StringFilterGroup(
|
||||||
|
Settings.HIDE_SHORTS_VIDEO_TITLE,
|
||||||
|
"shorts_video_title_item"
|
||||||
|
);
|
||||||
|
|
||||||
soundButton = new StringFilterGroup(
|
soundButton = new StringFilterGroup(
|
||||||
Settings.HIDE_SHORTS_SOUND_BUTTON,
|
Settings.HIDE_SHORTS_SOUND_BUTTON,
|
||||||
"reel_pivot_button"
|
"reel_pivot_button"
|
||||||
@ -102,7 +114,8 @@ public final class ShortsFilter extends Filter {
|
|||||||
addPathCallbacks(
|
addPathCallbacks(
|
||||||
shortsCompactFeedVideoPath,
|
shortsCompactFeedVideoPath,
|
||||||
joinButton, subscribeButton, subscribeButtonPaused,
|
joinButton, subscribeButton, subscribeButtonPaused,
|
||||||
channelBar, soundButton, infoPanel, actionBar
|
channelBar, fullVideoLinkLabel, videoTitle, soundButton,
|
||||||
|
infoPanel, actionBar
|
||||||
);
|
);
|
||||||
|
|
||||||
var shortsLikeButton = new ByteArrayFilterGroup(
|
var shortsLikeButton = new ByteArrayFilterGroup(
|
||||||
@ -147,6 +160,8 @@ public final class ShortsFilter extends Filter {
|
|||||||
if (matchedGroup == soundButton ||
|
if (matchedGroup == soundButton ||
|
||||||
matchedGroup == infoPanel ||
|
matchedGroup == infoPanel ||
|
||||||
matchedGroup == channelBar ||
|
matchedGroup == channelBar ||
|
||||||
|
matchedGroup == fullVideoLinkLabel ||
|
||||||
|
matchedGroup == videoTitle ||
|
||||||
matchedGroup == subscribeButtonPaused
|
matchedGroup == subscribeButtonPaused
|
||||||
) return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
) return super.isFiltered(identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||||
|
|
||||||
|
@ -149,6 +149,8 @@ public class Settings extends BaseSettings {
|
|||||||
public static final BooleanSetting HIDE_SHORTS_INFO_PANEL = new BooleanSetting("revanced_hide_shorts_info_panel", TRUE);
|
public static final BooleanSetting HIDE_SHORTS_INFO_PANEL = new BooleanSetting("revanced_hide_shorts_info_panel", TRUE);
|
||||||
public static final BooleanSetting HIDE_SHORTS_SOUND_BUTTON = new BooleanSetting("revanced_hide_shorts_sound_button", FALSE);
|
public static final BooleanSetting HIDE_SHORTS_SOUND_BUTTON = new BooleanSetting("revanced_hide_shorts_sound_button", FALSE);
|
||||||
public static final BooleanSetting HIDE_SHORTS_CHANNEL_BAR = new BooleanSetting("revanced_hide_shorts_channel_bar", FALSE);
|
public static final BooleanSetting HIDE_SHORTS_CHANNEL_BAR = new BooleanSetting("revanced_hide_shorts_channel_bar", FALSE);
|
||||||
|
public static final BooleanSetting HIDE_SHORTS_VIDEO_TITLE = new BooleanSetting("revanced_hide_shorts_video_title", FALSE);
|
||||||
|
public static final BooleanSetting HIDE_SHORTS_FULL_VIDEO_LINK_LABEL = new BooleanSetting("revanced_hide_shorts_full_video_link_label", FALSE);
|
||||||
public static final BooleanSetting HIDE_SHORTS_NAVIGATION_BAR = new BooleanSetting("revanced_hide_shorts_navigation_bar", TRUE, true);
|
public static final BooleanSetting HIDE_SHORTS_NAVIGATION_BAR = new BooleanSetting("revanced_hide_shorts_navigation_bar", TRUE, true);
|
||||||
|
|
||||||
// Seekbar
|
// Seekbar
|
||||||
|
Loading…
Reference in New Issue
Block a user