Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arichornlover authored Mar 19, 2023
1 parent 48000fb commit 13e55c4
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions YouTubePlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -225,29 +225,13 @@ static BOOL didFinishLaunching;
%end

// No YouTube Ads
%hook YTIPlayerResponse
- (BOOL)isMonetized {
return NO;
}
%end

%hook YTDataUtils
+ (id)spamSignalsDictionary {
return NULL;
}
%end

%hook YTAdsInnerTubeContextDecorator
- (void)decorateContext:(id)arg1 {
}
%end

%hook YTSectionListViewController
- (void)loadWithModel:(id)model {
}
%end

// No YouTube Search Ads
// Hide YouTube search ads
%hook YTIElementRenderer
- (NSData *)elementData {
if (self.hasCompatibilityOptions && self.compatibilityOptions.hasAdLoggingData)
Expand All @@ -268,7 +252,6 @@ static BOOL didFinishLaunching;
[contentsArray removeObjectsAtIndexes:removeIndexes];
%orig;
}

%end

// Disabled - Autoplay Settings Section - qnblackcat
Expand Down

0 comments on commit 13e55c4

Please sign in to comment.