mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-10-29 12:00:47 -04:00
added files via upload
This commit is contained in:
2
Tweaks/YouTubeHeader/.gitattributes
vendored
Normal file
2
Tweaks/YouTubeHeader/.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
2
Tweaks/YouTubeHeader/.gitignore
vendored
Normal file
2
Tweaks/YouTubeHeader/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
.DS_Store
|
||||
4
Tweaks/YouTubeHeader/ASCollectionElement.h
Normal file
4
Tweaks/YouTubeHeader/ASCollectionElement.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ASCollectionElement : NSObject
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/ASCollectionView.h
Normal file
4
Tweaks/YouTubeHeader/ASCollectionView.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface ASCollectionView : UICollectionView
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/ASControlNode.h
Normal file
4
Tweaks/YouTubeHeader/ASControlNode.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import "ASDisplayNode.h"
|
||||
|
||||
@interface ASControlNode : ASDisplayNode
|
||||
@end
|
||||
21
Tweaks/YouTubeHeader/ASDisplayNode.h
Normal file
21
Tweaks/YouTubeHeader/ASDisplayNode.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "ASLayoutElementStyleYoga.h"
|
||||
|
||||
@interface ASDisplayNode : NSObject
|
||||
@property (atomic, copy, readwrite) NSArray *yogaChildren;
|
||||
@property (nonatomic, copy, readwrite) NSString *accessibilityIdentifier;
|
||||
@property (atomic, weak, readonly) ASDisplayNode *yogaParent;
|
||||
@property (atomic, strong, readwrite) id contents;
|
||||
@property (atomic, assign, readwrite) CGFloat alpha;
|
||||
@property (atomic, assign, readwrite) CGRect frame;
|
||||
@property (atomic, assign, readwrite) CGRect bounds;
|
||||
@property (atomic, assign, readonly) unsigned char interfaceState;
|
||||
@property (atomic, assign, readwrite, getter=isHidden) BOOL hidden;
|
||||
@property (atomic, assign, readwrite, getter=isLayerBacked) BOOL layerBacked;
|
||||
@property (atomic, assign, readwrite) BOOL automaticallyManagesSubnodes;
|
||||
- (id)controller;
|
||||
- (ASLayoutElementStyleYoga *)style;
|
||||
- (UIViewController *)closestViewController;
|
||||
- (UIView *)view;
|
||||
- (BOOL)isNodeLoaded;
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/ASLayoutElementStyleYoga.h
Normal file
8
Tweaks/YouTubeHeader/ASLayoutElementStyleYoga.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ASLayoutElementStyleYoga : NSObject
|
||||
@property (nonatomic, assign, readwrite) CGFloat spacingBefore;
|
||||
@property (nonatomic, assign, readwrite) CGFloat spacingAfter;
|
||||
@property (nonatomic, assign, readwrite) CGFloat flexGrow;
|
||||
@property (nonatomic, assign, readwrite) CGFloat flexShrink;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/ASNodeContext.h
Normal file
6
Tweaks/YouTubeHeader/ASNodeContext.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ASNodeContext : NSObject
|
||||
- (instancetype)initWithOptions:(unsigned char)options;
|
||||
- (unsigned char)options;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/ASNodeController.h
Normal file
4
Tweaks/YouTubeHeader/ASNodeController.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ASNodeController : NSObject
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/ASTextNode.h
Normal file
5
Tweaks/YouTubeHeader/ASTextNode.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "ASControlNode.h"
|
||||
|
||||
@interface ASTextNode : ASControlNode <UIGestureRecognizerDelegate>
|
||||
@property (atomic, copy, readwrite) NSAttributedString *attributedText;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/ELMCellNode.h
Normal file
6
Tweaks/YouTubeHeader/ELMCellNode.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import "ASCellNode.h"
|
||||
#import "ELMElement.h"
|
||||
|
||||
@interface ELMCellNode : ASCellNode
|
||||
@property (atomic, strong, readwrite) ELMElement *element;
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/ELMContainerNode.h
Normal file
8
Tweaks/YouTubeHeader/ELMContainerNode.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import "ELMElement.h"
|
||||
#import "ASDisplayNode.h"
|
||||
|
||||
@interface ELMContainerNode : ASDisplayNode
|
||||
@property (atomic, strong, readwrite) ELMElement *element;
|
||||
- (void)addYogaChild:(id)child;
|
||||
- (void)addSubnode:(id)subnode;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/ELMElement.h
Normal file
6
Tweaks/YouTubeHeader/ELMElement.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ELMElement : NSObject
|
||||
- (id)newChildElementWithInstance:(const void *)instance;
|
||||
- (const void *)instance;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/ELMNodeController.h
Normal file
5
Tweaks/YouTubeHeader/ELMNodeController.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "ASNodeController.h"
|
||||
|
||||
@interface ELMNodeController : ASNodeController
|
||||
- (const void *)materializationContext;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/ELMNodeFactory.h
Normal file
6
Tweaks/YouTubeHeader/ELMNodeFactory.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ELMNodeFactory : NSObject
|
||||
+ (instancetype)sharedInstance;
|
||||
- (id)nodeWithElement:(id)element materializationContext:(const void *)context;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/ELMTextNode.h
Normal file
7
Tweaks/YouTubeHeader/ELMTextNode.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "ASTextNode.h"
|
||||
#import "ELMElement.h"
|
||||
|
||||
@interface ELMTextNode : ASTextNode
|
||||
@property (atomic, strong, readwrite) ELMElement *element;
|
||||
- (instancetype)initWithElement:(ELMElement *)element context:(id)context;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/GIMBindingBuilder.h
Normal file
6
Tweaks/YouTubeHeader/GIMBindingBuilder.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GIMBindingBuilder : NSObject
|
||||
- (instancetype)bindType:(Class)typeClass;
|
||||
- (instancetype)initializedWith:(id (^)(id))block;
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/GIMMe.h
Normal file
8
Tweaks/YouTubeHeader/GIMMe.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GIMMe : NSObject
|
||||
+ (instancetype)gimme;
|
||||
- (instancetype)allocOf:(Class)cls;
|
||||
- (id)nullableInstanceForType:(id)type;
|
||||
- (id)instanceForType:(id)type;
|
||||
@end
|
||||
19
Tweaks/YouTubeHeader/GOOAlertView.h
Normal file
19
Tweaks/YouTubeHeader/GOOAlertView.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#import "GOOModalView.h"
|
||||
|
||||
@interface GOOAlertView : GOOModalView
|
||||
@property (nonatomic, copy, readwrite) NSString *title;
|
||||
@property (nonatomic, readonly, strong) UILabel *titleLabel;
|
||||
@property (nonatomic, copy, readwrite) NSString *subtitle;
|
||||
@property (nonatomic, readonly, strong) UILabel *subtitleLabel;
|
||||
@property (nonatomic, readwrite, copy) UIImage *icon;
|
||||
+ (instancetype)dialog;
|
||||
+ (instancetype)infoDialog;
|
||||
+ (instancetype)confirmationDialog;
|
||||
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle;
|
||||
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle cancelTitle:(NSString *)cancelTitle;
|
||||
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle cancelAction:(void (^)(void))cancelAction cancelTitle:(NSString *)cancelTitle;
|
||||
+ (instancetype)confirmationDialogWithSelector:(SEL)selector actionTitle:(NSString *)actionTitle;
|
||||
+ (instancetype)confirmationDialogWithSelector:(SEL)selector actionTitle:(NSString *)actionTitle showsCancelButton:(BOOL)showsCancelButton;
|
||||
- (void)addCancelButton:(SEL)selector;
|
||||
- (void)addCancelButtonWithAction:(void (^)(void))action;
|
||||
@end
|
||||
18
Tweaks/YouTubeHeader/GOOModalView.h
Normal file
18
Tweaks/YouTubeHeader/GOOModalView.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface GOOModalView : UIView
|
||||
@property (nonatomic, readwrite, weak) id target;
|
||||
@property (nonatomic, readwrite, assign) BOOL shouldDismissOnBackgroundTap;
|
||||
@property (nonatomic, readwrite, assign) BOOL shouldDismissOnApplicationBackground;
|
||||
- (instancetype)initWithTarget:(id)target;
|
||||
- (void)addTitle:(NSString *)title withAction:(void (^)(void))action;
|
||||
- (void)addTitle:(NSString *)title withDestructiveAction:(void (^)(void))action;
|
||||
- (void)addTitle:(NSString *)title withSelector:(SEL)selector;
|
||||
- (void)addTitle:(NSString *)title withCancelSelector:(SEL)cancelSelector;
|
||||
- (void)addTitle:(NSString *)title withDestructiveSelector:(SEL)cancelSelector;
|
||||
- (void)addTitle:(NSString *)title iconImage:(UIImage *)iconImage withAction:(void (^)(void))action;
|
||||
- (void)addTitle:(NSString *)title iconImage:(UIImage *)iconImage withSelector:(SEL)selector;
|
||||
- (void)show;
|
||||
- (void)cancel;
|
||||
- (void)dismiss;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/GPBExtensionDescriptor.h
Normal file
5
Tweaks/YouTubeHeader/GPBExtensionDescriptor.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GPBExtensionDescriptor : NSObject
|
||||
- (Class)msgClass;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/GPBExtensionRegistry.h
Normal file
5
Tweaks/YouTubeHeader/GPBExtensionRegistry.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GPBExtensionRegistry : NSObject
|
||||
- (void)addExtension:(id)extension;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/GPBMessage.h
Normal file
5
Tweaks/YouTubeHeader/GPBMessage.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GPBMessage : NSObject
|
||||
- (id)firstSubmessage;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/HAMAsyncVTVideoDecoder.h
Normal file
5
Tweaks/YouTubeHeader/HAMAsyncVTVideoDecoder.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface HAMAsyncVTVideoDecoder : NSObject
|
||||
- (instancetype)initWithDelegate:(id)delegate delegateQueue:(id)delegateQueue decodeQueue:(id)decodeQueue formatDescription:(id)formatDescription pixelBufferAttributes:(id)pixelBufferAttributes;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/HAMMIMEType.h
Normal file
6
Tweaks/YouTubeHeader/HAMMIMEType.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface HAMMIMEType : NSObject
|
||||
- (unsigned int)audioCodec;
|
||||
- (unsigned int)videoCodec;
|
||||
@end
|
||||
2
Tweaks/YouTubeHeader/HAMPixelBufferRenderingView.h
Normal file
2
Tweaks/YouTubeHeader/HAMPixelBufferRenderingView.h
Normal file
@@ -0,0 +1,2 @@
|
||||
@protocol HAMPixelBufferRenderingView
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/HAMSBDLSampleBufferRenderingView.h
Normal file
5
Tweaks/YouTubeHeader/HAMSBDLSampleBufferRenderingView.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <AVKit/AVKit.h>
|
||||
|
||||
@interface HAMSBDLSampleBufferRenderingView : UIView
|
||||
@property (retain, nonatomic, readonly) AVSampleBufferDisplayLayer *displayLayer;
|
||||
@end
|
||||
21
Tweaks/YouTubeHeader/LICENSE
Normal file
21
Tweaks/YouTubeHeader/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 - 2022 PoomSmart
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
5
Tweaks/YouTubeHeader/MLABRPolicy.h
Normal file
5
Tweaks/YouTubeHeader/MLABRPolicy.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLABRPolicy : NSObject
|
||||
- (void)requestFormatReselection;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/MLABRPolicyFormatData.h
Normal file
5
Tweaks/YouTubeHeader/MLABRPolicyFormatData.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "MLFormat.h"
|
||||
|
||||
@interface MLABRPolicyFormatData : NSObject
|
||||
- (instancetype)initWithFormat:(MLFormat *)format;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/MLABRPolicyNew.h
Normal file
5
Tweaks/YouTubeHeader/MLABRPolicyNew.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "MLABRPolicy.h"
|
||||
|
||||
// YouTube 17.30.3 and higher
|
||||
@interface MLABRPolicyNew : MLABRPolicy
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/MLABRPolicyOld.h
Normal file
5
Tweaks/YouTubeHeader/MLABRPolicyOld.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "MLABRPolicy.h"
|
||||
|
||||
// YouTube 17.30.3 and higher
|
||||
@interface MLABRPolicyOld : MLABRPolicy
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/MLAVAssetPlayer.h
Normal file
5
Tweaks/YouTubeHeader/MLAVAssetPlayer.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <AVKit/AVKit.h>
|
||||
|
||||
@interface MLAVAssetPlayer : NSObject
|
||||
- (AVPlayerItem *)playerItem;
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/MLAVPIPPlayerLayerView.h
Normal file
8
Tweaks/YouTubeHeader/MLAVPIPPlayerLayerView.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import "MLAVPlayerLayerView.h"
|
||||
#import "MLAVPlayer.h"
|
||||
#import "MLAVPlayerViewDelegate.h"
|
||||
|
||||
@interface MLAVPIPPlayerLayerView : MLAVPlayerLayerView
|
||||
@property (nonatomic, readonly, strong) AVPlayerLayer *playerLayer;
|
||||
@property (nonatomic, readwrite, weak) NSObject <MLAVPlayerViewDelegate> *delegate;
|
||||
@end
|
||||
15
Tweaks/YouTubeHeader/MLAVPlayer.h
Normal file
15
Tweaks/YouTubeHeader/MLAVPlayer.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#import "MLAVAssetPlayer.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
#import "MLPlayerViewProtocol.h"
|
||||
#import "MLPlayerStickySettings.h"
|
||||
|
||||
@interface MLAVPlayer : NSObject
|
||||
@property (nonatomic, readwrite, assign) BOOL active;
|
||||
@property (nonatomic, readonly, assign) BOOL externalPlaybackActive;
|
||||
@property (nonatomic, readwrite, assign) float rate;
|
||||
@property (nonatomic, readonly, strong) MLVideo *video;
|
||||
@property (nonatomic, readonly, strong) MLInnerTubePlayerConfig *config;
|
||||
@property (nonatomic, readonly, strong) MLAVAssetPlayer *assetPlayer;
|
||||
@property (nonatomic, readwrite, strong) UIView <MLPlayerViewProtocol> *renderingView;
|
||||
- (instancetype)initWithVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig stickySettings:(MLPlayerStickySettings *)stickySettings externalPlaybackActive:(BOOL)externalPlaybackActive;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/MLAVPlayerLayerView.h
Normal file
5
Tweaks/YouTubeHeader/MLAVPlayerLayerView.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "MLPlayerViewProtocol.h"
|
||||
#import "HAMPixelBufferRenderingView.h"
|
||||
|
||||
@interface MLAVPlayerLayerView : UIView <MLPlayerViewProtocol, HAMPixelBufferRenderingView>
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/MLAVPlayerViewDelegate.h
Normal file
6
Tweaks/YouTubeHeader/MLAVPlayerViewDelegate.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@protocol MLAVPlayerViewDelegate <NSObject>
|
||||
@required
|
||||
- (void)playerViewErrorDidOccur:(id)arg1;
|
||||
@end
|
||||
10
Tweaks/YouTubeHeader/MLDefaultPlayerViewFactory.h
Normal file
10
Tweaks/YouTubeHeader/MLDefaultPlayerViewFactory.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "GIMMe.h"
|
||||
#import "MLVideo.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
#import "MLAVPlayerLayerView.h"
|
||||
|
||||
@interface MLDefaultPlayerViewFactory : NSObject
|
||||
@property (nonatomic, weak, readwrite) GIMMe *gimme;
|
||||
- (BOOL)canUsePlayerView:(UIView *)playerView forVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)config;
|
||||
- (MLAVPlayerLayerView *)AVPlayerViewForVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)config;
|
||||
@end
|
||||
17
Tweaks/YouTubeHeader/MLFormat.h
Normal file
17
Tweaks/YouTubeHeader/MLFormat.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
#import "HAMMIMEType.h"
|
||||
#import "YTIFormatStream.h"
|
||||
|
||||
@interface MLFormat : NSObject <NSCopying>
|
||||
- (HAMMIMEType *)MIMEType;
|
||||
- (YTIFormatStream *)formatStream;
|
||||
- (NSURL *)URL;
|
||||
- (int)width;
|
||||
- (int)height;
|
||||
- (int)singleDimensionResolution;
|
||||
- (CGFloat)FPS;
|
||||
- (BOOL)isAudio;
|
||||
- (BOOL)isVideo;
|
||||
- (BOOL)isText;
|
||||
- (NSInteger)compareByQuality:(MLFormat *)format;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/MLHAMPlayer.h
Normal file
7
Tweaks/YouTubeHeader/MLHAMPlayer.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "MLVideo.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
#import "MLPlayerStickySettings.h"
|
||||
|
||||
@interface MLHAMPlayer : NSObject
|
||||
- (instancetype)initWithVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig stickySettings:(MLPlayerStickySettings *)stickySettings playerViewProvider:(id)playerViewProvider;
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/MLHAMPlayerItem.h
Normal file
8
Tweaks/YouTubeHeader/MLHAMPlayerItem.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import "MLABRPolicy.h"
|
||||
#import "MLFormat.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
|
||||
@interface MLHAMPlayerItem : NSObject
|
||||
@property (nonatomic, readonly, strong) MLInnerTubePlayerConfig *config;
|
||||
- (void)ABRPolicy:(MLABRPolicy *)policy selectableFormatsDidChange:(NSArray <MLFormat *> *)formats;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/MLHAMPlayerViewProtocol.h
Normal file
7
Tweaks/YouTubeHeader/MLHAMPlayerViewProtocol.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "MLVideo.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
|
||||
@protocol MLHAMPlayerViewProtocol
|
||||
- (void)makeActivePlayer;
|
||||
- (void)setVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/MLHAMQueuePlayer.h
Normal file
4
Tweaks/YouTubeHeader/MLHAMQueuePlayer.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import "MLHAMPlayer.h"
|
||||
|
||||
@interface MLHAMQueuePlayer : MLHAMPlayer
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import "HAMSBDLSampleBufferRenderingView.h"
|
||||
|
||||
@interface MLHAMSBDLSampleBufferRenderingView : HAMSBDLSampleBufferRenderingView
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/MLInnerTubePlayerConfig.h
Normal file
7
Tweaks/YouTubeHeader/MLInnerTubePlayerConfig.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "YTIMediaCommonConfig.h"
|
||||
#import "YTIHamplayerConfig.h"
|
||||
|
||||
@interface MLInnerTubePlayerConfig : NSObject
|
||||
@property (nonatomic, readonly, strong) YTIMediaCommonConfig *mediaCommonConfig;
|
||||
@property (nonatomic, readonly, strong) YTIHamplayerConfig *hamplayerConfig;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/MLOnesieVideoData.h
Normal file
4
Tweaks/YouTubeHeader/MLOnesieVideoData.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLOnesieVideoData : NSObject
|
||||
@end
|
||||
24
Tweaks/YouTubeHeader/MLPIPController.h
Normal file
24
Tweaks/YouTubeHeader/MLPIPController.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#import <AVKit/AVKit.h>
|
||||
#import "MLAVPIPPlayerLayerView.h"
|
||||
#import "MLHAMSBDLSampleBufferRenderingView.h"
|
||||
|
||||
@interface MLPIPController : NSObject <AVPictureInPictureControllerDelegate, AVPictureInPictureSampleBufferPlaybackDelegate>
|
||||
@property (nonatomic, strong, readwrite) MLAVPIPPlayerLayerView *AVPlayerView;
|
||||
@property (nonatomic, strong, readwrite) MLHAMSBDLSampleBufferRenderingView *HAMPlayerView;
|
||||
- (instancetype)initWithPlaceholderPlayerItem:(AVPlayerItem *)playerItem; // Deprecated
|
||||
- (instancetype)initWithPlaceholderPlayerItemResourcePath:(NSString *)placeholderPath; // Deprecated
|
||||
- (AVPictureInPictureControllerContentSource *)newContentSource API_AVAILABLE(ios(15.0));
|
||||
- (BOOL)isPictureInPictureSupported;
|
||||
- (BOOL)isPictureInPictureActive; // Deprecated
|
||||
- (BOOL)pictureInPictureActive;
|
||||
- (BOOL)contentSourceNeedsRefresh;
|
||||
- (CGSize)renderSizeForView:(UIView *)view;
|
||||
- (BOOL)startPictureInPicture; // Deprecated
|
||||
- (void)stopPictureInPicture; // Deprecated
|
||||
- (void)addPIPControllerObserver:(id)observer;
|
||||
- (void)activatePiPController;
|
||||
- (void)deactivatePiPController;
|
||||
- (void)pictureInPictureControllerStartPlayback;
|
||||
- (void)pictureInPictureControllerStopPlayback;
|
||||
- (void)pause;
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/MLPlayerPool.h
Normal file
8
Tweaks/YouTubeHeader/MLPlayerPool.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import "GIMMe.h"
|
||||
#import "MLVideo.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
|
||||
@interface MLPlayerPool : NSObject
|
||||
@property (nonatomic, weak, readwrite) GIMMe *gimme;
|
||||
- (void)createHamResourcesForVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/MLPlayerPoolImpl.h
Normal file
4
Tweaks/YouTubeHeader/MLPlayerPoolImpl.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLPlayerPoolImpl : NSObject
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/MLPlayerStickySettings.h
Normal file
5
Tweaks/YouTubeHeader/MLPlayerStickySettings.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLPlayerStickySettings : NSObject
|
||||
@property (assign) float rate;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/MLPlayerViewProtocol.h
Normal file
7
Tweaks/YouTubeHeader/MLPlayerViewProtocol.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "MLVideo.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
|
||||
@protocol MLPlayerViewProtocol
|
||||
- (void)makeActivePlayer;
|
||||
- (void)setVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/MLQOEPingController.h
Normal file
4
Tweaks/YouTubeHeader/MLQOEPingController.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLQOEPingController : NSObject
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/MLRemoteStream.h
Normal file
6
Tweaks/YouTubeHeader/MLRemoteStream.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import "YTIFormatStream.h"
|
||||
#import "MLFormat.h"
|
||||
|
||||
@interface MLRemoteStream : MLFormat
|
||||
+ (instancetype)streamWithFormatStream:(YTIFormatStream *)formatStream;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/MLStreamingData.h
Normal file
5
Tweaks/YouTubeHeader/MLStreamingData.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "MLRemoteStream.h"
|
||||
|
||||
@interface MLStreamingData : NSObject
|
||||
- (NSArray <MLRemoteStream *> *)adaptiveStreams;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/MLVideo.h
Normal file
7
Tweaks/YouTubeHeader/MLVideo.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "MLStreamingData.h"
|
||||
#import "YTIVideoDetails.h"
|
||||
|
||||
@interface MLVideo : NSObject
|
||||
- (MLStreamingData *)streamingData;
|
||||
- (YTIVideoDetails *)videoDetails;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/MLVideoDecoderFactory.h
Normal file
4
Tweaks/YouTubeHeader/MLVideoDecoderFactory.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLVideoDecoderFactory : NSObject
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/QTMIcon.h
Normal file
6
Tweaks/YouTubeHeader/QTMIcon.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface QTMIcon : NSObject
|
||||
+ (UIImage *)imageWithName:(NSString *)name color:(UIColor *)color;
|
||||
+ (UIImage *)tintImage:(UIImage *)image color:(UIColor *)color;
|
||||
@end
|
||||
3
Tweaks/YouTubeHeader/README.md
Normal file
3
Tweaks/YouTubeHeader/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# YouTubeHeader
|
||||
|
||||
Headers for iOS YouTube app.
|
||||
5
Tweaks/YouTubeHeader/UIView+AsyncDisplayKit.h
Normal file
5
Tweaks/YouTubeHeader/UIView+AsyncDisplayKit.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "ASDisplayNode.h"
|
||||
|
||||
@interface UIView (AsyncDisplayKit)
|
||||
- (void)addSubnode:(ASDisplayNode *)subnode;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/UIView+YouTube.h
Normal file
5
Tweaks/YouTubeHeader/UIView+YouTube.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface UIView (YouTube)
|
||||
- (BOOL)yt_isVisible;
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/YTActionSheetAction.h
Normal file
8
Tweaks/YouTubeHeader/YTActionSheetAction.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTActionSheetAction : NSObject
|
||||
+ (instancetype)actionWithTitle:(NSString *)title style:(NSInteger)style handler:(void (^)(YTActionSheetAction *))handler;
|
||||
+ (instancetype)actionWithTitle:(NSString *)title iconImage:(UIImage *)iconImage style:(NSInteger)style handler:(void (^)(YTActionSheetAction *))handler;
|
||||
+ (instancetype)actionWithTitle:(NSString *)title subtitle:(NSString *)subtitle iconImage:(UIImage *)iconImage handler:(void (^)(YTActionSheetAction *))handler;
|
||||
+ (instancetype)actionWithTitle:(NSString *)title subtitle:(NSString *)subtitle iconImage:(UIImage *)iconImage accessibilityIdentifier:(NSString *)accessibilityIdentifier handler:(void (^)(YTActionSheetAction *))handler;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/YTActionSheetController.h
Normal file
7
Tweaks/YouTubeHeader/YTActionSheetController.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTActionSheetController : NSObject
|
||||
+ (instancetype)actionSheetController;
|
||||
- (void)addCancelActionIfNeeded;
|
||||
- (void)presentFromViewController:(UIViewController *)viewController animated:(BOOL)animated completion:(void (^)(void))completion;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/YTAlertView.h
Normal file
6
Tweaks/YouTubeHeader/YTAlertView.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import "GOOAlertView.h"
|
||||
|
||||
@interface YTAlertView : GOOAlertView
|
||||
+ (instancetype)yt_dialog;
|
||||
- (void)removeDefaultPadding;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/YTAppDelegate.h
Normal file
4
Tweaks/YouTubeHeader/YTAppDelegate.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTAppDelegate : UIResponder
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTAppSettingsSectionItemActionController : NSObject
|
||||
@end
|
||||
9
Tweaks/YouTubeHeader/YTAppSettingsStore.h
Normal file
9
Tweaks/YouTubeHeader/YTAppSettingsStore.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTAppSettingsStore : NSObject
|
||||
+ (NSUInteger)valueTypeForSetting:(int)setting;
|
||||
- (void)setValue:(NSNumber *)value forSetting:(int)setting;
|
||||
- (void)setBool:(BOOL)value forSetting:(int)setting;
|
||||
- (NSNumber *)valueForSetting:(int)setting;
|
||||
- (BOOL)boolForSetting:(int)setting;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/YTAsyncCollectionView.h
Normal file
4
Tweaks/YouTubeHeader/YTAsyncCollectionView.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import "ASCollectionView.h"
|
||||
|
||||
@interface YTAsyncCollectionView : ASCollectionView
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/YTAutonavEndscreenController.h
Normal file
4
Tweaks/YouTubeHeader/YTAutonavEndscreenController.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTAutonavEndscreenController : NSObject
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/YTBackgroundabilityPolicy.h
Normal file
5
Tweaks/YouTubeHeader/YTBackgroundabilityPolicy.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTBackgroundabilityPolicy : NSObject
|
||||
- (void)addBackgroundabilityPolicyObserver:(id)observer;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/YTCellController.h
Normal file
6
Tweaks/YouTubeHeader/YTCellController.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "YTCollectionViewCellProtocol.h"
|
||||
|
||||
@interface YTCellController : NSObject
|
||||
@property (nonatomic, weak, readwrite) UICollectionViewCell <YTCollectionViewCellProtocol> *cell;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/YTColdConfig.h
Normal file
4
Tweaks/YouTubeHeader/YTColdConfig.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTColdConfig : NSObject
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/YTCollectionViewCell.h
Normal file
5
Tweaks/YouTubeHeader/YTCollectionViewCell.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "YTSlideForActionsView.h"
|
||||
|
||||
@interface YTCollectionViewCell : UICollectionViewCell
|
||||
@property (nonatomic, strong, readwrite) YTSlideForActionsView *slideForActionsView;
|
||||
@end
|
||||
2
Tweaks/YouTubeHeader/YTCollectionViewCellProtocol.h
Normal file
2
Tweaks/YouTubeHeader/YTCollectionViewCellProtocol.h
Normal file
@@ -0,0 +1,2 @@
|
||||
@protocol YTCollectionViewCellProtocol
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/YTColor.h
Normal file
8
Tweaks/YouTubeHeader/YTColor.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTColor : NSObject
|
||||
+ (UIColor *)white1;
|
||||
+ (UIColor *)black1;
|
||||
+ (UIColor *)black2;
|
||||
+ (UIColor *)black3;
|
||||
@end
|
||||
67
Tweaks/YouTubeHeader/YTColorPalette.h
Normal file
67
Tweaks/YouTubeHeader/YTColorPalette.h
Normal file
@@ -0,0 +1,67 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
// Deprecated, use YTCommonColorPalette
|
||||
@interface YTColorPalette : NSObject
|
||||
+ (instancetype)lightPalette;
|
||||
+ (instancetype)darkPalette;
|
||||
+ (instancetype)colorPaletteForPageStyle:(NSInteger)pageStyle;
|
||||
- (NSInteger)pageStyle;
|
||||
- (UIColor *)background1;
|
||||
- (UIColor *)background2;
|
||||
- (UIColor *)background3;
|
||||
- (UIColor *)brandBackgroundSolid;
|
||||
- (UIColor *)brandBackgroundPrimary;
|
||||
- (UIColor *)brandBackgroundSecondary;
|
||||
- (UIColor *)generalBackgroundA;
|
||||
- (UIColor *)generalBackgroundB;
|
||||
- (UIColor *)generalBackgroundC;
|
||||
- (UIColor *)errorBackground;
|
||||
- (UIColor *)textPrimary;
|
||||
- (UIColor *)textSecondary;
|
||||
- (UIColor *)textDisabled;
|
||||
- (UIColor *)textPrimaryInverse;
|
||||
- (UIColor *)callToAction;
|
||||
- (UIColor *)iconActive;
|
||||
- (UIColor *)iconActiveOther;
|
||||
- (UIColor *)iconInactive;
|
||||
- (UIColor *)iconDisabled;
|
||||
- (UIColor *)badgeChipBackground;
|
||||
- (UIColor *)buttonChipBackgroundHover;
|
||||
- (UIColor *)touchResponse;
|
||||
- (UIColor *)callToActionInverse;
|
||||
- (UIColor *)brandIconActive;
|
||||
- (UIColor *)brandIconInactive;
|
||||
- (UIColor *)brandButtonBackground;
|
||||
- (UIColor *)brandLinkText;
|
||||
- (UIColor *)tenPercentLayer;
|
||||
- (UIColor *)snackbarBackground;
|
||||
- (UIColor *)themedBlue;
|
||||
- (UIColor *)themedGreen;
|
||||
- (UIColor *)staticBrandRed;
|
||||
- (UIColor *)staticBrandWhite;
|
||||
- (UIColor *)staticBrandBlack;
|
||||
- (UIColor *)staticClearColor;
|
||||
- (UIColor *)staticAdYellow;
|
||||
- (UIColor *)staticGrey;
|
||||
- (UIColor *)overlayBackgroundSolid;
|
||||
- (UIColor *)overlayBackgroundHeavy;
|
||||
- (UIColor *)overlayBackgroundMedium;
|
||||
- (UIColor *)overlayBackgroundMediumLight;
|
||||
- (UIColor *)overlayBackgroundLight;
|
||||
- (UIColor *)overlayTextPrimary;
|
||||
- (UIColor *)overlayTextSecondary;
|
||||
- (UIColor *)overlayTextTertiary;
|
||||
- (UIColor *)overlayIconActiveCallToAction;
|
||||
- (UIColor *)overlayIconActiveOther;
|
||||
- (UIColor *)overlayIconInactive;
|
||||
- (UIColor *)overlayIconDisabled;
|
||||
- (UIColor *)overlayFilledButtonActive;
|
||||
- (UIColor *)overlayButtonSecondary;
|
||||
- (UIColor *)overlayButtonPrimary;
|
||||
- (UIColor *)overlayBackgroundBrand;
|
||||
- (UIColor *)overlayBackgroundClear;
|
||||
- (UIColor *)verifiedBadgeBackground;
|
||||
- (UIColor *)themedOverlayBackground;
|
||||
- (UIColor *)adIndicator;
|
||||
@end
|
||||
74
Tweaks/YouTubeHeader/YTCommonColorPalette.h
Normal file
74
Tweaks/YouTubeHeader/YTCommonColorPalette.h
Normal file
@@ -0,0 +1,74 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
// YouTube 17.19.2 and higher
|
||||
@interface YTCommonColorPalette : NSObject
|
||||
+ (instancetype)lightPalette;
|
||||
+ (instancetype)darkPalette;
|
||||
- (NSInteger)pageStyle;
|
||||
- (UIColor *)background1;
|
||||
- (UIColor *)background2;
|
||||
- (UIColor *)background3;
|
||||
- (UIColor *)staticBlue;
|
||||
- (UIColor *)brandBackgroundSolid;
|
||||
- (UIColor *)brandBackgroundPrimary;
|
||||
- (UIColor *)brandBackgroundSecondary;
|
||||
- (UIColor *)generalBackgroundA;
|
||||
- (UIColor *)generalBackgroundB;
|
||||
- (UIColor *)generalBackgroundC;
|
||||
- (UIColor *)errorBackground;
|
||||
- (UIColor *)textPrimary;
|
||||
- (UIColor *)textSecondary;
|
||||
- (UIColor *)textDisabled;
|
||||
- (UIColor *)textPrimaryInverse;
|
||||
- (UIColor *)callToAction;
|
||||
- (UIColor *)iconActive;
|
||||
- (UIColor *)iconActiveOther;
|
||||
- (UIColor *)iconInactive;
|
||||
- (UIColor *)iconDisabled;
|
||||
- (UIColor *)badgeChipBackground;
|
||||
- (UIColor *)buttonChipBackgroundHover;
|
||||
- (UIColor *)touchResponse;
|
||||
- (UIColor *)callToActionInverse;
|
||||
- (UIColor *)brandIconActive;
|
||||
- (UIColor *)brandIconInactive;
|
||||
- (UIColor *)brandButtonBackground;
|
||||
- (UIColor *)brandLinkText;
|
||||
- (UIColor *)tenPercentLayer;
|
||||
- (UIColor *)snackbarBackground;
|
||||
- (UIColor *)themedBlue;
|
||||
- (UIColor *)themedGreen;
|
||||
- (UIColor *)staticBrandRed;
|
||||
- (UIColor *)staticBrandWhite;
|
||||
- (UIColor *)staticBrandBlack;
|
||||
- (UIColor *)staticClearColor;
|
||||
- (UIColor *)staticAdYellow;
|
||||
- (UIColor *)staticGrey;
|
||||
- (UIColor *)overlayBackgroundSolid;
|
||||
- (UIColor *)overlayBackgroundHeavy;
|
||||
- (UIColor *)overlayBackgroundMedium;
|
||||
- (UIColor *)overlayBackgroundMediumLight;
|
||||
- (UIColor *)overlayBackgroundLight;
|
||||
- (UIColor *)overlayTextPrimary;
|
||||
- (UIColor *)overlayTextSecondary;
|
||||
- (UIColor *)overlayTextTertiary;
|
||||
- (UIColor *)overlayIconActiveCallToAction;
|
||||
- (UIColor *)overlayIconActiveOther;
|
||||
- (UIColor *)overlayIconInactive;
|
||||
- (UIColor *)overlayIconDisabled;
|
||||
- (UIColor *)overlayFilledButtonActive;
|
||||
- (UIColor *)overlayButtonSecondary;
|
||||
- (UIColor *)overlayButtonPrimary;
|
||||
- (UIColor *)overlayBackgroundBrand;
|
||||
- (UIColor *)overlayBackgroundClear;
|
||||
- (UIColor *)verifiedBadgeBackground;
|
||||
- (UIColor *)themedOverlayBackground;
|
||||
- (UIColor *)adIndicator;
|
||||
- (UIColor *)errorIndicator; // 17.52.1+
|
||||
- (UIColor *)baseBackground; // 17.52.1+
|
||||
- (UIColor *)raisedBackground; // 17.52.1+
|
||||
- (UIColor *)menuBackground; // 17.52.1+
|
||||
- (UIColor *)invertedBackground; // 17.52.1+
|
||||
- (UIColor *)additiveBackground; // 17.52.1+
|
||||
- (UIColor *)outline; // 17.52.1+
|
||||
@end
|
||||
14
Tweaks/YouTubeHeader/YTCommonUtils.h
Normal file
14
Tweaks/YouTubeHeader/YTCommonUtils.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTCommonUtils : NSObject
|
||||
+ (BOOL)isIPhoneWithNotch;
|
||||
+ (BOOL)isIPad;
|
||||
+ (BOOL)isSmallDevice;
|
||||
+ (BOOL)isAppRunningInFullScreen;
|
||||
+ (unsigned int)uniformRandomWithUpperBound:(unsigned int)upperBound;
|
||||
+ (UIWindow *)mainWindow; // YTMainWindow
|
||||
+ (NSBundle *)bundleForClass:(Class)cls;
|
||||
+ (NSBundle *)resourceBundleForModuleName:(NSString *)module appBundle:(NSBundle *)appBundle;
|
||||
+ (NSString *)hardwareModel;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/YTContentVideoPlayerOverlayView.h
Normal file
4
Tweaks/YouTubeHeader/YTContentVideoPlayerOverlayView.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import "YTMainAppVideoPlayerOverlayView.h"
|
||||
|
||||
@interface YTContentVideoPlayerOverlayView : YTMainAppVideoPlayerOverlayView
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/YTELMContext.h
Normal file
5
Tweaks/YouTubeHeader/YTELMContext.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTELMContext : NSObject
|
||||
- (id)parentResponder;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/YTEditResources.h
Normal file
5
Tweaks/YouTubeHeader/YTEditResources.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTEditResources : NSObject
|
||||
+ (UIImage *)volumeControlsFeatureTabIconMuted:(BOOL)muted templateImage:(BOOL)templateImage;
|
||||
@end
|
||||
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTFullscreenEngagementActionBarButtonRenderer : NSObject
|
||||
- (BOOL)isLikeButton;
|
||||
- (BOOL)isDislikeButton;
|
||||
@end
|
||||
@@ -0,0 +1,7 @@
|
||||
#import "Block.h"
|
||||
#import "YTIFormattedStringLabel.h"
|
||||
|
||||
@interface YTFullscreenEngagementActionBarButtonView : UIView
|
||||
@property (nonatomic, assign, readwrite, getter=isToggled) BOOL toggled;
|
||||
@property (nonatomic, strong, readwrite) YTIFormattedStringLabel *label;
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/YTGlassContainerView.h
Normal file
4
Tweaks/YouTubeHeader/YTGlassContainerView.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTGlassContainerView : UIView
|
||||
@end
|
||||
4
Tweaks/YouTubeHeader/YTGlobalConfig.h
Normal file
4
Tweaks/YouTubeHeader/YTGlobalConfig.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTGlobalConfig : NSObject
|
||||
@end
|
||||
9
Tweaks/YouTubeHeader/YTHotConfig.h
Normal file
9
Tweaks/YouTubeHeader/YTHotConfig.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#import "YTIHotConfigGroup.h"
|
||||
#import "YTIHamplayerHotConfig.h"
|
||||
|
||||
@interface YTHotConfig : NSObject
|
||||
@property (atomic, strong, readwrite) YTIHotConfigGroup *hotConfigGroup;
|
||||
- (YTIIosMediaHotConfig *)mediaHotConfig;
|
||||
- (YTIHamplayerHotConfig *)hamplayerHotConfig;
|
||||
- (BOOL)iosReleasePipControllerOnMain;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/YTIAccessibilityData.h
Normal file
5
Tweaks/YouTubeHeader/YTIAccessibilityData.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTIAccessibilityData : NSObject
|
||||
@property (nonatomic, copy, readwrite) NSString *label;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/YTIBrowseEndpoint.h
Normal file
5
Tweaks/YouTubeHeader/YTIBrowseEndpoint.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTIBrowseEndpoint : NSObject
|
||||
@property (nonatomic, copy, readwrite) NSString *browseId;
|
||||
@end
|
||||
12
Tweaks/YouTubeHeader/YTIBrowseRequest.h
Normal file
12
Tweaks/YouTubeHeader/YTIBrowseRequest.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#import "GPBMessage.h"
|
||||
|
||||
@interface YTIBrowseRequest : GPBMessage
|
||||
+ (NSString *)browseIDForExploreTab;
|
||||
+ (NSString *)browseIDForAccountTab;
|
||||
+ (NSString *)browseIDForActivityTab;
|
||||
+ (NSString *)browseIDForHomeTab;
|
||||
+ (NSString *)browseIDForLibraryTab;
|
||||
+ (NSString *)browseIDForTrendingTab;
|
||||
+ (NSString *)browseIDForSubscriptionsTab;
|
||||
+ (NSString *)browseIDForWhatToWatch;
|
||||
@end
|
||||
15
Tweaks/YouTubeHeader/YTIButtonRenderer.h
Normal file
15
Tweaks/YouTubeHeader/YTIButtonRenderer.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#import "YTICommand.h"
|
||||
#import "YTIFormattedString.h"
|
||||
#import "YTIIcon.h"
|
||||
|
||||
@interface YTIButtonRenderer : NSObject
|
||||
@property (nonatomic, strong, readwrite) YTICommand *command;
|
||||
@property (nonatomic, strong, readwrite) YTIIcon *icon;
|
||||
@property (nonatomic, strong, readwrite) YTICommand *navigationEndpoint;
|
||||
@property (nonatomic, copy, readwrite) NSString *targetId;
|
||||
@property (nonatomic, strong, readwrite) YTIFormattedString *text;
|
||||
@property (nonatomic, copy, readwrite) NSString *tooltip;
|
||||
@property (nonatomic, assign, readwrite) int size;
|
||||
@property (nonatomic, assign, readwrite) int style;
|
||||
@property (nonatomic, assign, readwrite) BOOL isDisabled;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/YTIButtonSupportedRenderers.h
Normal file
7
Tweaks/YouTubeHeader/YTIButtonSupportedRenderers.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "YTIToggleButtonRenderer.h"
|
||||
#import "YTIButtonRenderer.h"
|
||||
|
||||
@interface YTIButtonSupportedRenderers : NSObject
|
||||
@property (nonatomic, strong, readwrite) YTIToggleButtonRenderer *toggleButtonRenderer;
|
||||
@property (retain, nonatomic) YTIButtonRenderer *buttonRenderer;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/YTIChapterRenderer.h
Normal file
7
Tweaks/YouTubeHeader/YTIChapterRenderer.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "GPBMessage.h"
|
||||
#import "YTIFormattedString.h"
|
||||
|
||||
@interface YTIChapterRenderer : GPBMessage
|
||||
@property (nonatomic, readwrite, strong) YTIFormattedString *title;
|
||||
@property (nonatomic, readwrite, assign) int timeRangeStartMillis;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/YTIColorInfo.h
Normal file
5
Tweaks/YouTubeHeader/YTIColorInfo.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTIColorInfo : NSObject
|
||||
@property (nonatomic, assign, readwrite) int transferCharacteristics;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/YTICommand.h
Normal file
7
Tweaks/YouTubeHeader/YTICommand.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "YTIReelWatchEndpoint.h"
|
||||
#import "YTIBrowseEndpoint.h"
|
||||
|
||||
@interface YTICommand : NSObject
|
||||
@property (nonatomic, readwrite, strong) YTIReelWatchEndpoint *reelWatchEndpoint;
|
||||
@property (nonatomic, readwrite, strong) YTIBrowseEndpoint *browseEndpoint;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/YTIElementRenderer.h
Normal file
6
Tweaks/YouTubeHeader/YTIElementRenderer.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import "YTIElementRendererCompatibilityOptions.h"
|
||||
|
||||
@interface YTIElementRenderer : GPBMessage
|
||||
@property (nonatomic, strong, readwrite) YTIElementRendererCompatibilityOptions *compatibilityOptions;
|
||||
@property (nonatomic, assign, readwrite) BOOL hasCompatibilityOptions;
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "GPBMessage.h"
|
||||
|
||||
@interface YTIElementRendererCompatibilityOptions : GPBMessage
|
||||
@property (nonatomic, assign, readwrite) BOOL hasAdLoggingData;
|
||||
@end
|
||||
6
Tweaks/YouTubeHeader/YTIFormatStream.h
Normal file
6
Tweaks/YouTubeHeader/YTIFormatStream.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import "YTIColorInfo.h"
|
||||
|
||||
@interface YTIFormatStream : NSObject
|
||||
@property (nonatomic, strong, readwrite) YTIColorInfo *colorInfo;
|
||||
@property (nonatomic, copy, readwrite) NSString *URL;
|
||||
@end
|
||||
8
Tweaks/YouTubeHeader/YTIFormattedString.h
Normal file
8
Tweaks/YouTubeHeader/YTIFormattedString.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import "YTIFormattedStringSupportedAccessibilityDatas.h"
|
||||
|
||||
@interface YTIFormattedString : NSObject
|
||||
+ (instancetype)formattedStringWithString:(NSString *)string;
|
||||
@property (nonatomic, strong, readwrite) NSMutableArray *runsArray;
|
||||
@property (nonatomic, strong, readwrite) YTIFormattedStringSupportedAccessibilityDatas *accessibility;
|
||||
- (NSString *)stringWithFormattingRemoved;
|
||||
@end
|
||||
7
Tweaks/YouTubeHeader/YTIFormattedStringLabel.h
Normal file
7
Tweaks/YouTubeHeader/YTIFormattedStringLabel.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "YTIFormattedString.h"
|
||||
|
||||
@interface YTIFormattedStringLabel : UILabel
|
||||
@property (nonatomic, copy, readwrite) NSAttributedString *attributedText;
|
||||
- (void)setFormattedString:(YTIFormattedString *)string;
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "YTIAccessibilityData.h"
|
||||
|
||||
@interface YTIFormattedStringSupportedAccessibilityDatas : NSObject
|
||||
@property (nonatomic, strong, readwrite) YTIAccessibilityData *accessibilityData;
|
||||
@end
|
||||
5
Tweaks/YouTubeHeader/YTIGuideResponse.h
Normal file
5
Tweaks/YouTubeHeader/YTIGuideResponse.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "YTIGuideResponseSupportedRenderers.h"
|
||||
|
||||
@interface YTIGuideResponse : NSObject
|
||||
- (NSMutableArray <YTIGuideResponseSupportedRenderers *> *)itemsArray;
|
||||
@end
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user