From 802b1382b1a3151c0fe5a381dc3e8b512fce4af2 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Thu, 16 May 2024 21:24:53 -0500 Subject: [PATCH] Added New Option `Shorts Quality Picker` - #631 --- Sources/uYouPlus.xm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 9dd404b..65ee70a 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -471,6 +471,17 @@ BOOL isAdString(NSString *description) { %end %end +// Shorts Quality Picker - @arichornlover +%group gShortsQualityPicker +%hook YTHotConfig +- (BOOL)enableOmitAdvancedMenuInShortsVideoQualityPicker { return YES; } +- (BOOL)enableShortsVideoQualityPicker { return YES; } +- (BOOL)iosEnableImmersiveLivePlayerVideoQuality { return YES; } +- (BOOL)iosEnableShortsPlayerVideoQuality { return YES; } +- (BOOL)iosEnableShortsPlayerVideoQualityRestartVideo { return YES; } +- (BOOL)iosEnableSimplerTitleInShortsVideoQualityPicker { return YES; } +%end +%end // YTShortsProgress - https://github.com/PoomSmart/YTShortsProgress/ %hook YTShortsPlayerViewController @@ -1672,6 +1683,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray *ide if (IS_ENABLED(@"hideDoubleTapToSeekOverlay_enabled")) { %init(gHideDoubleTapToSeekOverlay); } + if (IS_ENABLED(@"shortsQualityPicker_enabled")) { + %init(gShortsQualityPicker); + } if (IS_ENABLED(@"fixCasting_enabled")) { %init(gFixCasting); }