From ed76eef80150de8b056cbcc89d378c8f37fed0fc Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Sun, 26 May 2024 17:28:05 -0500 Subject: [PATCH] Disable `Hide Shorts Cells` Workaround It breaks uYouEnhanced even if disabled. This is important for next release. --- Sources/uYouPlus.xm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 47f0f04..d38673a 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -1219,11 +1219,11 @@ NSData *cellDividerData; } %end +/* // Hide Shorts Cells - @PoomSmart, @iCrazeiOS & @Dayanch96 %hook YTIElementRenderer - (NSData *)elementData { NSString *description = [self description]; -/* if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeShortsCell"]) { // uYou (Hide Shorts Cells) if ([description containsString:@"shorts_shelf.eml"] || [description containsString:@"#shorts"] || [description containsString:@"shorts_video_cell.eml"] || [description containsString:@"6Shorts"]) { if (![description containsString:@"history*"]) { @@ -1232,7 +1232,6 @@ NSData *cellDividerData; } } } -*/ // Hide Community Posts @michael-winay & @arichornlover if (IS_ENABLED(@"hideCommunityPosts_enabled")) { if ([description containsString:@"post_base_wrapper.eml"]) { @@ -1240,7 +1239,6 @@ NSData *cellDividerData; return cellDividerData; } } -/* // etc. - @Dayanch96 BOOL hasShorts = ([description containsString:@"shorts_shelf.eml"] || [description containsString:@"shorts_video_cell.eml"] || [description containsString:@"6Shorts"]) && ![description containsString:@"history*"]; BOOL hasShortsInHistory = [description containsString:@"compact_video.eml"] && [description containsString:@"youtube_shorts_"]; @@ -1248,8 +1246,8 @@ NSData *cellDividerData; if (hasShorts || hasShortsInHistory) return cellDividerData; return %orig; } -*/ %end +*/ // Red Subscribe Button - 17.33.2 and up - @arichornlover %hook ELMContainerNode