Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-03-27 20:30:18 -05:00 committed by GitHub
parent 83f6140426
commit 690d9545f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,16 +40,14 @@ NSBundle *tweakBundle = uYouPlusBundle();
// Workaround: uYou 3.0.3 Adblock fix.
%hook YTAdsInnerTubeContextDecorator
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeYouTubeAds"]) {
- (void)decorateContext:(id)context {
}
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeYouTubeAds"]) {}
}
%end
%hook YTAccountScopedAdsInnerTubeContextDecorator
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeYouTubeAds"]) {
- (void)decorateContext:(id)context {
}
if ([NSUserDefaults.standardUserDefaults boolForKey:@"removeYouTubeAds"]) {}
}
%end
BOOL isAd(YTIElementRenderer *self) {