From 1dca562a2253d13e39497ae96a054f6dc81f4c84 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Tue, 28 Nov 2023 20:05:50 -0600 Subject: [PATCH] New Option `Hide Button Containers` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit you can now hide the containers in the buttons 😎 Some of y’all requested this and it’s now implemented to uYouPlusExtra! --- uYouPlus.xm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/uYouPlus.xm b/uYouPlus.xm index f868f18..3bb1937 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -1078,6 +1078,16 @@ static void replaceTab(YTIGuideResponse *response) { } %end +// Hide the Button Containers under the Video Player - 17.x.x and up - @arichorn +%group gHideButtonContainers +%hook ELMContainerNode +- (void)setBackgroundColor:(id)color { + color = [UIColor clearColor]; + %orig(color); +} +%end +%end + // Hide the (Remix / Thanks / Download / Clip / Save) Buttons under the Video Player - 17.x.x and up - @arichorn %hook _ASDisplayView - (void)layoutSubviews { @@ -1459,6 +1469,9 @@ static void replaceTab(YTIGuideResponse *response) { if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) { %init(gHideVideoPlayerShadowOverlayButtons); } + if (IsEnabled(@"hideButtonContainers_enabled")) { + %init(gHideButtonContainers); + } if (IsEnabled(@"disableHints_enabled")) { %init(gDisableHints); }