mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
parent
f61e4287b3
commit
badff8b1b9
1 changed files with 21 additions and 6 deletions
|
|
@ -571,7 +571,7 @@ static NSString *accessGroupID() {
|
|||
%end
|
||||
|
||||
// Video Controls Overlay Options
|
||||
// Hide CC / Autoplay switch / Enable Share Button / Enable Save to Playlist Button / Hide YTMusic Button
|
||||
// Hide CC / Hide Autoplay switch / Hide YTMusic Button / Enable Share Button / Enable Save to Playlist Button
|
||||
%hook YTMainAppControlsOverlayView
|
||||
- (void)setClosedCaptionsOrSubtitlesButtonAvailable:(BOOL)arg1 { // hide CC button
|
||||
return IS_ENABLED(@"hideCC_enabled") ? %orig(NO) : %orig;
|
||||
|
|
@ -580,6 +580,12 @@ static NSString *accessGroupID() {
|
|||
if (IS_ENABLED(@"hideAutoplaySwitch_enabled")) {}
|
||||
else { return %orig; }
|
||||
}
|
||||
- (void)setYoutubeMusicButton:(id)arg1 {
|
||||
if (IS_ENABLED(@"hideYTMusicButton_enabled")) {
|
||||
} else {
|
||||
%orig(arg1);
|
||||
}
|
||||
}
|
||||
- (void)setShareButtonAvailable:(BOOL)arg1 {
|
||||
if (IS_ENABLED(@"enableShareButton_enabled")) {
|
||||
%orig(YES);
|
||||
|
|
@ -594,11 +600,20 @@ static NSString *accessGroupID() {
|
|||
%orig(NO);
|
||||
}
|
||||
}
|
||||
- (void)setYoutubeMusicButton:(id)arg1 {
|
||||
if (IS_ENABLED(@"hideYTMusicButton_enabled")) {
|
||||
// Do not set
|
||||
} else {
|
||||
%orig(arg1);
|
||||
%end
|
||||
|
||||
// Hide Fullscreen Button
|
||||
%hook YTInlinePlayerBarContainerView
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
if (IS_ENABLED(@"disableFullscreenButton_enabled")) {
|
||||
if (self.exitFullscreenButton) {
|
||||
[self.exitFullscreenButton removeFromSuperview];
|
||||
}
|
||||
if (self.enterFullscreenButton) {
|
||||
[self.enterFullscreenButton removeFromSuperview];
|
||||
}
|
||||
self.fullscreenButtonDisabled = YES;
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
|
|
|||
Loading…
Reference in a new issue