From dfc6cce94c856e860894fa89276a74ea0aada307 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Sat, 29 Jul 2023 20:04:49 -0500 Subject: [PATCH] Removed Broken code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some of the code is broken in the latest version so it’s been removed. --- uYouPlus.xm | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 5d07a56..17b9b2a 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -84,26 +84,6 @@ static BOOL IsEnabled(NSString *key) { - (BOOL)disableAfmaIdfaCollection { return NO; } %end -// Hide YouTube annoying banner in Home page? - @MiRO92 - YTNoShorts: https://github.com/MiRO92/YTNoShorts -%hook YTAsyncCollectionView -- (id)cellForItemAtIndexPath:(NSIndexPath *)indexPath { - UICollectionViewCell *cell = %orig; - if ([cell isKindOfClass:NSClassFromString(@"_ASCollectionViewCell")]) { - _ASCollectionViewCell *cell = %orig; - if ([cell respondsToSelector:@selector(node)]) { - if ([[[cell node] accessibilityIdentifier] isEqualToString:@"statement_banner.view"]) { [self removeShortsAndFeaturesAdsAtIndexPath:indexPath]; } - if ([[[cell node] accessibilityIdentifier] isEqualToString:@"compact.view"]) { [self removeShortsAndFeaturesAdsAtIndexPath:indexPath]; } - // if ([[[cell node] accessibilityIdentifier] isEqualToString:@"id.ui.video_metadata_carousel"]) { [self removeShortsAndFeaturesAdsAtIndexPath:indexPath]; } - } - } - return %orig; -} -%new -- (void)removeShortsAndFeaturesAdsAtIndexPath:(NSIndexPath *)indexPath { - [self deleteItemsAtIndexPaths:[NSArray arrayWithObject:indexPath]]; -} -%end - // Remove “Play next in queue” from the menu (@PoomSmart) - qnblackcat/uYouPlus#1138 %group gHidePlayNextInQueue %hook YTMenuItemVisibilityHandler