Skip to content

Commit

Permalink
Merge pull request #1165 from dayanch96/patch-2
Browse files Browse the repository at this point in the history
 Remove “Play next in queue” #1138
  • Loading branch information
level3tjg authored Jul 24, 2023
2 parents 9b2b22d + 7996b43 commit 444c66a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#import "Tweaks/YouTubeHeader/YTReelPlayerViewController.h"
#import "Tweaks/YouTubeHeader/YTAlertView.h"
#import "Tweaks/YouTubeHeader/YTISectionListRenderer.h"
#import "Tweaks/YouTubeHeader/YTIMenuConditionalServiceItemRenderer.h"

#define LOC(x) [tweakBundle localizedStringForKey:x value:nil table:nil]
#define YT_BUNDLE_ID @"com.google.ios.youtube"
Expand Down
9 changes: 8 additions & 1 deletion uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static BOOL oldDarkTheme() {
}
%new
- (void)removeShortsAndFeaturesAdsAtIndexPath:(NSIndexPath *)indexPath {
[self deleteItemsAtIndexPaths:[NSArray arrayWithObject:indexPath]];
[self deleteItemsAtIndexPaths:[NSArray arrayWithObject:indexPath]];
}
%end

Expand All @@ -152,6 +152,13 @@ static BOOL oldDarkTheme() {
}
%end

// Remove “Play next in queue” from the menu (@PoomSmart) - qnblackcat/uYouPlus#1138
%hook YTMenuItemVisibilityHandler
- (BOOL)shouldShowServiceItemRenderer:(YTIMenuConditionalServiceItemRenderer *)renderer {
return renderer.icon.iconType == 251 ? NO : %orig;
}
%end

# pragma mark - Tweaks
// IAmYouTube - https://github.com/PoomSmart/IAmYouTube/
%hook YTVersionUtils
Expand Down

0 comments on commit 444c66a

Please sign in to comment.