diff --git a/Localizations/uYouPlus.bundle/en.lproj/Localizable.strings b/Localizations/uYouPlus.bundle/en.lproj/Localizable.strings index f29a94d..ecbb217 100644 --- a/Localizations/uYouPlus.bundle/en.lproj/Localizable.strings +++ b/Localizations/uYouPlus.bundle/en.lproj/Localizable.strings @@ -70,7 +70,7 @@ "HIDE_CHANNEL_WATERMARK_DESC" = ""; "HIDE_PREVIOUS_AND_NEXT_BUTTON" = "Hide previous and next buttons"; -"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = ""; +"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = "Hides on all videos, including playlists"; "REPLACE_PREVIOUS_NEXT_BUTTON" = "Use fast forward and rewind buttons"; "REPLACE_PREVIOUS_NEXT_BUTTON_DESC" = "Replaces previous and next buttons with fast forward and rewind"; diff --git a/Localizations/uYouPlus.bundle/template.lproj/Localizable.strings b/Localizations/uYouPlus.bundle/template.lproj/Localizable.strings index 6c47637..843849c 100644 --- a/Localizations/uYouPlus.bundle/template.lproj/Localizable.strings +++ b/Localizations/uYouPlus.bundle/template.lproj/Localizable.strings @@ -85,7 +85,7 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap "HIDE_CHANNEL_WATERMARK_DESC" = ""; "HIDE_PREVIOUS_AND_NEXT_BUTTON" = "Hide previous and next buttons"; -"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = ""; +"HIDE_PREVIOUS_AND_NEXT_BUTTON_DESC" = "Hides on all videos, including playlists"; "REPLACE_PREVIOUS_NEXT_BUTTON" = "Use fast forward and rewind buttons"; "REPLACE_PREVIOUS_NEXT_BUTTON_DESC" = "Replaces previous and next buttons with fast forward and rewind"; diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 4de2ac5..78491f4 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -617,26 +617,16 @@ static NSString *accessGroupID() { } %end -// Hide Next & Previous button %group gHidePreviousAndNextButton +// Hide Next & Previous button for All Videos %hook YTColdConfig -- (BOOL)removeNextPaddleForSingletonVideos { return YES; } -- (BOOL)removePreviousPaddleForSingletonVideos { return YES; } -- (BOOL)removeNextPaddleForAllVideos { return YES; } -- (BOOL)removePreviousPaddleForAllVideos { return YES; } +- (BOOL)removeNextPaddleForAllVideos { + return YES; +} +- (BOOL)removePreviousPaddleForAllVideos { + return YES; +} %end - -// %hook YTMainAppControlsOverlayView // this is only used for v16.xx.x (issues if using with YouTube v17.xx.x up to latest) -// - (void)layoutSubviews { // hide Next & Previous legacy buttons -// %orig; -// if (IsEnabled(@"hidePreviousAndNextButton_enabled")) { -// MSHookIvar(self, "_nextButton").hidden = YES; -// MSHookIvar(self, "_previousButton").hidden = YES; -// MSHookIvar(self, "_nextButtonView").hidden = YES; -// MSHookIvar(self, "_previousButtonView").hidden = YES; -// } -// } -// %end %end // Hide Dark Overlay Background