Add YTNoSuggestedVideo

This commit is contained in:
Bryce Hackel
2024-01-09 13:19:44 -08:00
parent 3b9d979cfd
commit 6f904959d7
13 changed files with 53 additions and 0 deletions

View File

@@ -351,6 +351,16 @@ static BOOL IsEnabled(NSString *key) {
}
%end
// YTNoSuggestedVideo - https://github.com/bhackel/YTNoSuggestedVideo
%hook YTMainAppVideoPlayerOverlayViewController
- (bool)shouldShowAutonavEndscreen {
if (IsEnabled(@"noSuggestedVideo_enabled")) {
return false;
}
return %orig;
}
%end
// BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer
%group Main
%hook YTWatchMiniBarView