Update description, cleanup

This commit is contained in:
Bryce Hackel 2024-02-25 15:32:38 -08:00
parent 597f5c2085
commit 69feafa8e2
No known key found for this signature in database
GPG key ID: F031960F08455E88
3 changed files with 9 additions and 19 deletions

View file

@ -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";

View file

@ -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";

View file

@ -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<YTMainAppControlsOverlayView *>(self, "_nextButton").hidden = YES;
// MSHookIvar<YTMainAppControlsOverlayView *>(self, "_previousButton").hidden = YES;
// MSHookIvar<YTTransportControlsButtonView *>(self, "_nextButtonView").hidden = YES;
// MSHookIvar<YTTransportControlsButtonView *>(self, "_previousButtonView").hidden = YES;
// }
// }
// %end
%end
// Hide Dark Overlay Background