mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-10-30 12:33:57 -04:00
added files via upload
This commit is contained in:
32
Tweaks/iSponsorBlock/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
32
Tweaks/iSponsorBlock/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: Galactic-Dev
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Please complete the following information:**
|
||||
- iOS Version: [e.g. 14.3]
|
||||
- Device: [e.g. iPhone X]
|
||||
- YouTube Version [e.g. 16.11.3]
|
||||
- iSponsorBlock Version [e.g. 1.0-7]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
20
Tweaks/iSponsorBlock/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
Tweaks/iSponsorBlock/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
16
Tweaks/iSponsorBlock/.gitignore
vendored
Normal file
16
Tweaks/iSponsorBlock/.gitignore
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/theos-tweak
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=theos-tweak
|
||||
|
||||
### THEOS-Tweak ###
|
||||
._*
|
||||
*.deb
|
||||
.debmake
|
||||
_
|
||||
obj
|
||||
.theos
|
||||
.DS_Store
|
||||
|
||||
### XCode stuff
|
||||
*.xcworkspace
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/theos-tweak
|
||||
3
Tweaks/iSponsorBlock/.gitmodules
vendored
Normal file
3
Tweaks/iSponsorBlock/.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "Headers/YouTubeHeader"]
|
||||
path = Headers/YouTubeHeader
|
||||
url = https://github.com/PoomSmart/YouTubeHeader
|
||||
37
Tweaks/iSponsorBlock/Headers/ColorFunctions.h
Normal file
37
Tweaks/iSponsorBlock/Headers/ColorFunctions.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
//https://stackoverflow.com/a/26341062
|
||||
static NSString *hexFromUIColor(UIColor *color) {
|
||||
const CGFloat *components = CGColorGetComponents(color.CGColor);
|
||||
|
||||
CGFloat r = components[0];
|
||||
CGFloat g = components[1];
|
||||
CGFloat b = components[2];
|
||||
|
||||
return [NSString stringWithFormat:@"#%02lX%02lX%02lX",
|
||||
lroundf(r * 255),
|
||||
lroundf(g * 255),
|
||||
lroundf(b * 255)];
|
||||
}
|
||||
|
||||
static CGFloat colorComponentFrom(NSString *string, NSUInteger start, NSUInteger length) {
|
||||
NSString *substring = [string substringWithRange: NSMakeRange(start, length)];
|
||||
NSString *fullHex = length == 2 ? substring : [NSString stringWithFormat: @"%@%@", substring, substring];
|
||||
unsigned hexComponent;
|
||||
[[NSScanner scannerWithString: fullHex] scanHexInt: &hexComponent];
|
||||
return hexComponent / 255.0;
|
||||
}
|
||||
|
||||
static UIColor *colorWithHexString(NSString *hexString) {
|
||||
NSString *colorString = [[hexString stringByReplacingOccurrencesOfString: @"#" withString: @""] uppercaseString];
|
||||
|
||||
CGFloat alpha, red, blue, green;
|
||||
|
||||
// #RGB
|
||||
alpha = 1.0f;
|
||||
red = colorComponentFrom(colorString,0,2);
|
||||
green = colorComponentFrom(colorString,2,2);
|
||||
blue = colorComponentFrom(colorString,4,2);
|
||||
|
||||
return [UIColor colorWithRed: red green: green blue: blue alpha: alpha];
|
||||
}
|
||||
8
Tweaks/iSponsorBlock/Headers/Localization.h
Normal file
8
Tweaks/iSponsorBlock/Headers/Localization.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
extern NSBundle *iSponsorBlockBundle();
|
||||
|
||||
static inline NSString *LOC(NSString *key) {
|
||||
NSBundle *tweakBundle = iSponsorBlockBundle();
|
||||
return [tweakBundle localizedStringForKey:key value:nil table:nil];
|
||||
}
|
||||
411
Tweaks/iSponsorBlock/Headers/MBProgressHUD.h
Normal file
411
Tweaks/iSponsorBlock/Headers/MBProgressHUD.h
Normal file
@@ -0,0 +1,411 @@
|
||||
//
|
||||
// MBProgressHUD.h
|
||||
// Version 1.2.0
|
||||
// Created by Matej Bukovinski on 2.4.09.
|
||||
//
|
||||
|
||||
// This code is distributed under the terms and conditions of the MIT license.
|
||||
|
||||
// Copyright © 2009-2020 Matej Bukovinski
|
||||
//
|
||||
// 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.
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <CoreGraphics/CoreGraphics.h>
|
||||
|
||||
@class MBBackgroundView;
|
||||
@protocol MBProgressHUDDelegate;
|
||||
|
||||
|
||||
extern CGFloat const MBProgressMaxOffset;
|
||||
|
||||
typedef NS_ENUM(NSInteger, MBProgressHUDMode) {
|
||||
/// UIActivityIndicatorView.
|
||||
MBProgressHUDModeIndeterminate,
|
||||
/// A round, pie-chart like, progress view.
|
||||
MBProgressHUDModeDeterminate,
|
||||
/// Horizontal progress bar.
|
||||
MBProgressHUDModeDeterminateHorizontalBar,
|
||||
/// Ring-shaped progress view.
|
||||
MBProgressHUDModeAnnularDeterminate,
|
||||
/// Shows a custom view.
|
||||
MBProgressHUDModeCustomView,
|
||||
/// Shows only labels.
|
||||
MBProgressHUDModeText
|
||||
};
|
||||
|
||||
typedef NS_ENUM(NSInteger, MBProgressHUDAnimation) {
|
||||
/// Opacity animation
|
||||
MBProgressHUDAnimationFade,
|
||||
/// Opacity + scale animation (zoom in when appearing zoom out when disappearing)
|
||||
MBProgressHUDAnimationZoom,
|
||||
/// Opacity + scale animation (zoom out style)
|
||||
MBProgressHUDAnimationZoomOut,
|
||||
/// Opacity + scale animation (zoom in style)
|
||||
MBProgressHUDAnimationZoomIn
|
||||
};
|
||||
|
||||
typedef NS_ENUM(NSInteger, MBProgressHUDBackgroundStyle) {
|
||||
/// Solid color background
|
||||
MBProgressHUDBackgroundStyleSolidColor,
|
||||
/// UIVisualEffectView or UIToolbar.layer background view
|
||||
MBProgressHUDBackgroundStyleBlur
|
||||
};
|
||||
|
||||
typedef void (^MBProgressHUDCompletionBlock)(void);
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
/**
|
||||
* Displays a simple HUD window containing a progress indicator and two optional labels for short messages.
|
||||
*
|
||||
* This is a simple drop-in class for displaying a progress HUD view similar to Apple's private UIProgressHUD class.
|
||||
* The MBProgressHUD window spans over the entire space given to it by the initWithFrame: constructor and catches all
|
||||
* user input on this region, thereby preventing the user operations on components below the view.
|
||||
*
|
||||
* @note To still allow touches to pass through the HUD, you can set hud.userInteractionEnabled = NO.
|
||||
* @attention MBProgressHUD is a UI class and should therefore only be accessed on the main thread.
|
||||
*/
|
||||
@interface MBProgressHUD : UIView
|
||||
|
||||
/**
|
||||
* Creates a new HUD, adds it to provided view and shows it. The counterpart to this method is hideHUDForView:animated:.
|
||||
*
|
||||
* @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when hidden.
|
||||
*
|
||||
* @param view The view that the HUD will be added to
|
||||
* @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
|
||||
* animations while appearing.
|
||||
* @return A reference to the created HUD.
|
||||
*
|
||||
* @see hideHUDForView:animated:
|
||||
* @see animationType
|
||||
*/
|
||||
+ (instancetype)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;
|
||||
|
||||
/// @name Showing and hiding
|
||||
|
||||
/**
|
||||
* Finds the top-most HUD subview that hasn't finished and hides it. The counterpart to this method is showHUDAddedTo:animated:.
|
||||
*
|
||||
* @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when hidden.
|
||||
*
|
||||
* @param view The view that is going to be searched for a HUD subview.
|
||||
* @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
|
||||
* animations while disappearing.
|
||||
* @return YES if a HUD was found and removed, NO otherwise.
|
||||
*
|
||||
* @see showHUDAddedTo:animated:
|
||||
* @see animationType
|
||||
*/
|
||||
+ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;
|
||||
|
||||
/**
|
||||
* Finds the top-most HUD subview that hasn't finished and returns it.
|
||||
*
|
||||
* @param view The view that is going to be searched.
|
||||
* @return A reference to the last HUD subview discovered.
|
||||
*/
|
||||
+ (nullable MBProgressHUD *)HUDForView:(UIView *)view NS_SWIFT_NAME(forView(_:));
|
||||
|
||||
/**
|
||||
* A convenience constructor that initializes the HUD with the view's bounds. Calls the designated constructor with
|
||||
* view.bounds as the parameter.
|
||||
*
|
||||
* @param view The view instance that will provide the bounds for the HUD. Should be the same instance as
|
||||
* the HUD's superview (i.e., the view that the HUD will be added to).
|
||||
*/
|
||||
- (instancetype)initWithView:(UIView *)view;
|
||||
|
||||
/**
|
||||
* Displays the HUD.
|
||||
*
|
||||
* @note You need to make sure that the main thread completes its run loop soon after this method call so that
|
||||
* the user interface can be updated. Call this method when your task is already set up to be executed in a new thread
|
||||
* (e.g., when using something like NSOperation or making an asynchronous call like NSURLRequest).
|
||||
*
|
||||
* @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
|
||||
* animations while appearing.
|
||||
*
|
||||
* @see animationType
|
||||
*/
|
||||
- (void)showAnimated:(BOOL)animated;
|
||||
|
||||
/**
|
||||
* Hides the HUD. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
|
||||
* hide the HUD when your task completes.
|
||||
*
|
||||
* @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
|
||||
* animations while disappearing.
|
||||
*
|
||||
* @see animationType
|
||||
*/
|
||||
- (void)hideAnimated:(BOOL)animated;
|
||||
|
||||
/**
|
||||
* Hides the HUD after a delay. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
|
||||
* hide the HUD when your task completes.
|
||||
*
|
||||
* @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
|
||||
* animations while disappearing.
|
||||
* @param delay Delay in seconds until the HUD is hidden.
|
||||
*
|
||||
* @see animationType
|
||||
*/
|
||||
- (void)hideAnimated:(BOOL)animated afterDelay:(NSTimeInterval)delay;
|
||||
|
||||
/**
|
||||
* The HUD delegate object. Receives HUD state notifications.
|
||||
*/
|
||||
@property (weak, nonatomic) id<MBProgressHUDDelegate> delegate;
|
||||
|
||||
/**
|
||||
* Called after the HUD is hidden.
|
||||
*/
|
||||
@property (copy, nullable) MBProgressHUDCompletionBlock completionBlock;
|
||||
|
||||
/**
|
||||
* Grace period is the time (in seconds) that the invoked method may be run without
|
||||
* showing the HUD. If the task finishes before the grace time runs out, the HUD will
|
||||
* not be shown at all.
|
||||
* This may be used to prevent HUD display for very short tasks.
|
||||
* Defaults to 0 (no grace time).
|
||||
* @note The graceTime needs to be set before the hud is shown. You thus can't use `showHUDAddedTo:animated:`,
|
||||
* but instead need to alloc / init the HUD, configure the grace time and than show it manually.
|
||||
*/
|
||||
@property (assign, nonatomic) NSTimeInterval graceTime;
|
||||
|
||||
/**
|
||||
* The minimum time (in seconds) that the HUD is shown.
|
||||
* This avoids the problem of the HUD being shown and than instantly hidden.
|
||||
* Defaults to 0 (no minimum show time).
|
||||
*/
|
||||
@property (assign, nonatomic) NSTimeInterval minShowTime;
|
||||
|
||||
/**
|
||||
* Removes the HUD from its parent view when hidden.
|
||||
* Defaults to NO.
|
||||
*/
|
||||
@property (assign, nonatomic) BOOL removeFromSuperViewOnHide;
|
||||
|
||||
/// @name Appearance
|
||||
|
||||
/**
|
||||
* MBProgressHUD operation mode. The default is MBProgressHUDModeIndeterminate.
|
||||
*/
|
||||
@property (assign, nonatomic) MBProgressHUDMode mode;
|
||||
|
||||
/**
|
||||
* A color that gets forwarded to all labels and supported indicators. Also sets the tintColor
|
||||
* for custom views on iOS 7+. Set to nil to manage color individually.
|
||||
* Defaults to semi-translucent black on iOS 7 and later and white on earlier iOS versions.
|
||||
*/
|
||||
@property (strong, nonatomic, nullable) UIColor *contentColor UI_APPEARANCE_SELECTOR;
|
||||
|
||||
/**
|
||||
* The animation type that should be used when the HUD is shown and hidden.
|
||||
*/
|
||||
@property (assign, nonatomic) MBProgressHUDAnimation animationType UI_APPEARANCE_SELECTOR;
|
||||
|
||||
/**
|
||||
* The bezel offset relative to the center of the view. You can use MBProgressMaxOffset
|
||||
* and -MBProgressMaxOffset to move the HUD all the way to the screen edge in each direction.
|
||||
* E.g., CGPointMake(0.f, MBProgressMaxOffset) would position the HUD centered on the bottom edge.
|
||||
*/
|
||||
@property (assign, nonatomic) CGPoint offset UI_APPEARANCE_SELECTOR;
|
||||
|
||||
/**
|
||||
* The amount of space between the HUD edge and the HUD elements (labels, indicators or custom views).
|
||||
* This also represents the minimum bezel distance to the edge of the HUD view.
|
||||
* Defaults to 20.f
|
||||
*/
|
||||
@property (assign, nonatomic) CGFloat margin UI_APPEARANCE_SELECTOR;
|
||||
|
||||
/**
|
||||
* The minimum size of the HUD bezel. Defaults to CGSizeZero (no minimum size).
|
||||
*/
|
||||
@property (assign, nonatomic) CGSize minSize UI_APPEARANCE_SELECTOR;
|
||||
|
||||
/**
|
||||
* Force the HUD dimensions to be equal if possible.
|
||||
*/
|
||||
@property (assign, nonatomic, getter = isSquare) BOOL square UI_APPEARANCE_SELECTOR;
|
||||
|
||||
/**
|
||||
* When enabled, the bezel center gets slightly affected by the device accelerometer data.
|
||||
* Defaults to NO.
|
||||
*
|
||||
* @note This can cause main thread checker assertions on certain devices. https://github.com/jdg/MBProgressHUD/issues/552
|
||||
*/
|
||||
@property (assign, nonatomic, getter=areDefaultMotionEffectsEnabled) BOOL defaultMotionEffectsEnabled UI_APPEARANCE_SELECTOR;
|
||||
|
||||
/// @name Progress
|
||||
|
||||
/**
|
||||
* The progress of the progress indicator, from 0.0 to 1.0. Defaults to 0.0.
|
||||
*/
|
||||
@property (assign, nonatomic) float progress;
|
||||
|
||||
/// @name ProgressObject
|
||||
|
||||
/**
|
||||
* The NSProgress object feeding the progress information to the progress indicator.
|
||||
*/
|
||||
@property (strong, nonatomic, nullable) NSProgress *progressObject;
|
||||
|
||||
/// @name Views
|
||||
|
||||
/**
|
||||
* The view containing the labels and indicator (or customView).
|
||||
*/
|
||||
@property (strong, nonatomic, readonly) MBBackgroundView *bezelView;
|
||||
|
||||
/**
|
||||
* View covering the entire HUD area, placed behind bezelView.
|
||||
*/
|
||||
@property (strong, nonatomic, readonly) MBBackgroundView *backgroundView;
|
||||
|
||||
/**
|
||||
* The UIView (e.g., a UIImageView) to be shown when the HUD is in MBProgressHUDModeCustomView.
|
||||
* The view should implement intrinsicContentSize for proper sizing. For best results use approximately 37 by 37 pixels.
|
||||
*/
|
||||
@property (strong, nonatomic, nullable) UIView *customView;
|
||||
|
||||
/**
|
||||
* A label that holds an optional short message to be displayed below the activity indicator. The HUD is automatically resized to fit
|
||||
* the entire text.
|
||||
*/
|
||||
@property (strong, nonatomic, readonly) UILabel *label;
|
||||
|
||||
/**
|
||||
* A label that holds an optional details message displayed below the labelText message. The details text can span multiple lines.
|
||||
*/
|
||||
@property (strong, nonatomic, readonly) UILabel *detailsLabel;
|
||||
|
||||
/**
|
||||
* A button that is placed below the labels. Visible only if a target / action is added and a title is assigned..
|
||||
*/
|
||||
@property (strong, nonatomic, readonly) UIButton *button;
|
||||
@property (strong, nonatomic, readonly) UIButton *cancelButton;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@protocol MBProgressHUDDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
/**
|
||||
* Called after the HUD was fully hidden from the screen.
|
||||
*/
|
||||
- (void)hudWasHidden:(MBProgressHUD *)hud;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
/**
|
||||
* A progress view for showing definite progress by filling up a circle (pie chart).
|
||||
*/
|
||||
@interface MBRoundProgressView : UIView
|
||||
|
||||
/**
|
||||
* Progress (0.0 to 1.0)
|
||||
*/
|
||||
@property (nonatomic, assign) float progress;
|
||||
|
||||
/**
|
||||
* Indicator progress color.
|
||||
* Defaults to white [UIColor whiteColor].
|
||||
*/
|
||||
@property (nonatomic, strong) UIColor *progressTintColor;
|
||||
|
||||
/**
|
||||
* Indicator background (non-progress) color.
|
||||
* Only applicable on iOS versions older than iOS 7.
|
||||
* Defaults to translucent white (alpha 0.1).
|
||||
*/
|
||||
@property (nonatomic, strong) UIColor *backgroundTintColor;
|
||||
|
||||
/*
|
||||
* Display mode - NO = round or YES = annular. Defaults to round.
|
||||
*/
|
||||
@property (nonatomic, assign, getter = isAnnular) BOOL annular;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
/**
|
||||
* A flat bar progress view.
|
||||
*/
|
||||
@interface MBBarProgressView : UIView
|
||||
|
||||
/**
|
||||
* Progress (0.0 to 1.0)
|
||||
*/
|
||||
@property (nonatomic, assign) float progress;
|
||||
|
||||
/**
|
||||
* Bar border line color.
|
||||
* Defaults to white [UIColor whiteColor].
|
||||
*/
|
||||
@property (nonatomic, strong) UIColor *lineColor;
|
||||
|
||||
/**
|
||||
* Bar background color.
|
||||
* Defaults to clear [UIColor clearColor];
|
||||
*/
|
||||
@property (nonatomic, strong) UIColor *progressRemainingColor;
|
||||
|
||||
/**
|
||||
* Bar progress color.
|
||||
* Defaults to white [UIColor whiteColor].
|
||||
*/
|
||||
@property (nonatomic, strong) UIColor *progressColor;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@interface MBBackgroundView : UIView
|
||||
|
||||
/**
|
||||
* The background style.
|
||||
* Defaults to MBProgressHUDBackgroundStyleBlur.
|
||||
*/
|
||||
@property (nonatomic) MBProgressHUDBackgroundStyle style;
|
||||
|
||||
/**
|
||||
* The blur effect style, when using MBProgressHUDBackgroundStyleBlur.
|
||||
* Defaults to UIBlurEffectStyleLight.
|
||||
*/
|
||||
@property (nonatomic) UIBlurEffectStyle blurEffectStyle;
|
||||
|
||||
/**
|
||||
* The background color or the blur tint color.
|
||||
*
|
||||
* Defaults to nil on iOS 13 and later and
|
||||
* `[UIColor colorWithWhite:0.8f alpha:0.6f]`
|
||||
* on older systems.
|
||||
*/
|
||||
@property (nonatomic, strong, nullable) UIColor *color;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
11
Tweaks/iSponsorBlock/Headers/SponsorBlockRequest.h
Normal file
11
Tweaks/iSponsorBlock/Headers/SponsorBlockRequest.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "iSponsorBlock.h"
|
||||
#import <objc/runtime.h>
|
||||
|
||||
@interface SponsorBlockRequest : NSObject
|
||||
+(void)getSponsorTimes:(NSString *)videoID completionTarget:(id)target completionSelector:(SEL)sel apiInstance:(NSString *)apiInstance;
|
||||
+(void)postSponsorTimes:(NSString *)videoID sponsorSegments:(NSArray <SponsorSegment *> *)segments userID:(NSString *)userID withViewController:(UIViewController *)viewController;
|
||||
+(void)normalVoteForSegment:(SponsorSegment *)segment userID:(NSString *)userID type:(BOOL)type withViewController:(UIViewController *)viewController;
|
||||
+(void)categoryVoteForSegment:(SponsorSegment *)segment userID:(NSString *)userID category:(NSString *)category withViewController:(UIViewController *)viewController;
|
||||
+(void)viewedVideoSponsorTime:(SponsorSegment *)segment;
|
||||
@end
|
||||
@@ -0,0 +1,52 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <objc/runtime.h>
|
||||
#import <rootless.h>
|
||||
#import "ColorFunctions.h"
|
||||
|
||||
@protocol HBColorPickerDelegate <NSObject>
|
||||
@optional -(void)colorPicker:(id)colorPicker didSelectColor:(UIColor *)color;
|
||||
@end
|
||||
|
||||
@interface UIView ()
|
||||
- (UIViewController *)_viewControllerForAncestor;
|
||||
@end
|
||||
|
||||
@interface UITableViewCell ()
|
||||
- (UITextField *)editableTextField;
|
||||
- (id)_indexPath;
|
||||
@end
|
||||
|
||||
@interface UISegment : UIView
|
||||
@end
|
||||
|
||||
@interface HBColorPickerConfiguration
|
||||
@property (nonatomic, assign) BOOL supportsAlpha;
|
||||
@end
|
||||
|
||||
@interface HBColorPickerViewController : UIViewController
|
||||
@property (strong, nonatomic) NSObject <HBColorPickerDelegate> *delegate;
|
||||
@property (strong, nonatomic) HBColorPickerConfiguration *configuration;
|
||||
@end
|
||||
|
||||
@interface HBColorWell : UIControl
|
||||
@property (nonatomic, assign) BOOL isDragInteractionEnabled;
|
||||
@property (nonatomic, assign) BOOL isDropInteractionEnabled;
|
||||
@property (strong, nonatomic) UIColor *color;
|
||||
@end
|
||||
|
||||
@interface SponsorBlockTableCell : UITableViewCell <HBColorPickerDelegate>
|
||||
@property (strong, nonatomic) NSString *category;
|
||||
@property (strong, nonatomic) UIColor *color;
|
||||
@property (strong, nonatomic) HBColorWell *colorWell;
|
||||
@end
|
||||
|
||||
@interface SponsorBlockSettingsController : UIViewController <UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate>
|
||||
@property (nonatomic, strong) NSString *tweakTitle;
|
||||
@property (strong, nonatomic) UITableView *tableView;
|
||||
@property (strong, nonatomic) NSArray *sectionTitles;
|
||||
@property (strong, nonatomic) NSMutableDictionary *settings;
|
||||
@property (strong, nonatomic) NSString *settingsPath;
|
||||
- (void)enabledSwitchToggled:(UISwitch *)sender;
|
||||
- (void)switchToggled:(UISwitch *)sender;
|
||||
- (void)categorySegmentSelected:(UISegmentedControl *)segmentedControl;
|
||||
@end
|
||||
19
Tweaks/iSponsorBlock/Headers/SponsorBlockViewController.h
Normal file
19
Tweaks/iSponsorBlock/Headers/SponsorBlockViewController.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "SponsorSegmentView.h"
|
||||
#import "iSponsorBlock.h"
|
||||
|
||||
@interface SponsorBlockViewController : UIViewController <UIContextMenuInteractionDelegate>
|
||||
@property (strong, nonatomic) YTPlayerViewController *playerViewController;
|
||||
@property (strong, nonatomic) UIViewController *previousParentViewController;
|
||||
@property (strong, nonatomic) YTMainAppControlsOverlayView *overlayView;
|
||||
@property (strong, nonatomic) UIButton *startEndSegmentButton;
|
||||
@property (strong, nonatomic) UILabel *segmentsInDatabaseLabel;
|
||||
@property (strong, nonatomic) UILabel *userSegmentsLabel;
|
||||
@property (strong, nonatomic) UIButton *submitSegmentsButton;
|
||||
@property (strong, nonatomic) NSMutableArray <SponsorSegmentView *> *sponsorSegmentViews;
|
||||
@property (strong, nonatomic) NSMutableArray <SponsorSegmentView *> *userSponsorSegmentViews;
|
||||
@property (strong, nonatomic) UILabel *whitelistChannelLabel;
|
||||
- (void)startEndSegmentButtonPressed:(UIButton *)sender;
|
||||
- (NSMutableArray *)segmentViewsForSegments:(NSArray <SponsorSegment *> *)segments editable:(BOOL)editable;
|
||||
- (void)setupViews;
|
||||
@end
|
||||
10
Tweaks/iSponsorBlock/Headers/SponsorSegment.h
Normal file
10
Tweaks/iSponsorBlock/Headers/SponsorSegment.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface SponsorSegment : NSObject
|
||||
@property (nonatomic, assign) CGFloat startTime;
|
||||
@property (nonatomic, assign) CGFloat endTime;
|
||||
@property (strong, nonatomic) NSString *category;
|
||||
@property (strong, nonatomic) NSString *UUID;
|
||||
- (instancetype)initWithStartTime:(CGFloat)startTime endTime:(CGFloat)endTime category:(NSString *)category UUID:(NSString *)UUID;
|
||||
@end
|
||||
11
Tweaks/iSponsorBlock/Headers/SponsorSegmentView.h
Normal file
11
Tweaks/iSponsorBlock/Headers/SponsorSegmentView.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "SponsorSegment.h"
|
||||
#import "SponsorBlockRequest.h"
|
||||
|
||||
@interface SponsorSegmentView : UIView
|
||||
@property (strong, nonatomic) SponsorSegment *sponsorSegment;
|
||||
@property (nonatomic, assign) BOOL editable;
|
||||
@property (strong, nonatomic) UILabel *segmentLabel;
|
||||
@property (strong, nonatomic) UILabel *categoryLabel;
|
||||
- (instancetype)initWithFrame:(CGRect)frame sponsorSegment:(SponsorSegment *)segment editable:(BOOL)editable;
|
||||
@end
|
||||
2
Tweaks/iSponsorBlock/Headers/YouTubeHeader/.gitattributes
vendored
Normal file
2
Tweaks/iSponsorBlock/Headers/YouTubeHeader/.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
2
Tweaks/iSponsorBlock/Headers/YouTubeHeader/.gitignore
vendored
Normal file
2
Tweaks/iSponsorBlock/Headers/YouTubeHeader/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
.DS_Store
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ASCollectionElement : NSObject
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface ASCollectionView : UICollectionView
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import "ASDisplayNode.h"
|
||||
|
||||
@interface ASControlNode : ASDisplayNode
|
||||
@end
|
||||
21
Tweaks/iSponsorBlock/Headers/YouTubeHeader/ASDisplayNode.h
Normal file
21
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ASNodeContext : NSObject
|
||||
- (instancetype)initWithOptions:(unsigned char)options;
|
||||
- (unsigned char)options;
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ASNodeController : NSObject
|
||||
@end
|
||||
5
Tweaks/iSponsorBlock/Headers/YouTubeHeader/ASTextNode.h
Normal file
5
Tweaks/iSponsorBlock/Headers/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/iSponsorBlock/Headers/YouTubeHeader/ELMCellNode.h
Normal file
6
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -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/iSponsorBlock/Headers/YouTubeHeader/ELMElement.h
Normal file
6
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "ASNodeController.h"
|
||||
|
||||
@interface ELMNodeController : ASNodeController
|
||||
- (const void *)materializationContext;
|
||||
@end
|
||||
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ELMNodeFactory : NSObject
|
||||
+ (instancetype)sharedInstance;
|
||||
- (id)nodeWithElement:(id)element materializationContext:(const void *)context;
|
||||
@end
|
||||
7
Tweaks/iSponsorBlock/Headers/YouTubeHeader/ELMTextNode.h
Normal file
7
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GIMBindingBuilder : NSObject
|
||||
- (instancetype)bindType:(Class)typeClass;
|
||||
- (instancetype)initializedWith:(id (^)(id))block;
|
||||
@end
|
||||
8
Tweaks/iSponsorBlock/Headers/YouTubeHeader/GIMMe.h
Normal file
8
Tweaks/iSponsorBlock/Headers/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/iSponsorBlock/Headers/YouTubeHeader/GOOAlertView.h
Normal file
19
Tweaks/iSponsorBlock/Headers/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/iSponsorBlock/Headers/YouTubeHeader/GOOModalView.h
Normal file
18
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GPBExtensionDescriptor : NSObject
|
||||
- (Class)msgClass;
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GPBExtensionRegistry : NSObject
|
||||
- (void)addExtension:(id)extension;
|
||||
@end
|
||||
5
Tweaks/iSponsorBlock/Headers/YouTubeHeader/GPBMessage.h
Normal file
5
Tweaks/iSponsorBlock/Headers/YouTubeHeader/GPBMessage.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GPBMessage : NSObject
|
||||
- (id)firstSubmessage;
|
||||
@end
|
||||
@@ -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/iSponsorBlock/Headers/YouTubeHeader/HAMMIMEType.h
Normal file
6
Tweaks/iSponsorBlock/Headers/YouTubeHeader/HAMMIMEType.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface HAMMIMEType : NSObject
|
||||
- (unsigned int)audioCodec;
|
||||
- (unsigned int)videoCodec;
|
||||
@end
|
||||
@@ -0,0 +1,2 @@
|
||||
@protocol HAMPixelBufferRenderingView
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <AVKit/AVKit.h>
|
||||
|
||||
@interface HAMSBDLSampleBufferRenderingView : UIView
|
||||
@property (retain, nonatomic, readonly) AVSampleBufferDisplayLayer *displayLayer;
|
||||
@end
|
||||
21
Tweaks/iSponsorBlock/Headers/YouTubeHeader/LICENSE
Normal file
21
Tweaks/iSponsorBlock/Headers/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/iSponsorBlock/Headers/YouTubeHeader/MLABRPolicy.h
Normal file
5
Tweaks/iSponsorBlock/Headers/YouTubeHeader/MLABRPolicy.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLABRPolicy : NSObject
|
||||
- (void)requestFormatReselection;
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "MLFormat.h"
|
||||
|
||||
@interface MLABRPolicyFormatData : NSObject
|
||||
- (instancetype)initWithFormat:(MLFormat *)format;
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "MLABRPolicy.h"
|
||||
|
||||
// YouTube 17.30.3 and higher
|
||||
@interface MLABRPolicyNew : MLABRPolicy
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "MLABRPolicy.h"
|
||||
|
||||
// YouTube 17.30.3 and higher
|
||||
@interface MLABRPolicyOld : MLABRPolicy
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <AVKit/AVKit.h>
|
||||
|
||||
@interface MLAVAssetPlayer : NSObject
|
||||
- (AVPlayerItem *)playerItem;
|
||||
@end
|
||||
@@ -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/iSponsorBlock/Headers/YouTubeHeader/MLAVPlayer.h
Normal file
15
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "MLPlayerViewProtocol.h"
|
||||
#import "HAMPixelBufferRenderingView.h"
|
||||
|
||||
@interface MLAVPlayerLayerView : UIView <MLPlayerViewProtocol, HAMPixelBufferRenderingView>
|
||||
@end
|
||||
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@protocol MLAVPlayerViewDelegate <NSObject>
|
||||
@required
|
||||
- (void)playerViewErrorDidOccur:(id)arg1;
|
||||
@end
|
||||
@@ -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/iSponsorBlock/Headers/YouTubeHeader/MLFormat.h
Normal file
17
Tweaks/iSponsorBlock/Headers/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/iSponsorBlock/Headers/YouTubeHeader/MLHAMPlayer.h
Normal file
7
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -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
|
||||
@@ -0,0 +1,7 @@
|
||||
#import "MLVideo.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
|
||||
@protocol MLHAMPlayerViewProtocol
|
||||
- (void)makeActivePlayer;
|
||||
- (void)setVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig;
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import "MLHAMPlayer.h"
|
||||
|
||||
@interface MLHAMQueuePlayer : MLHAMPlayer
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import "HAMSBDLSampleBufferRenderingView.h"
|
||||
|
||||
@interface MLHAMSBDLSampleBufferRenderingView : HAMSBDLSampleBufferRenderingView
|
||||
@end
|
||||
@@ -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
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLOnesieVideoData : NSObject
|
||||
@end
|
||||
24
Tweaks/iSponsorBlock/Headers/YouTubeHeader/MLPIPController.h
Normal file
24
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -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
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLPlayerPoolImpl : NSObject
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLPlayerStickySettings : NSObject
|
||||
@property (assign) float rate;
|
||||
@end
|
||||
@@ -0,0 +1,7 @@
|
||||
#import "MLVideo.h"
|
||||
#import "MLInnerTubePlayerConfig.h"
|
||||
|
||||
@protocol MLPlayerViewProtocol
|
||||
- (void)makeActivePlayer;
|
||||
- (void)setVideo:(MLVideo *)video playerConfig:(MLInnerTubePlayerConfig *)playerConfig;
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLQOEPingController : NSObject
|
||||
@end
|
||||
@@ -0,0 +1,6 @@
|
||||
#import "YTIFormatStream.h"
|
||||
#import "MLFormat.h"
|
||||
|
||||
@interface MLRemoteStream : MLFormat
|
||||
+ (instancetype)streamWithFormatStream:(YTIFormatStream *)formatStream;
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "MLRemoteStream.h"
|
||||
|
||||
@interface MLStreamingData : NSObject
|
||||
- (NSArray <MLRemoteStream *> *)adaptiveStreams;
|
||||
@end
|
||||
7
Tweaks/iSponsorBlock/Headers/YouTubeHeader/MLVideo.h
Normal file
7
Tweaks/iSponsorBlock/Headers/YouTubeHeader/MLVideo.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#import "MLStreamingData.h"
|
||||
#import "YTIVideoDetails.h"
|
||||
|
||||
@interface MLVideo : NSObject
|
||||
- (MLStreamingData *)streamingData;
|
||||
- (YTIVideoDetails *)videoDetails;
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MLVideoDecoderFactory : NSObject
|
||||
@end
|
||||
6
Tweaks/iSponsorBlock/Headers/YouTubeHeader/QTMIcon.h
Normal file
6
Tweaks/iSponsorBlock/Headers/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/iSponsorBlock/Headers/YouTubeHeader/README.md
Normal file
3
Tweaks/iSponsorBlock/Headers/YouTubeHeader/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# YouTubeHeader
|
||||
|
||||
Headers for iOS YouTube app.
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "ASDisplayNode.h"
|
||||
|
||||
@interface UIView (AsyncDisplayKit)
|
||||
- (void)addSubnode:(ASDisplayNode *)subnode;
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface UIView (YouTube)
|
||||
- (BOOL)yt_isVisible;
|
||||
@end
|
||||
@@ -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
|
||||
@@ -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/iSponsorBlock/Headers/YouTubeHeader/YTAlertView.h
Normal file
6
Tweaks/iSponsorBlock/Headers/YouTubeHeader/YTAlertView.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import "GOOAlertView.h"
|
||||
|
||||
@interface YTAlertView : GOOAlertView
|
||||
+ (instancetype)yt_dialog;
|
||||
- (void)removeDefaultPadding;
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTAppDelegate : UIResponder
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTAppSettingsSectionItemActionController : NSObject
|
||||
@end
|
||||
@@ -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
|
||||
@@ -0,0 +1,4 @@
|
||||
#import "ASCollectionView.h"
|
||||
|
||||
@interface YTAsyncCollectionView : ASCollectionView
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTAutonavEndscreenController : NSObject
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTBackgroundabilityPolicy : NSObject
|
||||
- (void)addBackgroundabilityPolicyObserver:(id)observer;
|
||||
@end
|
||||
@@ -0,0 +1,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "YTCollectionViewCellProtocol.h"
|
||||
|
||||
@interface YTCellController : NSObject
|
||||
@property (nonatomic, weak, readwrite) UICollectionViewCell <YTCollectionViewCellProtocol> *cell;
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTColdConfig : NSObject
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "YTSlideForActionsView.h"
|
||||
|
||||
@interface YTCollectionViewCell : UICollectionViewCell
|
||||
@property (nonatomic, strong, readwrite) YTSlideForActionsView *slideForActionsView;
|
||||
@end
|
||||
@@ -0,0 +1,2 @@
|
||||
@protocol YTCollectionViewCellProtocol
|
||||
@end
|
||||
8
Tweaks/iSponsorBlock/Headers/YouTubeHeader/YTColor.h
Normal file
8
Tweaks/iSponsorBlock/Headers/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/iSponsorBlock/Headers/YouTubeHeader/YTColorPalette.h
Normal file
67
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -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/iSponsorBlock/Headers/YouTubeHeader/YTCommonUtils.h
Normal file
14
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -0,0 +1,4 @@
|
||||
#import "YTMainAppVideoPlayerOverlayView.h"
|
||||
|
||||
@interface YTContentVideoPlayerOverlayView : YTMainAppVideoPlayerOverlayView
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTELMContext : NSObject
|
||||
- (id)parentResponder;
|
||||
@end
|
||||
@@ -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
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface YTGlassContainerView : UIView
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTGlobalConfig : NSObject
|
||||
@end
|
||||
9
Tweaks/iSponsorBlock/Headers/YouTubeHeader/YTHotConfig.h
Normal file
9
Tweaks/iSponsorBlock/Headers/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
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTIAccessibilityData : NSObject
|
||||
@property (nonatomic, copy, readwrite) NSString *label;
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface YTIBrowseEndpoint : NSObject
|
||||
@property (nonatomic, copy, readwrite) NSString *browseId;
|
||||
@end
|
||||
@@ -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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user