mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-29 20:20:41 -04:00 
			
		
		
		
	Disable warning popup
This commit is contained in:
		| @@ -130,6 +130,10 @@ typedef NS_ENUM(NSUInteger, GestureSection) { | |||||||
| @property (nonatomic, assign, readwrite) BOOL enableSnapToChapter; | @property (nonatomic, assign, readwrite) BOOL enableSnapToChapter; | ||||||
| @end | @end | ||||||
|  |  | ||||||
|  | // Hide YouTube Plus incompatibility warning popup - @bhackel | ||||||
|  | @interface HelperVC : UIViewController | ||||||
|  | @end  | ||||||
|  |  | ||||||
| // Hide Autoplay Mini Preview - @bhackel | // Hide Autoplay Mini Preview - @bhackel | ||||||
| @interface YTAutonavPreviewView : UIView | @interface YTAutonavPreviewView : UIView | ||||||
| @end | @end | ||||||
|   | |||||||
| @@ -110,12 +110,8 @@ BOOL isSelf() { | |||||||
| } | } | ||||||
| %end | %end | ||||||
|  |  | ||||||
| # pragma mark - Hide SponsorBlock Button | // Hide SponsorBlock Button in navigation bar | ||||||
| %hook YTRightNavigationButtons | %hook YTRightNavigationButtons | ||||||
| - (void)didMoveToWindow { |  | ||||||
|     %orig; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| - (void)layoutSubviews { | - (void)layoutSubviews { | ||||||
|     %orig; |     %orig; | ||||||
|     if (IsEnabled(@"hideSponsorBlockButton_enabled")) {  |     if (IsEnabled(@"hideSponsorBlockButton_enabled")) {  | ||||||
| @@ -174,6 +170,18 @@ BOOL isSelf() { | |||||||
| %end | %end | ||||||
| %end | %end | ||||||
|  |  | ||||||
|  | // Disable YouTube Plus incompatibility warning popup - @bhackel | ||||||
|  | %hook HelperVC | ||||||
|  | - (void)viewDidLoad { | ||||||
|  |     %orig; | ||||||
|  |     // Check if it responds to the selector riskButtonTapped | ||||||
|  |     if ([self respondsToSelector:@selector(riskButtonTapped)]) { | ||||||
|  |         // Call the selector riskButtonTapped | ||||||
|  |         [self performSelector:@selector(riskButtonTapped)]; | ||||||
|  |     } | ||||||
|  | } | ||||||
|  | %end | ||||||
|  |  | ||||||
|  |  | ||||||
| // A/B flags | // A/B flags | ||||||
| %hook YTColdConfig  | %hook YTColdConfig  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bryce Hackel
					Bryce Hackel