Skip to content

Commit d53bcda

Browse files
Correction for YouTube-X (again)
Apparently I “forgot” to put this in the AdBlock Lite option. Totally would’ve “forget” something like that.
1 parent 883584b commit d53bcda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Sources/uYouPlus.xm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@ YTMainAppControlsOverlayView *controlsOverlayView;
262262
%hook MDXSession
263263
- (void)adPlaying:(id)ad {}
264264
%end
265+
266+
%hook YTReelInfinitePlaybackDataSource
267+
- (YTReelModel *)makeContentModelForEntry:(id)entry {
268+
YTReelModel *model = %orig;
269+
if ([model respondsToSelector:@selector(videoType)] && model.videoType == 3)
270+
return nil;
271+
return model;
272+
}
273+
%end
265274
%end
266275

267276
// uYou AdBlock Workaround (Note: disables uYou's "Remove YouTube Ads" Option) - @PoomSmart, @arichornlover & @Dodieboy

0 commit comments

Comments
 (0)