prepare for uYou v3.0.2+
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
#import <YouTubeHeader/YTAlertView.h>
|
|
||||||
#import "uYouPlus.h"
|
|
||||||
|
|
||||||
extern NSBundle *uYouPlusBundle();
|
|
||||||
|
|
||||||
// YTCastConfirm: https://github.com/JamieBerghmans/YTCastConfirm
|
|
||||||
%hook MDXPlaybackRouteButtonController
|
|
||||||
- (void)didPressButton:(id)arg1 {
|
|
||||||
if (IS_ENABLED(@"castConfirm_enabled")) {
|
|
||||||
NSBundle *tweakBundle = uYouPlusBundle();
|
|
||||||
YTAlertView *alertView = [%c(YTAlertView) confirmationDialogWithAction:^{
|
|
||||||
%orig;
|
|
||||||
} actionTitle:LOC(@"MSG_YES")];
|
|
||||||
alertView.title = LOC(@"CASTING");
|
|
||||||
alertView.subtitle = LOC(@"MSG_ARE_YOU_SURE");
|
|
||||||
[alertView show];
|
|
||||||
} else {
|
|
||||||
return %orig;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#import "uYouPlus.h"
|
|
||||||
|
|
||||||
%group YTStockVolumeHUD // https://github.com/lilacvibes/YTStockVolumeHUD
|
|
||||||
%hook YTVolumeBarView
|
|
||||||
- (void)volumeChanged:(id)arg1 {
|
|
||||||
%orig(nil);
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
%hook UIApplication
|
|
||||||
- (void)setSystemVolumeHUDEnabled:(BOOL)arg1 forAudioCategory:(id)arg2 {
|
|
||||||
%orig(true, arg2);
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
%end
|
|
||||||
|
|
||||||
%ctor {
|
|
||||||
if (IS_ENABLED(@"stockVolumeHUD_enabled")) {
|
|
||||||
%init(YTStockVolumeHUD);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+14
-7
@@ -54,7 +54,12 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||||||
// See YTMiniPlayerEnabler.x
|
// See YTMiniPlayerEnabler.x
|
||||||
|
|
||||||
// Use stock iOS volume HUD
|
// Use stock iOS volume HUD
|
||||||
// See YTStockVolumeHUD.xm
|
// Use YTColdConfig's method instead of YTStockVolumeHUD.xm, see https://x.com/PoomSmart/status/1756904290445332653
|
||||||
|
%hook YTColdConfig
|
||||||
|
- (BOOL)iosUseSystemVolumeControlInFullscreen {
|
||||||
|
return IS_ENABLED(@"stockVolumeHUD_enabled") ? YES : %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
# pragma mark - Video control overlay options
|
# pragma mark - Video control overlay options
|
||||||
|
|
||||||
@@ -102,12 +107,13 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
// Replace next and previous buttons with fast forward and rewind
|
// Replace next and previous buttons with fast forward and rewind
|
||||||
%group gReplacePreviousAndNextButton
|
// Not needed anymore because uYou v3.0.2+ added this features
|
||||||
%hook YTColdConfig
|
// %group gReplacePreviousAndNextButton
|
||||||
- (BOOL)replaceNextPaddleWithFastForwardButtonForSingletonVods { return YES; }
|
// %hook YTColdConfig
|
||||||
- (BOOL)replacePreviousPaddleWithRewindButtonForSingletonVods { return YES; }
|
// - (BOOL)replaceNextPaddleWithFastForwardButtonForSingletonVods { return YES; }
|
||||||
%end
|
// - (BOOL)replacePreviousPaddleWithRewindButtonForSingletonVods { return YES; }
|
||||||
%end
|
// %end
|
||||||
|
// %end
|
||||||
|
|
||||||
// Bring back the red progress bar - Broken?!
|
// Bring back the red progress bar - Broken?!
|
||||||
%hook YTInlinePlayerBarContainerView
|
%hook YTInlinePlayerBarContainerView
|
||||||
@@ -171,6 +177,7 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||||||
|
|
||||||
// YTCastConfirm
|
// YTCastConfirm
|
||||||
// See YTCastConfirm.xm
|
// See YTCastConfirm.xm
|
||||||
|
// Not needed anymore because uYou v3.0.2+ added this features
|
||||||
|
|
||||||
// Disable hints - https://github.com/LillieH001/YouTube-Reborn/blob/v4/
|
// Disable hints - https://github.com/LillieH001/YouTube-Reborn/blob/v4/
|
||||||
%group gDisableHints
|
%group gDisableHints
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ extern NSBundle *uYouPlusBundle();
|
|||||||
SWITCH_ITEM2(LOC(@"SNAP_TO_CHAPTER"), LOC(@"SNAP_TO_CHAPTER_DESC"), @"snapToChapter_enabled");
|
SWITCH_ITEM2(LOC(@"SNAP_TO_CHAPTER"), LOC(@"SNAP_TO_CHAPTER_DESC"), @"snapToChapter_enabled");
|
||||||
SWITCH_ITEM2(LOC(@"PINCH_TO_ZOOM"), LOC(@"PINCH_TO_ZOOM_DESC"), @"pinchToZoom_enabled");
|
SWITCH_ITEM2(LOC(@"PINCH_TO_ZOOM"), LOC(@"PINCH_TO_ZOOM_DESC"), @"pinchToZoom_enabled");
|
||||||
SWITCH_ITEM(LOC(@"YT_MINIPLAYER"), LOC(@"YT_MINIPLAYER_DESC"), @"ytMiniPlayer_enabled");
|
SWITCH_ITEM(LOC(@"YT_MINIPLAYER"), LOC(@"YT_MINIPLAYER_DESC"), @"ytMiniPlayer_enabled");
|
||||||
SWITCH_ITEM(LOC(@"STOCK_VOLUME_HUD"), LOC(@"STOCK_VOLUME_HUD_DESC"), @"stockVolumeHUD_enabled");
|
SWITCH_ITEM2(LOC(@"STOCK_VOLUME_HUD"), LOC(@"STOCK_VOLUME_HUD_DESC"), @"stockVolumeHUD_enabled");
|
||||||
|
|
||||||
# pragma mark - Video controls overlay options
|
# pragma mark - Video controls overlay options
|
||||||
SECTION_HEADER(LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS"));
|
SECTION_HEADER(LOC(@"VIDEO_CONTROLS_OVERLAY_OPTIONS"));
|
||||||
@@ -179,7 +179,7 @@ extern NSBundle *uYouPlusBundle();
|
|||||||
SWITCH_ITEM(LOC(@"HIDE_PAID_PROMOTION_CARDS"), LOC(@"HIDE_PAID_PROMOTION_CARDS_DESC"), @"hidePaidPromotionCard_enabled");
|
SWITCH_ITEM(LOC(@"HIDE_PAID_PROMOTION_CARDS"), LOC(@"HIDE_PAID_PROMOTION_CARDS_DESC"), @"hidePaidPromotionCard_enabled");
|
||||||
SWITCH_ITEM2(LOC(@"HIDE_CHANNEL_WATERMARK"), LOC(@"HIDE_CHANNEL_WATERMARK_DESC"), @"hideChannelWatermark_enabled");
|
SWITCH_ITEM2(LOC(@"HIDE_CHANNEL_WATERMARK"), LOC(@"HIDE_CHANNEL_WATERMARK_DESC"), @"hideChannelWatermark_enabled");
|
||||||
SWITCH_ITEM(LOC(@"HIDE_PREVIOUS_AND_NEXT_BUTTON"), LOC(@"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC"), @"hidePreviousAndNextButton_enabled");
|
SWITCH_ITEM(LOC(@"HIDE_PREVIOUS_AND_NEXT_BUTTON"), LOC(@"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC"), @"hidePreviousAndNextButton_enabled");
|
||||||
SWITCH_ITEM2(LOC(@"REPLACE_PREVIOUS_NEXT_BUTTON"), LOC(@"REPLACE_PREVIOUS_NEXT_BUTTON_DESC"), @"replacePreviousAndNextButton_enabled");
|
// SWITCH_ITEM2(LOC(@"REPLACE_PREVIOUS_NEXT_BUTTON"), LOC(@"REPLACE_PREVIOUS_NEXT_BUTTON_DESC"), @"replacePreviousAndNextButton_enabled");
|
||||||
SWITCH_ITEM2(LOC(@"RED_PROGRESS_BAR"), LOC(@"RED_PROGRESS_BAR_DESC"), @"redProgressBar_enabled");
|
SWITCH_ITEM2(LOC(@"RED_PROGRESS_BAR"), LOC(@"RED_PROGRESS_BAR_DESC"), @"redProgressBar_enabled");
|
||||||
SWITCH_ITEM(LOC(@"HIDE_HOVER_CARD"), LOC(@"HIDE_HOVER_CARD_DESC"), @"hideHoverCards_enabled");
|
SWITCH_ITEM(LOC(@"HIDE_HOVER_CARD"), LOC(@"HIDE_HOVER_CARD_DESC"), @"hideHoverCards_enabled");
|
||||||
SWITCH_ITEM2(LOC(@"HIDE_RIGHT_PANEL"), LOC(@"HIDE_RIGHT_PANEL_DESC"), @"hideRightPanel_enabled");
|
SWITCH_ITEM2(LOC(@"HIDE_RIGHT_PANEL"), LOC(@"HIDE_RIGHT_PANEL_DESC"), @"hideRightPanel_enabled");
|
||||||
|
|||||||
Reference in New Issue
Block a user