mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
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:
parent
883584b4cb
commit
d53bcda533
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue