mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Update description, cleanup
This commit is contained in:
parent
597f5c2085
commit
69feafa8e2
3 changed files with 9 additions and 19 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue