From 091332073a4d7e35ac4f5a035cff8becd30e45be Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Tue, 26 Dec 2023 19:08:42 -0600 Subject: [PATCH] remove duplicate function (Hide Shorts Cells) --- uYouPlus.xm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 414cbe1..25c3db4 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -825,11 +825,8 @@ static void replaceTab(YTIGuideResponse *response) { // Hide Shorts Cells - @PoomSmart & @iCrazeiOS %hook YTIElementRenderer - (NSData *)elementData { - NSString *description = [self description]; - NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - BOOL hideShortsCellsEnabled = [defaults boolForKey:@"hideShortsCells_enabled"]; - BOOL hideShortsCellsEnableduYou = [defaults boolForKey:@"removeShortsCell"]; - if (hideShortsCellsEnabled || hideShortsCellsEnableduYou) { + if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeShortsCell"]) { + NSString *description = [self description]; if ([description containsString:@"shorts_shelf.eml"] || [description containsString:@"#shorts"] || [description containsString:@"shorts_video_cell.eml"] ||