New Option “Hide Videos in Fullscreen”

Technically not a new option. This change was made to move half of the functionality from the option “ Hide all videos under player”.
This commit is contained in:
arichornlover 2023-10-22 02:59:57 -05:00 committed by GitHub
parent 05e24f733f
commit a8440ab26e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1004,7 +1004,10 @@ static void replaceTab(YTIGuideResponse *response) {
%orig(arg1);
}
%end
%end
// Hide Videos in Fullscreen - @arichorn
%group gNoVideosInFullscreen
%hook YTFullScreenEngagementOverlayView
- (void)setRelatedVideosView:(id)view {
}
@ -1167,6 +1170,9 @@ static void replaceTab(YTIGuideResponse *response) {
if (IsEnabled(@"noRelatedWatchNexts_enabled")) {
%init(gNoRelatedWatchNexts);
}
if (IsEnabled(@"noVideosInFullscreen_enabled")) {
%init(gNoVideosInFullscreen);
}
if (IsEnabled(@"ytNoModernUI_enabled")) {
%init(gYTNoModernUI);
}