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

Commit faad754

Browse files
authored
feat(YouTube - Hide Shorts components): Add options to hide Use template, Upcoming, Green screen buttons (#714)
1 parent af45ab5 commit faad754

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,18 @@ public ShortsFilter() {
218218
new ByteArrayFilterGroup(
219219
Settings.HIDE_SHORTS_SUPER_THANKS_BUTTON,
220220
"yt_outline_dollar_sign_heart_"
221+
),
222+
new ByteArrayFilterGroup(
223+
Settings.HIDE_SHORTS_USE_TEMPLATE_BUTTON,
224+
"yt_outline_template_add_"
225+
),
226+
new ByteArrayFilterGroup(
227+
Settings.HIDE_SHORTS_UPCOMING_BUTTON,
228+
"yt_outline_bell_"
229+
),
230+
new ByteArrayFilterGroup(
231+
Settings.HIDE_SHORTS_GREEN_SCREEN_BUTTON,
232+
"greenscreen_temp"
221233
)
222234
);
223235
}

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

+3
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ public class Settings extends BaseSettings {
221221
public static final BooleanSetting HIDE_SHORTS_TAGGED_PRODUCTS = new BooleanSetting("revanced_hide_shorts_tagged_products", TRUE);
222222
public static final BooleanSetting HIDE_SHORTS_LOCATION_LABEL = new BooleanSetting("revanced_hide_shorts_location_label", FALSE);
223223
public static final BooleanSetting HIDE_SHORTS_SAVE_SOUND_BUTTON = new BooleanSetting("revanced_hide_shorts_save_sound_button", TRUE);
224+
public static final BooleanSetting HIDE_SHORTS_USE_TEMPLATE_BUTTON = new BooleanSetting("revanced_hide_shorts_use_template_button", TRUE);
225+
public static final BooleanSetting HIDE_SHORTS_UPCOMING_BUTTON = new BooleanSetting("revanced_hide_shorts_upcoming_button", TRUE);
226+
public static final BooleanSetting HIDE_SHORTS_GREEN_SCREEN_BUTTON = new BooleanSetting("revanced_hide_shorts_green_screen_button", TRUE);
224227
public static final BooleanSetting HIDE_SHORTS_SEARCH_SUGGESTIONS = new BooleanSetting("revanced_hide_shorts_search_suggestions", FALSE);
225228
public static final BooleanSetting HIDE_SHORTS_STICKERS = new BooleanSetting("revanced_hide_shorts_stickers", TRUE);
226229
public static final BooleanSetting HIDE_SHORTS_SUPER_THANKS_BUTTON = new BooleanSetting("revanced_hide_shorts_super_thanks_button", TRUE);

0 commit comments

Comments
 (0)