mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Restore Settings Button #178
This commit is contained in:
parent
500f9b4e85
commit
a783f94933
1 changed files with 15 additions and 1 deletions
|
|
@ -231,7 +231,6 @@ NSData *cellDividerData;
|
|||
%end
|
||||
%end
|
||||
|
||||
|
||||
// Fix App Group Directory by move it to document directory
|
||||
%hook NSFileManager
|
||||
- (NSURL *)containerURLForSecurityApplicationGroupIdentifier:(NSString *)groupIdentifier {
|
||||
|
|
@ -334,6 +333,21 @@ NSData *cellDividerData;
|
|||
- (BOOL)savedSettingShouldExpire { return NO; }
|
||||
%end
|
||||
|
||||
// Restore Settings Button in Navigaton Bar - @arichornlover & @bhackel - https://github.com/arichornlover/uYouEnhanced/issues/178
|
||||
/* UNTESTED
|
||||
%hook YTRightNavigationButtons
|
||||
- (id)visibleButtons {
|
||||
Class YTVersionUtilsClass = %c(YTVersionUtils);
|
||||
NSString *appVersion = [YTVersionUtilsClass performSelector:@selector(appVersion)];
|
||||
NSComparisonResult result = [appVersion compare:@"18.35.4" options:NSNumericSearch];
|
||||
if (result == NSOrderedAscending) {
|
||||
return %orig;
|
||||
}
|
||||
return [self dynamicButtons];
|
||||
}
|
||||
%end
|
||||
*/
|
||||
|
||||
// Hide "Get Youtube Premium" in "You" tab - @bhackel
|
||||
%group gHidePremiumPromos
|
||||
%hook YTAppCollectionViewController
|
||||
|
|
|
|||
Loading…
Reference in a new issue