From 55139dc0a9e230c3dec830b30ffbc7558692bf33 Mon Sep 17 00:00:00 2001 From: qnblackcat Date: Fri, 1 Oct 2021 18:19:48 +0700 Subject: [PATCH] update code --- uYouPlus.x | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/uYouPlus.x b/uYouPlus.x index c9d3f8b..fdc92a1 100644 --- a/uYouPlus.x +++ b/uYouPlus.x @@ -2,7 +2,17 @@ #import -//YTClassicVideoQuality +// YouRememberCaption +//Source code: https://www.ios-repo-updates.com/repository/poomsmart/package/com.ps.youremembercaption/ +%hook YTColdConfig +- (BOOL)respectDeviceCaptionSetting { + return NO; +} +%end + + +// YTClassicVideoQuality +// Source code: https://github.com/PoomSmart/YTClassicVideoQuality @interface YTVideoQualitySwitchOriginalController : NSObject - (instancetype)initWithParentResponder:(id)responder; @@ -17,7 +27,9 @@ %end -//YTNoCheckLocalNetwork +// YTNoCheckLocalNetwork +// Source code: https://poomsmart.github.io/repo/depictions/ytnochecklocalnetwork.html + %hook YTHotConfig - (BOOL)isPromptForLocalNetworkPermissionsEnabled { @@ -25,23 +37,9 @@ } %end -//YouRememberCaption -%hook YTColdConfig -- (BOOL)respectDeviceCaptionSetting { - return NO; -} -%end +// YTNoHoverCards +// Source code: https://github.com/level3tjg/YTNoHoverCards - -//YTSystemAppearance -%hook YTColdConfig -- (BOOL)shouldUseAppThemeSetting { - return YES; -} -%end - - -//YTNoHoverCards @interface YTCollectionViewCell : UICollectionViewCell @end @@ -85,4 +83,14 @@ hidden = YES; %orig; } -%end \ No newline at end of file +%end + + +// YTSystemAppearance +// Source code: https://poomsmart.github.io/repo/depictions/ytsystemappearance.html + +%hook YTColdConfig +- (BOOL)shouldUseAppThemeSetting { + return YES; +} +%end