new options
This commit is contained in:
+21
@@ -98,6 +98,17 @@ extern NSBundle *uYouPlusBundle();
|
|||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
settingItemId:0],
|
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]];
|
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"VIDEO_PLAYER_OPTIONS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||||
[settingsViewController pushViewController:picker];
|
[settingsViewController pushViewController:picker];
|
||||||
@@ -287,6 +298,16 @@ extern NSBundle *uYouPlusBundle();
|
|||||||
}
|
}
|
||||||
settingItemId:0],
|
settingItemId:0],
|
||||||
|
|
||||||
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_SUBCRIPTIONS")
|
||||||
|
titleDescription:LOC(@"HIDE_SUBCRIPTIONS_DESC")
|
||||||
|
accessibilityIdentifier:nil
|
||||||
|
switchOn:IsEnabled(@"hideSubcriptions_enabled")
|
||||||
|
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideSubcriptions_enabled"];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
settingItemId:0],
|
||||||
|
|
||||||
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_UYOU_SHORTS_DOWNLOAD_BUTTON")
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_UYOU_SHORTS_DOWNLOAD_BUTTON")
|
||||||
titleDescription:LOC(@"HIDE_UYOU_SHORTS_DOWNLOAD_BUTTON_DESC")
|
titleDescription:LOC(@"HIDE_UYOU_SHORTS_DOWNLOAD_BUTTON_DESC")
|
||||||
accessibilityIdentifier:nil
|
accessibilityIdentifier:nil
|
||||||
|
|||||||
+25
@@ -846,6 +846,21 @@ void DEMC_centerRenderingView() {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// YTStockVolumeHUD - https://github.com/lilacvibes/YTStockVolumeHUD
|
||||||
|
%group gStockVolumeHUD
|
||||||
|
%hook YTVolumeBarView
|
||||||
|
- (void)volumeChanged:(id)arg1 {
|
||||||
|
%orig(nil);
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook UIApplication
|
||||||
|
- (void)setSystemVolumeHUDEnabled:(BOOL)arg1 forAudioCategory:(id)arg2 {
|
||||||
|
%orig(true, arg2);
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
// Video Controls Overlay Options
|
// Video Controls Overlay Options
|
||||||
// Hide CC / Autoplay switch
|
// Hide CC / Autoplay switch
|
||||||
%hook YTMainAppControlsOverlayView
|
%hook YTMainAppControlsOverlayView
|
||||||
@@ -942,6 +957,13 @@ void DEMC_centerRenderingView() {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%hook YTReelWatchRootViewController
|
||||||
|
- (void)setPausedStateCarouselView {
|
||||||
|
if (IsEnabled(@"hideSubcriptions_enabled")) {}
|
||||||
|
else { return %orig; }
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
%hook YTShortsStartupCoordinator
|
%hook YTShortsStartupCoordinator
|
||||||
- (id)evaluateResumeToShorts {
|
- (id)evaluateResumeToShorts {
|
||||||
return IsEnabled(@"disableResumeToShorts") ? nil : %orig;
|
return IsEnabled(@"disableResumeToShorts") ? nil : %orig;
|
||||||
@@ -1349,6 +1371,9 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||||||
if (IsEnabled(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
|
if (IsEnabled(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
|
||||||
%init(giPhoneLayout);
|
%init(giPhoneLayout);
|
||||||
}
|
}
|
||||||
|
if (IsEnabled(@"stockVolumeHUD_enabled")) {
|
||||||
|
%init(gStockVolumeHUD);
|
||||||
|
}
|
||||||
|
|
||||||
// Disable updates
|
// Disable updates
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"automaticallyCheckForUpdates"];
|
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"automaticallyCheckForUpdates"];
|
||||||
|
|||||||
Reference in New Issue
Block a user