Correction for YouTube-X (again)

Apparently I “forgot” to put this in the AdBlock Lite option. Totally would’ve “forget” something like that.
This commit is contained in:
aricloverGitHub 2024-11-17 08:57:46 -06:00 committed by GitHub
parent 883584b4cb
commit d53bcda533
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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