Enable Reorder videos from playlist by @PoomSmart

This commit is contained in:
qnblackcat
2022-07-20 08:44:23 +07:00
parent f325a31196
commit f4bf32bcad
+8 -1
View File
@@ -68,11 +68,18 @@ BOOL castConfirm() {
BOOL ytMiniPlayer() { BOOL ytMiniPlayer() {
return [[NSUserDefaults standardUserDefaults] boolForKey:@"ytMiniPlayer_enabled"]; return [[NSUserDefaults standardUserDefaults] boolForKey:@"ytMiniPlayer_enabled"];
} }
BOOL hidePaidPromotionCard(){ BOOL hidePaidPromotionCard() {
return [[NSUserDefaults standardUserDefaults] boolForKey:@"hidePaidPromotionCard_enabled"]; return [[NSUserDefaults standardUserDefaults] boolForKey:@"hidePaidPromotionCard_enabled"];
} }
# pragma mark - Tweaks # pragma mark - Tweaks
// Enable Reorder videos from playlist while on the Watch page - @PoomSmart
%hook YTIPlaylistPanelVideoRenderer
%new
- (BOOL)canReorder { return YES; }
%end
//
// YTMiniPlayerEnabler: https://github.com/level3tjg/YTMiniplayerEnabler/ // YTMiniPlayerEnabler: https://github.com/level3tjg/YTMiniplayerEnabler/
%hook YTWatchMiniBarViewController %hook YTWatchMiniBarViewController
- (void)updateMiniBarPlayerStateFromRenderer { - (void)updateMiniBarPlayerStateFromRenderer {