Update YTLitePlus.xm

This commit is contained in:
arichornlover
2024-04-14 01:00:52 -05:00
committed by GitHub
parent b949b1c17b
commit 90169017cd

View File

@@ -38,6 +38,9 @@ static BOOL IsEnabled(NSString *key) {
return [[NSUserDefaults standardUserDefaults] boolForKey:key];
}
# pragma mark - Tweaks
// Activate FLEX
%hook YTAppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
@@ -57,7 +60,13 @@ static BOOL IsEnabled(NSString *key) {
}
%end
# pragma mark - Tweaks
// Enable Alternate Icons
%hook UIApplication
- (BOOL)supportsAlternateIcons {
return YES;
}
%end
// Skips content warning before playing *some videos - @PoomSmart
%hook YTPlayabilityResolutionUserActionUIController
- (void)showConfirmAlert { [self confirmAlertDidPressConfirm]; }