Remove Suggested Videos from Video Player #126

This commit is contained in:
arichorn 2023-09-25 18:04:13 -05:00 committed by GitHub
parent c0cf0237fc
commit 10008aa9af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1024,6 +1024,17 @@ 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 setNeedsLayout];
[self layoutIfNeeded];
}
%end
# pragma mark - ctor
%ctor {
// Load uYou first so its functions are available for hooks.