mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
ops, add back Hide Play next in queue
This commit is contained in:
parent
6385692aad
commit
f5c765595c
2 changed files with 9 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue