diff --git a/Makefile b/Makefile index bc58857..750de2e 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,21 @@ -TARGET = iphone:clang:latest:13.0 - uYouPlus_INJECT_DYLIBS = uYou.dylib iSponsorBlock.dylib libcolorpicker.dylib YTUHD.dylib YouPiP.dylib + ARCHS = arm64 MODULES = jailed FINALPACKAGE = 1 CODESIGN_IPA = 0 -PACKAGE_VERSION = 16.38.2 + TWEAK_NAME = uYouPlus DISPLAY_NAME = YouTube BUNDLE_ID = com.google.ios.youtube -uYouPlus_FILES = Tweak.x -uYouPlus_IPA = /Volumes/Data_Macintosh/Sideloads/IPAs/YouTube_16.38.2.ipa + +uYouPlus_FILES = uYouPlus.x uYouPlus_FRAMEWORKS = Alderis +uYouPlus_IPA = /.../path/to/the/decrypted/YouTube/IPA +### Important: edit the path to the decrypted YouTube IPA include $(THEOS)/makefiles/common.mk diff --git a/Tweak.x b/uYouPlus.x similarity index 94% rename from Tweak.x rename to uYouPlus.x index 05ffafe..b2a3ac4 100644 --- a/Tweak.x +++ b/uYouPlus.x @@ -1,16 +1,23 @@ #import #import -//Mni -%hook YTIMiniplayerRenderer -- (BOOL)hasMinimizedEndpoint { -return NO; -} -- (int)playbackMode { -return 2; + +//YTClassicVideoQuality + +@interface YTVideoQualitySwitchOriginalController : NSObject +- (instancetype)initWithParentResponder:(id)responder; +@end + +%hook YTVideoQualitySwitchControllerFactory + +- (id)videoQualitySwitchControllerWithParentResponder:(id)responder { + Class originalClass = %c(YTVideoQualitySwitchOriginalController); + return originalClass ? [[originalClass alloc] initWithParentResponder:responder] : %orig; } + %end + //NoLocalCheck %hook YTHotConfig @@ -27,12 +34,20 @@ return 2; } %end -// Alert + +//YTSystemTheme +%hook YTColdConfig +- (BOOL)shouldUseAppThemeSetting { + return YES; +} +%end + + +//NOYTPremium %hook YTCommerceEventGroupHandler - (void)addEventHandlers {} %end -// Full-screen %hook YTInterstitialPromoEventGroupHandler - (void)addEventHandlers {} %end @@ -41,7 +56,6 @@ return 2; - (BOOL)shouldThrottleInterstitial { return YES; } %end -// YT-PRE--Whatever these are for %hook YTPromoThrottleController - (BOOL)canShowThrottledPromo { return NO; } - (BOOL)canShowThrottledPromoWithFrequencyCap:(id)frequencyCap { return NO; } @@ -51,20 +65,6 @@ return 2; - (void)showSurveyWithRenderer:(id)arg1 surveyParentResponder:(id)arg2 {} %end -//YTClassicVideoQuality - -@interface YTVideoQualitySwitchOriginalController : NSObject -- (instancetype)initWithParentResponder:(id)responder; -@end - -%hook YTVideoQualitySwitchControllerFactory - -- (id)videoQualitySwitchControllerWithParentResponder:(id)responder { - Class originalClass = %c(YTVideoQualitySwitchOriginalController); - return originalClass ? [[originalClass alloc] initWithParentResponder:responder] : %orig; -} - -%end //YTNoHoverCards 0.0.3 @interface YTCollectionViewCell : UICollectionViewCell @@ -110,11 +110,4 @@ return 2; hidden = YES; %orig; } -%end - -//YTSystemTheme -%hook YTColdConfig -- (BOOL)shouldUseAppThemeSetting { - return YES; -} %end \ No newline at end of file