mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Fixed YTNoModernUI Option
Fixed Option not working on the latest version of YouTube.
This commit is contained in:
parent
2ec211d969
commit
a204bb1344
1 changed files with 13 additions and 5 deletions
18
uYouPlus.xm
18
uYouPlus.xm
|
|
@ -326,8 +326,19 @@ static void repositionCreateTab(YTIGuideResponse *response) {
|
|||
|
||||
// YTNoModernUI - @arichorn
|
||||
%group gYTNoModernUI
|
||||
%hook YTVersionUtils // YTNoModernUI Version
|
||||
+ (NSString *)appVersion { return @"17.11.2"; }
|
||||
%hook YTVersionUtils // YTNoModernUI Original Version
|
||||
+ (NSString *)appVersion { return @"17.38.10"; }
|
||||
%end
|
||||
|
||||
%hook YTSettingsCell // made by Dayanch96
|
||||
- (void)setDetailText:(id)arg1 {
|
||||
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
||||
NSString *appVersion = infoDictionary[@"CFBundleShortVersionString"];
|
||||
|
||||
if ([arg1 isEqualToString:@"17.38.10"]) {
|
||||
arg1 = appVersion;
|
||||
} %orig(arg1);
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTInlinePlayerBarContainerView // Red Progress Bar - YTNoModernUI
|
||||
|
|
@ -366,9 +377,6 @@ static void repositionCreateTab(YTIGuideResponse *response) {
|
|||
- (BOOL)uiSystemsClientGlobalConfigEnableModernTabsForNative { return NO; }
|
||||
- (BOOL)uiSystemsClientGlobalConfigIosEnableSnackbarModernization { return NO; }
|
||||
// Disable Rounded Content - YTNoModernUI
|
||||
- (BOOL)iosEnableRoundedSearchBar { return NO; }
|
||||
- (BOOL)enableIosRoundedSearchBar { return NO; }
|
||||
- (BOOL)enableIosSearchBar { return NO; }
|
||||
- (BOOL)iosDownloadsPageRoundedThumbs { return NO; }
|
||||
- (BOOL)iosRoundedSearchBarSuggestZeroPadding { return NO; }
|
||||
- (BOOL)uiSystemsClientGlobalConfigEnableRoundedThumbnailsForNative { return NO; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue