From fbc515f0195d5ec4d1dc65d8a8d440556f770891 Mon Sep 17 00:00:00 2001 From: Aaron Veil <70171475+anddea@users.noreply.github.com> Date: Mon, 30 Sep 2024 13:31:02 +0300 Subject: [PATCH] feat(YouTube - Shorts Component): Add `Disable Like button animation` setting --- .../youtube/patches/components/ShortsButtonFilter.java | 4 ++++ .../app/revanced/integrations/youtube/settings/Settings.java | 1 + 2 files changed, 5 insertions(+) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsButtonFilter.java b/app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsButtonFilter.java index 9b02648999..23c525495c 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsButtonFilter.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsButtonFilter.java @@ -158,6 +158,10 @@ public ShortsButtonFilter() { new ByteArrayFilterGroup( Settings.HIDE_SHORTS_REMIX_BUTTON, "reel_remix_button" + ), + new ByteArrayFilterGroup( + Settings.DISABLE_SHORTS_LIKE_BUTTON_FOUNTAIN_ANIMATION, + "shorts_like_fountain" ) ); diff --git a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java index 951569512d..d8b78cce0f 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java +++ b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java @@ -421,6 +421,7 @@ public class Settings extends BaseSettings { public static final BooleanSetting HIDE_SHORTS_SHARE_BUTTON = new BooleanSetting("revanced_hide_shorts_share_button", FALSE); public static final BooleanSetting HIDE_SHORTS_SOUND_BUTTON = new BooleanSetting("revanced_hide_shorts_sound_button", TRUE); + public static final BooleanSetting DISABLE_SHORTS_LIKE_BUTTON_FOUNTAIN_ANIMATION = new BooleanSetting("revanced_disable_shorts_like_button_fountain_animation", FALSE); public static final BooleanSetting HIDE_SHORTS_PLAY_PAUSE_BUTTON_BACKGROUND = new BooleanSetting("revanced_hide_shorts_play_pause_button_background", FALSE, true); public static final EnumSetting ANIMATION_TYPE = new EnumSetting<>("revanced_shorts_double_tap_to_like_animation", AnimationType.ORIGINAL, true);