New Option Hide Button Containers

you can now hide the containers in the buttons 😎
Some of y’all requested this and it’s now implemented to uYouPlusExtra!
This commit is contained in:
arichornlover 2023-11-28 20:05:50 -06:00 committed by GitHub
parent 8d03828478
commit 1dca562a22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}