mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 11:52:00 +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
|
%hook MDXSession
|
||||||
- (void)adPlaying:(id)ad {}
|
- (void)adPlaying:(id)ad {}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%hook YTReelInfinitePlaybackDataSource
|
||||||
|
- (YTReelModel *)makeContentModelForEntry:(id)entry {
|
||||||
|
YTReelModel *model = %orig;
|
||||||
|
if ([model respondsToSelector:@selector(videoType)] && model.videoType == 3)
|
||||||
|
return nil;
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// uYou AdBlock Workaround (Note: disables uYou's "Remove YouTube Ads" Option) - @PoomSmart, @arichornlover & @Dodieboy
|
// uYou AdBlock Workaround (Note: disables uYou's "Remove YouTube Ads" Option) - @PoomSmart, @arichornlover & @Dodieboy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue