Updated “YouTube Premium Logo” Credits

This commit is contained in:
arichornlover 2024-04-03 17:59:14 -05:00 committed by GitHub
parent a23a03fc22
commit 4a9a2e4048
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,8 +147,7 @@ BOOL isAd(YTIElementRenderer *self) {
%end
%end
// YouTube Premium Logo - @arichornlover - this doesn't always function
// Modern implementation - @bhackel
// YouTube Premium Logo - @arichornlover & bhackel
%group gPremiumYouTubeLogo
%hook YTHeaderLogoController
- (void)setTopbarLogoRenderer:(id)renderer {
@ -252,6 +251,7 @@ BOOL isAd(YTIElementRenderer *self) {
%hook YTColdConfig
- (BOOL)respectDeviceCaptionSetting { return NO; } // YouRememberCaption: https://poomsmart.github.io/repo/depictions/youremembercaption.html
- (BOOL)isLandscapeEngagementPanelSwipeRightToDismissEnabled { return YES; } // Swipe right to dismiss the right panel in fullscreen mode
- (BOOL)enableModularPlayerBarController { return NO; } // fixes some of the iSponorBlock problems
%end
// NOYTPremium - https://github.com/PoomSmart/NoYTPremium/
@ -691,7 +691,7 @@ BOOL isAd(YTIElementRenderer *self) {
}
%end
// Hide Fullscreen Button - @arichornlover
// Hide Fullscreen Button - @arichornlover - YouQuality is Incompatibile with this Option
%hook YTInlinePlayerBarContainerView
- (void)layoutSubviews {
%orig;
@ -878,7 +878,7 @@ BOOL isAd(YTIElementRenderer *self) {
}
%end
// Red Subscribe Button - @arichorn
// Red Subscribe Button - @arichornlover
%hook ELMContainerNode
- (void)setBackgroundColor:(id)color {
NSString *description = [self description];
@ -887,7 +887,7 @@ BOOL isAd(YTIElementRenderer *self) {
color = [UIColor redColor];
}
}
// Hide the Button Containers under the Video Player - 17.x.x and up - @arichorn
// Hide the Button Containers under the Video Player - 17.x.x and up - @arichornlover
if (IS_ENABLED(@"hideButtonContainers_enabled")) {
if ([description containsString:@"id.video.like.button"] ||
[description containsString:@"id.video.dislike.button"] ||
@ -1192,7 +1192,7 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
%end
%end
// Hide Videos in Fullscreen - @arichorn
// Hide Videos in Fullscreen - @arichornlover
%group gNoVideosInFullscreen
%hook YTFullScreenEngagementOverlayView
- (void)setRelatedVideosView:(id)view {
@ -1213,7 +1213,7 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
%end
%end
// iPhone Layout - @LillieH1000 & @arichorn
// iPhone Layout - @LillieH1000 & @arichornlover
%group giPhoneLayout
%hook UIDevice
- (long long)userInterfaceIdiom {