mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
parent
90eff9f385
commit
948f478229
1 changed files with 15 additions and 2 deletions
17
uYouPlus.xm
17
uYouPlus.xm
|
|
@ -1028,17 +1028,30 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
%end
|
||||
%end
|
||||
|
||||
/*
|
||||
// Hide Suggested Videos in Video Player - @arichorn
|
||||
%hook YTAutonavEndscreenView
|
||||
- (void)didMoveToWindow {
|
||||
%orig;
|
||||
self.hidden = YES;
|
||||
self.userInteractionEnabled = NO;
|
||||
[self sizeToFit];
|
||||
[self setNeedsLayout];
|
||||
[self layoutIfNeeded];
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
%end
|
||||
|
||||
// Hide Preview Videos whenever video ends in Video Player - @arichorn
|
||||
%hook YTAutonavPreviewView
|
||||
- (void)didMoveToWindow {
|
||||
%orig;
|
||||
self.hidden = YES;
|
||||
[self sizeToFit];
|
||||
[self setNeedsLayout];
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
%end
|
||||
*/
|
||||
|
||||
# pragma mark - ctor
|
||||
%ctor {
|
||||
// Load uYou first so its functions are available for hooks.
|
||||
|
|
|
|||
Loading…
Reference in a new issue