Skip to content

Commit

Permalink
ops, add back Hide Play next in queue
Browse files Browse the repository at this point in the history
  • Loading branch information
qnblackcat committed Jan 30, 2024
1 parent 6385692 commit f5c7655
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/uYouPlus.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import "uYouPlusThemes.h" // Hide "Buy Super Thanks" banner (_ASDisplayView)
#import "../Tweaks/YouTubeHeader/YTAppDelegate.h" // Activate FLEX
#import "../Tweaks/YouTubeHeader/YTIMenuConditionalServiceItemRenderer.h"

// #import "../Tweaks/YouTubeHeader/YTISectionListRenderer.h" // Hide search ads by @PoomSmart - https://github.com/PoomSmart/YouTube-X

#define LOC(x) [tweakBundle localizedStringForKey:x value:nil table:nil]
Expand Down
7 changes: 7 additions & 0 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ NSBundle *tweakBundle = uYouPlusBundle();
%end
%end

// Hide "Play next in queue" - qnblackcat/uYouPlus#1138
%hook YTMenuItemVisibilityHandler
- (BOOL)shouldShowServiceItemRenderer:(YTIMenuConditionalServiceItemRenderer *)renderer {
return IS_ENABLED(@"hidePlayNextInQueue_enabled") && renderer.icon.iconType == 251 ? NO : %orig;
}
%end

// Force iPhone layout
%group giPhoneLayout
%hook UIDevice
Expand Down

0 comments on commit f5c7655

Please sign in to comment.