Skip to content

Commit 240897a

Browse files
feat(YouTube - Hide Shorts components): Add Hide Effects button (#5255)
1 parent 796d229 commit 240897a

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ public ShortsFilter() {
274274
Settings.HIDE_SHORTS_UPCOMING_BUTTON,
275275
"yt_outline_bell_"
276276
),
277+
new ByteArrayFilterGroup(
278+
Settings.HIDE_SHORTS_EFFECTS_BUTTON,
279+
// https://www.gstatic.com/youtube/effects/xeno/arcade/effects/icons/
280+
"/arcade/effects/icons/"
281+
),
277282
new ByteArrayFilterGroup(
278283
Settings.HIDE_SHORTS_GREEN_SCREEN_BUTTON,
279284
"greenscreen_temp"

extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/Settings.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ public class Settings extends BaseSettings {
267267
public static final BooleanSetting HIDE_SHORTS_COMMENTS_BUTTON = new BooleanSetting("revanced_hide_shorts_comments_button", FALSE);
268268
public static final BooleanSetting HIDE_SHORTS_DISLIKE_BUTTON = new BooleanSetting("revanced_hide_shorts_dislike_button", FALSE);
269269
public static final BooleanSetting HIDE_SHORTS_FULL_VIDEO_LINK_LABEL = new BooleanSetting("revanced_hide_shorts_full_video_link_label", FALSE);
270+
public static final BooleanSetting HIDE_SHORTS_EFFECTS_BUTTON = new BooleanSetting("revanced_hide_shorts_effects_button", TRUE);
270271
public static final BooleanSetting HIDE_SHORTS_GREEN_SCREEN_BUTTON = new BooleanSetting("revanced_hide_shorts_green_screen_button", TRUE);
271272
public static final BooleanSetting HIDE_SHORTS_NEW_POSTS_BUTTON = new BooleanSetting("revanced_hide_shorts_new_posts_button", TRUE);
272273
public static final BooleanSetting HIDE_SHORTS_HASHTAG_BUTTON = new BooleanSetting("revanced_hide_shorts_hashtag_button", TRUE);

patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ private val hideShortsComponentsResourcePatch = resourcePatch {
9797
SwitchPreference("revanced_hide_shorts_use_sound_button"),
9898
SwitchPreference("revanced_hide_shorts_use_template_button"),
9999
SwitchPreference("revanced_hide_shorts_upcoming_button"),
100+
SwitchPreference("revanced_hide_shorts_effects_button"),
100101
SwitchPreference("revanced_hide_shorts_green_screen_button"),
101102
SwitchPreference("revanced_hide_shorts_hashtag_button"),
102103
SwitchPreference("revanced_hide_shorts_new_posts_button"),

patches/src/main/resources/addresources/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ To show the Audio track menu, change \'Spoof video streams\' to iOS TV"</string>
835835
<string name="revanced_hide_shorts_upcoming_button_title">Hide Upcoming button</string>
836836
<string name="revanced_hide_shorts_upcoming_button_summary_on">Upcoming button is hidden</string>
837837
<string name="revanced_hide_shorts_upcoming_button_summary_off">Upcoming button is shown</string>
838+
<string name="revanced_hide_shorts_effects_button_title">Hide Effects button</string>
839+
<string name="revanced_hide_shorts_effects_button_summary_on">Effects button is hidden</string>
840+
<string name="revanced_hide_shorts_effects_button_summary_off">Effects button is shown</string>
838841
<string name="revanced_hide_shorts_green_screen_button_title">Hide Green screen button</string>
839842
<string name="revanced_hide_shorts_green_screen_button_summary_on">Green screen button is hidden</string>
840843
<string name="revanced_hide_shorts_green_screen_button_summary_off">Green screen button is shown</string>

0 commit comments

Comments
 (0)