From d53bcda533033fc28c553945da9293323d8c026a Mon Sep 17 00:00:00 2001 From: aricloverGitHub <157071384+aricloverALT@users.noreply.github.com> Date: Sun, 17 Nov 2024 08:57:46 -0600 Subject: [PATCH] Correction for YouTube-X (again) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently I “forgot” to put this in the AdBlock Lite option. Totally would’ve “forget” something like that. --- Sources/uYouPlus.xm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 7014764..2d68867 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -262,6 +262,15 @@ YTMainAppControlsOverlayView *controlsOverlayView; %hook MDXSession - (void)adPlaying:(id)ad {} %end + +%hook YTReelInfinitePlaybackDataSource +- (YTReelModel *)makeContentModelForEntry:(id)entry { + YTReelModel *model = %orig; + if ([model respondsToSelector:@selector(videoType)] && model.videoType == 3) + return nil; + return model; +} +%end %end // uYou AdBlock Workaround (Note: disables uYou's "Remove YouTube Ads" Option) - @PoomSmart, @arichornlover & @Dodieboy