an actually workaround for issue #54
This commit is contained in:
+9
-8
@@ -222,15 +222,14 @@ BOOL ytMiniPlayer() {
|
|||||||
- (BOOL)shouldEnablePlayerBar { return YES; }
|
- (BOOL)shouldEnablePlayerBar { return YES; }
|
||||||
%end
|
%end
|
||||||
|
|
||||||
/*
|
|
||||||
// Hide the download playlist button of uYou cuz it's broken ?!
|
// Hide the download playlist button of uYou cuz it's broken ?!
|
||||||
// Why aren't you working?? :/
|
// Why aren't you working?? :/
|
||||||
%hook YTPlaylistHeaderViewController
|
// %hook YTPlaylistHeaderViewController
|
||||||
- (void)viewDidLoad {
|
// - (void)viewDidLoad {
|
||||||
%orig;
|
// %orig;
|
||||||
self.downloadsButton.hidden = YES;
|
// self.downloadsButton.hidden = YES;
|
||||||
}
|
// }
|
||||||
%end
|
// %end
|
||||||
|
|
||||||
// Workaround for issue #54
|
// Workaround for issue #54
|
||||||
%hook YTMainAppVideoPlayerOverlayViewController
|
%hook YTMainAppVideoPlayerOverlayViewController
|
||||||
@@ -239,7 +238,6 @@ BOOL ytMiniPlayer() {
|
|||||||
else { return %orig; }
|
else { return %orig; }
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
*/
|
|
||||||
|
|
||||||
# pragma mark - IAmYouTube - https://github.com/PoomSmart/IAmYouTube/
|
# pragma mark - IAmYouTube - https://github.com/PoomSmart/IAmYouTube/
|
||||||
%hook YTVersionUtils
|
%hook YTVersionUtils
|
||||||
@@ -627,6 +625,9 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||||||
# pragma mark - ctor
|
# pragma mark - ctor
|
||||||
%ctor {
|
%ctor {
|
||||||
%init;
|
%init;
|
||||||
|
if (![[[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys] containsObject:@"relatedVideosAtTheEndOfYTVideos"]) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"relatedVideosAtTheEndOfYTVideos"];
|
||||||
|
}
|
||||||
if (oled()) {
|
if (oled()) {
|
||||||
%init(gOLED);
|
%init(gOLED);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user