Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Nov 16, 2024
1 parent 765a124 commit 3415184
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -390,28 +390,6 @@ YTMainAppControlsOverlayView *controlsOverlayView;
}
%end

// Hide search ads by @PoomSmart - https://github.com/PoomSmart/YouTube-X
// %hook YTIElementRenderer
// - (NSData *)elementData {
// if (self.hasCompatibilityOptions && self.compatibilityOptions.hasAdLoggingData)
// return nil;
// return %orig;
// }
// %end

// %hook YTSectionListViewController
// - (void)loadWithModel:(YTISectionListRenderer *)model {
// NSMutableArray <YTISectionListSupportedRenderers *> *contentsArray = model.contentsArray;
// NSIndexSet *removeIndexes = [contentsArray indexesOfObjectsPassingTest:^BOOL(YTISectionListSupportedRenderers *renderers, NSUInteger idx, BOOL *stop) {
// YTIItemSectionRenderer *sectionRenderer = renderers.itemSectionRenderer;
// YTIItemSectionSupportedRenderers *firstObject = [sectionRenderer.contentsArray firstObject];
// return firstObject.hasPromotedVideoRenderer || firstObject.hasCompactPromotedVideoRenderer || firstObject.hasPromotedVideoInlineMutedRenderer;
// }];
// [contentsArray removeObjectsAtIndexes:removeIndexes];
// %orig;
// }
// %end

// A/B flags
%hook YTColdConfig
// YouRememberCaption: https://poomsmart.github.io/repo/depictions/youremembercaption.html
Expand Down

0 comments on commit 3415184

Please sign in to comment.