Fixed a problem that was caused by me
This commit is contained in:
arichorn 2023-10-01 00:28:35 -05:00 committed by GitHub
parent 90eff9f385
commit 948f478229
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.