mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 20:34:04 -04:00 
			
		
		
		
	Updated YTNoModernUI Option
This commit is contained in:
		| @@ -161,7 +161,7 @@ static BOOL IsEnabled(NSString *key) { | |||||||
| - (BOOL)commercePlatformClientEnablePopupWebviewInWebviewDialogController { return NO;} | - (BOOL)commercePlatformClientEnablePopupWebviewInWebviewDialogController { return NO;} | ||||||
| %end | %end | ||||||
|  |  | ||||||
| // Hide Upgrade Dialog - @arichorn | // Hide Upgrade Dialog - @arichornlover | ||||||
| %hook YTGlobalConfig | %hook YTGlobalConfig | ||||||
| - (BOOL)shouldBlockUpgradeDialog { return YES;} | - (BOOL)shouldBlockUpgradeDialog { return YES;} | ||||||
| - (BOOL)shouldForceUpgrade { return NO;} | - (BOOL)shouldForceUpgrade { return NO;} | ||||||
| @@ -169,17 +169,6 @@ static BOOL IsEnabled(NSString *key) { | |||||||
| - (BOOL)shouldShowUpgradeDialog { return NO;} | - (BOOL)shouldShowUpgradeDialog { return NO;} | ||||||
| %end | %end | ||||||
|  |  | ||||||
| // YTNoTracking - @arichorn - https://github.com/arichorn/YTNoTracking/ |  | ||||||
| %hook UIApplication |  | ||||||
| - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options { |  | ||||||
|     NSString *originalURLString = [url absoluteString]; |  | ||||||
|     NSString *modifiedURLString = [originalURLString stringByReplacingOccurrencesOfString:@"&si=[a-zA-Z0-9_-]+" withString:@"" options:NSRegularExpressionSearch range:NSMakeRange(0, originalURLString.length)]; |  | ||||||
|     NSURL *modifiedURL = [NSURL URLWithString:modifiedURLString]; |  | ||||||
|     BOOL result = %orig(application, modifiedURL, options); |  | ||||||
|     return result; |  | ||||||
| } |  | ||||||
| %end |  | ||||||
|  |  | ||||||
| // Hide Home Tab - @bhackel | // Hide Home Tab - @bhackel | ||||||
| %group gHideHomeTab | %group gHideHomeTab | ||||||
| %hook YTPivotBarViewController | %hook YTPivotBarViewController | ||||||
| @@ -206,7 +195,7 @@ static BOOL IsEnabled(NSString *key) { | |||||||
| %end | %end | ||||||
| %end | %end | ||||||
|  |  | ||||||
| // YTNoModernUI - @arichorn | // YTNoModernUI - @arichornlover | ||||||
| %group gYTNoModernUI | %group gYTNoModernUI | ||||||
| %hook YTVersionUtils // YTNoModernUI Original Version | %hook YTVersionUtils // YTNoModernUI Original Version | ||||||
| + (NSString *)appVersion { return @"17.38.10"; } | + (NSString *)appVersion { return @"17.38.10"; } | ||||||
| @@ -249,14 +238,27 @@ static BOOL IsEnabled(NSString *key) { | |||||||
| - (BOOL)cxClientEnableModernizedActionSheet { return NO; } | - (BOOL)cxClientEnableModernizedActionSheet { return NO; } | ||||||
| - (BOOL)enableClientShortsSheetsModernization { return NO; } | - (BOOL)enableClientShortsSheetsModernization { return NO; } | ||||||
| - (BOOL)enableTimestampModernizationForNative { return NO; } | - (BOOL)enableTimestampModernizationForNative { return NO; } | ||||||
| - (BOOL)modernizeElementsTextColor { return NO; } | - (BOOL)mainAppCoreClientEnableModernIaFeedStretchBottom { return NO; } | ||||||
| - (BOOL)modernizeElementsBgColor { return NO; } | - (BOOL)mainAppCoreClientEnableModernIaFrostedBottomBar { return NO; } | ||||||
|  | - (BOOL)mainAppCoreClientEnableModernIaFrostedPivotBar { return NO; } | ||||||
|  | - (BOOL)mainAppCoreClientEnableModernIaFrostedPivotBarUpdatedBackdrop { return NO; } | ||||||
|  | - (BOOL)mainAppCoreClientEnableModernIaFrostedTopBar { return NO; } | ||||||
|  | - (BOOL)mainAppCoreClientEnableModernIaOpacityPivotBar { return NO; } | ||||||
|  | - (BOOL)mainAppCoreClientEnableModernIaTopAndBottomBarIconRefresh { return NO; } | ||||||
|  | - (BOOL)mainAppCoreClientEnableModernizedBedtimeReminderU18DefaultSettings { return NO; } | ||||||
|  | - (BOOL)modernizeCameoNavbar { return NO; } | ||||||
| - (BOOL)modernizeCollectionLockups { return NO; } | - (BOOL)modernizeCollectionLockups { return NO; } | ||||||
|  | - (BOOL)modernizeCollectionLockupsShowVideoCount { return NO; } | ||||||
|  | - (BOOL)modernizeElementsBgColor { return NO; } | ||||||
|  | - (BOOL)modernizeElementsTextColor { return NO; } | ||||||
|  | - (BOOL)postsCreatorClientEnableModernButtonsUi { return NO; } | ||||||
|  | - (BOOL)pullToFullModernEdu { return NO; } | ||||||
|  | - (BOOL)showModernMiniplayerRedesign { return NO; } | ||||||
| - (BOOL)uiSystemsClientGlobalConfigEnableModernButtonsForNative { return NO; } | - (BOOL)uiSystemsClientGlobalConfigEnableModernButtonsForNative { return NO; } | ||||||
| - (BOOL)uiSystemsClientGlobalConfigIosEnableModernTabsForNative { return NO; } | - (BOOL)uiSystemsClientGlobalConfigIosEnableModernTabsForNative { return NO; } | ||||||
| - (BOOL)uiSystemsClientGlobalConfigIosEnableEpUxUpdates { return NO; } |  | ||||||
| - (BOOL)uiSystemsClientGlobalConfigIosEnableSheetsUxUpdates { return NO; } |  | ||||||
| - (BOOL)uiSystemsClientGlobalConfigIosEnableSnackbarModernization { return NO; } | - (BOOL)uiSystemsClientGlobalConfigIosEnableSnackbarModernization { return NO; } | ||||||
|  | - (BOOL)uiSystemsClientGlobalConfigModernizeNativeBgColor { return NO; } | ||||||
|  | - (BOOL)uiSystemsClientGlobalConfigModernizeNativeTextColor { return NO; } | ||||||
| // Disable Rounded Content - YTNoModernUI | // Disable Rounded Content - YTNoModernUI | ||||||
| - (BOOL)iosDownloadsPageRoundedThumbs { return NO; } | - (BOOL)iosDownloadsPageRoundedThumbs { return NO; } | ||||||
| - (BOOL)iosRoundedSearchBarSuggestZeroPadding { return NO; } | - (BOOL)iosRoundedSearchBarSuggestZeroPadding { return NO; } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 arichornlover
					arichornlover