mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 12:33:57 -04:00 
			
		
		
		
	Re-added YTSpeed Tweak
This commit is contained in:
		| @@ -18,7 +18,7 @@ static int colorContrastMode() { | ||||
| static int appVersionSpoofer() { | ||||
|     return [[NSUserDefaults standardUserDefaults] integerForKey:@"versionSpoofer"]; | ||||
| } | ||||
| static const NSInteger YTLitePlusSection = 500; | ||||
| static const NSInteger YTLitePlusSection = 788; | ||||
|  | ||||
| @interface YTSettingsSectionItemManager (YTLitePlus) | ||||
| - (void)updateYTLitePlusSectionWithEntry:(id)entry; | ||||
| @@ -64,35 +64,6 @@ extern NSBundle *YTLitePlusBundle(); | ||||
|     }]; | ||||
|     [sectionItems addObject:main]; | ||||
|  | ||||
| # pragma mark - VideoPlayer | ||||
|     YTSettingsSectionItem *videoPlayerGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"VIDEO_PLAYER_OPTIONS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { | ||||
|         NSArray <YTSettingsSectionItem *> *rows = @[ | ||||
|             [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"YT_MINIPLAYER") | ||||
|                 titleDescription:LOC(@"YT_MINIPLAYER_DESC") | ||||
|                 accessibilityIdentifier:nil | ||||
|                 switchOn:IsEnabled(@"ytMiniPlayer_enabled") | ||||
|                 switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { | ||||
|                     [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"ytMiniPlayer_enabled"]; | ||||
|                     return YES; | ||||
|                 } | ||||
|                 settingItemId:0], | ||||
|  | ||||
|             [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"STOCK_VOLUME_HUD") | ||||
|                 titleDescription:LOC(@"STOCK_VOLUME_HUD_DESC") | ||||
|                 accessibilityIdentifier:nil | ||||
|                 switchOn:IsEnabled(@"stockVolumeHUD_enabled") | ||||
|                 switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { | ||||
|                     [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"stockVolumeHUD_enabled"]; | ||||
|                     return YES; | ||||
|                 } | ||||
|                 settingItemId:0] | ||||
|         ]; | ||||
|         YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"VIDEO_PLAYER_OPTIONS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]]; | ||||
|         [settingsViewController pushViewController:picker]; | ||||
|         return YES; | ||||
|     }]; | ||||
|     [sectionItems addObject:videoPlayerGroup]; | ||||
|  | ||||
| # pragma mark - Video Controls Overlay Options | ||||
|     YTSettingsSectionItem *videoControlOverlayGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { | ||||
|         NSArray <YTSettingsSectionItem *> *rows = @[ | ||||
| @@ -430,6 +401,16 @@ extern NSBundle *YTLitePlusBundle(); | ||||
|                 } | ||||
|                 settingItemId:0], | ||||
|  | ||||
|             [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"STOCK_VOLUME_HUD") | ||||
|                 titleDescription:LOC(@"STOCK_VOLUME_HUD_DESC") | ||||
|                 accessibilityIdentifier:nil | ||||
|                 switchOn:IsEnabled(@"stockVolumeHUD_enabled") | ||||
|                 switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { | ||||
|                     [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"stockVolumeHUD_enabled"]; | ||||
|                     return YES; | ||||
|                 } | ||||
|                 settingItemId:0], | ||||
|  | ||||
|             [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_CAST_BUTTON") | ||||
|                 titleDescription:LOC(@"HIDE_CAST_BUTTON_DESC") | ||||
|                 accessibilityIdentifier:nil | ||||
| @@ -459,7 +440,17 @@ extern NSBundle *YTLitePlusBundle(); | ||||
|                     return YES; | ||||
|                 } | ||||
|                 settingItemId:0], | ||||
|                  | ||||
|  | ||||
|             [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"YT_SPEED") | ||||
|                 titleDescription:LOC(@"YT_SPEED_DESC") | ||||
|                 accessibilityIdentifier:nil | ||||
|                 switchOn:IsEnabled(@"ytSpeed_enabled") | ||||
|                 switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { | ||||
|                     [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"ytSpeed_enabled"]; | ||||
|                     return YES; | ||||
|                 } | ||||
|                 settingItemId:0], | ||||
|  | ||||
|             [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"ENABLE_FLEX") | ||||
|                 titleDescription:LOC(@"ENABLE_FLEX_DESC") | ||||
|                 accessibilityIdentifier:nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 arichorn
					arichorn