This commit is contained in:
qnblackcat 2021-10-01 10:27:51 +07:00
parent e64c55f777
commit 302b50aabb
2 changed files with 30 additions and 36 deletions

View file

@ -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

View file

@ -1,16 +1,23 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
//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