From 2472547f866de55115004394d0ff588f9bd177ad Mon Sep 17 00:00:00 2001 From: Balackburn <93828569+Balackburn@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:52:40 +0200 Subject: [PATCH] removed duplicate tweaks already in YTLite --- .github/RELEASE_TEMPLATE/Release.md | 2 +- Header.h | 27 --------- README.md | 31 +++------- YTLitePlus.xm | 92 ----------------------------- 4 files changed, 10 insertions(+), 142 deletions(-) diff --git a/.github/RELEASE_TEMPLATE/Release.md b/.github/RELEASE_TEMPLATE/Release.md index 158d172..05984de 100644 --- a/.github/RELEASE_TEMPLATE/Release.md +++ b/.github/RELEASE_TEMPLATE/Release.md @@ -39,4 +39,4 @@ Current App Compatibility: `iOS/iPadOS 14.0` or later ### Issues in this Release: - LowContrastMode doesn't work (it work with older YT version) -- YTClassicVideoQuality + YTSpeed not working (both broken in v18.19.1+) \ No newline at end of file +- YTSpeed not working (both broken in v18.19.1+) \ No newline at end of file diff --git a/Header.h b/Header.h index fc38ccd..350de15 100644 --- a/Header.h +++ b/Header.h @@ -77,16 +77,6 @@ @property (nonatomic, assign, readwrite) BOOL enableSnapToChapter; @end -// Cercube button in Nav bar -@interface MDCButton : UIButton -@end - -@interface YTRightNavigationButtons : UIView -@property (nonatomic, strong, readwrite) MDCButton *cercubeButton; -@property YTQTMButton *notificationButton; -@property YTQTMButton *sponsorBlockButton; -@end - // IAmYouTube @interface SSOConfiguration : NSObject @end @@ -104,23 +94,6 @@ - (void)autoFullscreen; @end -// YTNoShorts -@interface ELMCellNode -@end - -@interface _ASCollectionViewCell : UICollectionViewCell -- (id)node; -@end - -@interface YTAsyncCollectionView : UICollectionView -- (void)removeShortsCellAtIndexPath:(NSIndexPath *)indexPath; -@end - -@interface YTPlayerView : UIView -- (void)downloadVideo; -@end - - // App Theme @interface YCHLiveChatView : UIView @end diff --git a/README.md b/README.md index 9920afb..2ced3ef 100644 --- a/README.md +++ b/README.md @@ -187,11 +187,7 @@ Special thanks to all the developers who have contributed to CercubePlus/YTLiteP
and many more...! -6. **YTClassicVideoQuality:** since YouTube v16.xx, you need one more step to change the video quality. YTClassicVideoQuality brings back the old video quality selector, which is a lot better than the new one. - -7. **YTNoHoverCards:** offer an option to enable/disable the annoying suggested videos show up at the end of the videos. - -8. **YTABGoodies:** allow you to disable some YouTube A/B testing features. It is a combination of several tweaks, such as: +6. **YTABGoodies:** allow you to disable some YouTube A/B testing features. It is a combination of several tweaks, such as: - YouAreThere: disable "Video paused. Continue watching?" popup in the YouTube app when you play a long video. @@ -199,23 +195,19 @@ Special thanks to all the developers who have contributed to CercubePlus/YTLiteP - YTNoCheckLocalNetwork: block the Local Network permission popup. -9. **NOYTPremium:** remove YouTube Premium upsell alerts. +7. **YTSpeed**: a toggleable tweak to add 2.25x, 2.5x, 2.75x, 3x, 3.25x, 3.5x, 3.75x, 4x & 5x playback speed options in the video player. -10. **YTSpeed**: a toggleable tweak to add 2.25x, 2.5x, 2.75x, 3x, 3.25x, 3.5x, 3.75x, 4x & 5x playback speed options in the video player. +8. **YTMiniplayerEnabler**: enable Miniplayer for all YouTube videos. -11. **YTMiniplayerEnabler**: enable Miniplayer for all YouTube videos. +9. **DontEatMyContent**: prevent the notch/Dynamic Island from munching on 2:1 video content in YouTube. -12. **DontEatMyContent**: prevent the notch/Dynamic Island from munching on 2:1 video content in YouTube. +10. **YTABConfig**: allow user to control over YouTube A/B testing flags. -13. **YTShortsProgress**: always enable progress bar and scrubbing in YouTube Shorts (iPhone only). +11. **YouMute**: Mute/unmute videos in the YouTube Video Player directly. -14. **YTABConfig**: allow user to control over YouTube A/B testing flags. +12. **YTNoCommunityPosts**: this can disable all the Community Posts on the YouTube app. -15. **YouMute**: Mute/unmute videos in the YouTube Video Player directly. - -16. **YTNoCommunityPosts**: this can disable all the Community Posts on the YouTube app. - -17. **LowContrastMode**: makes the YouTube Interface Low Contrast as possible to make it easier on the eyes. +13. **LowContrastMode**: makes the YouTube Interface Low Contrast as possible to make it easier on the eyes. any many more...
@@ -224,9 +216,7 @@ any many more... 1. **YTLite**: -- Hide Cast button is not working. (Workaround: Hide cast button in CercubePlus settings) - -- The Updated Dark Mode in the YouTube App is not Present or Working in YTLite v5.3.13 & older versions +- Hide Cast button is not working. (Workaround: Hide cast button in YTLitePlus settings) 2. **LowContrastMode**: this tweak doesn't work everywhere with every ui element on the YouTube App. @@ -266,7 +256,6 @@ any many more... | **YTNoShorts** | [MiRO92](https://twitter.com/miro92) | 1.0.2 | [✔︎](https://github.com/MiRO92/YTNoShorts) | | **iSponsorBlock** | [Galactic-Dev](https://github.com/Galactic-Dev) | 1.0-15 | [✔︎](https://github.com/Galactic-Dev/iSponsorBlock) | | **BigYTMiniPlayer** | [Galactic-Dev](https://github.com/Galactic-Dev) | 1.0-1 | [✔︎](https://github.com/Galactic-Dev/BigYTMiniPlayer) | -| **YTNoHoverCards** | [level3tjg](https://twitter.com/level3tjg) | 0.0.3 | [✔︎](https://github.com/level3tjg/YTNoHoverCards) | | **YTMiniplayerEnabler** | [level3tjg](https://twitter.com/level3tjg) | 0.0.2 | [✔︎](https://github.com/level3tjg/YTMiniplayerEnabler) | | **DontEatMyContent** | [therealFoxster](https://github.com/therealFoxster) | 1.0.6 | [✔︎](https://github.com/therealFoxster/DontEatMyContent) | | **LowContrastMode** | arichorn | 1.2.3 | [✔︎](https://github.com/arichorn/LowContrastMode) | @@ -277,10 +266,8 @@ any many more... | **YTNoCommunityPosts** | [michael-winay](https://github.com/michael-winay) | 0.0.1 | [✔︎](https://github.com/michael-winay/YTNoCommunityPosts) | | **IAmYouTube** | PoomSmart | 1.2.0 | [✔︎](https://github.com/PoomSmart/IAmYouTube) | | **YTReExplore** | PoomSmart | 1.0.2 | [✔︎](https://github.com/PoomSmart/YTReExplore) | -| **NoYTPremium** | PoomSmart | 1.0.4 | [✔︎](https://github.com/PoomSmart/NoYTPremium) | | **YTNoPaidPromo** | PoomSmart | 1.0.0 | [✔︎](https://github.com/PoomSmart/YTNoPaidPromo) | | **YTAutoFullScreen** | PoomSmart | 1.0.3 | [✔︎](https://github.com/PoomSmart/YTAutoFullScreen) | -| **YTShortsProgress** | PoomSmart | 1.0.2 | [✔︎](https://github.com/PoomSmart/YTShortsProgress) | | **Return YouTube Dislike** | PoomSmart | 1.11.3 | [✔︎](https://github.com/PoomSmart/Return-YouTube-Dislikes) | diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 3b89059..ce12f04 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -236,55 +236,6 @@ static BOOL IsEnabled(NSString *key) { %end %end -// NOYTPremium - https://github.com/PoomSmart/NoYTPremium/ -%hook YTCommerceEventGroupHandler -- (void)addEventHandlers {} -%end - -%hook YTInterstitialPromoEventGroupHandler -- (void)addEventHandlers {} -%end - -%hook YTPromosheetEventGroupHandler -- (void)addEventHandlers {} -%end - -%hook YTPromoThrottleController -- (BOOL)canShowThrottledPromo { return NO; } -- (BOOL)canShowThrottledPromoWithFrequencyCap:(id)arg1 { return NO; } -- (BOOL)canShowThrottledPromoWithFrequencyCaps:(id)arg1 { return NO; } -%end - -%hook YTIShowFullscreenInterstitialCommand -- (BOOL)shouldThrottleInterstitial { return YES; } -%end - -%hook YTSurveyController -- (void)showSurveyWithRenderer:(id)arg1 surveyParentResponder:(id)arg2 {} -%end - -// YTShortsProgress - @PoomSmart - https://github.com/PoomSmart/YTShortsProgress -%hook YTReelPlayerViewController -- (BOOL)shouldEnablePlayerBar { return YES; } -- (BOOL)shouldAlwaysEnablePlayerBar { return YES; } -- (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; } -%end - -%hook YTReelPlayerViewControllerSub -- (BOOL)shouldEnablePlayerBar { return YES; } -- (BOOL)shouldAlwaysEnablePlayerBar { return YES; } -- (BOOL)shouldEnablePlayerBarOnlyOnPause { return NO; } -%end - -%hook YTColdConfig -- (BOOL)iosEnableVideoPlayerScrubber { return YES; } -- (BOOL)mobileShortsTabInlined { return YES; } -%end - -%hook YTHotConfig -- (BOOL)enablePlayerBarForVerticalVideoWhenControlsHiddenInFullscreen { return YES; } -%end - // YTNoModernUI - @arichorn %group gYTNoModernUI %hook YTVersionUtils // YTNoModernUI Version @@ -429,23 +380,6 @@ static BOOL IsEnabled(NSString *key) { - (BOOL)isPromptForLocalNetworkPermissionsEnabled { return NO; } %end -// YTClassicVideoQuality - https://github.com/PoomSmart/YTClassicVideoQuality -%hook YTVideoQualitySwitchControllerFactory -- (id)videoQualitySwitchControllerWithParentResponder:(id)responder { - Class originalClass = %c(YTVideoQualitySwitchOriginalController); - return originalClass ? [[originalClass alloc] initWithParentResponder:responder] : %orig; -} -%end - -// YTNoHoverCards: https://github.com/level3tjg/YTNoHoverCards -%hook YTCreatorEndscreenView -- (void)setHidden:(BOOL)hidden { - if (IsEnabled(@"hideHoverCards_enabled")) - hidden = YES; - %orig; -} -%end - // YTNoPaidPromo: https://github.com/PoomSmart/YTNoPaidPromo %hook YTMainAppVideoPlayerOverlayViewController - (void)setPaidContentWithPlayerData:(id)data { @@ -679,32 +613,6 @@ static void replaceTab(YTIGuideResponse *response) { %end %end -// Hide YouTube annoying banner in Home page? - @MiRO92 - YTNoShorts: https://github.com/MiRO92/YTNoShorts -%hook YTAsyncCollectionView -- (id)cellForItemAtIndexPath:(NSIndexPath *)indexPath { - if (IsEnabled(@"hideShorts_enabled")) { - UICollectionViewCell *cell = %orig; - if ([cell isKindOfClass:NSClassFromString(@"_ASCollectionViewCell")]) { - _ASCollectionViewCell *cell = %orig; - if ([cell respondsToSelector:@selector(node)]) { - if ([[[cell node] accessibilityIdentifier] isEqualToString:@"eml.shorts-shelf"]) { - [self removeShortsCellAtIndexPath:indexPath]; - } - } - } else if ([cell isKindOfClass:NSClassFromString(@"YTReelShelfCell")]) { - [self removeShortsCellAtIndexPath:indexPath]; - } - return %orig; - } - return %orig; -} - -%new -- (void)removeShortsCellAtIndexPath:(NSIndexPath *)indexPath { - [self deleteItemsAtIndexPaths:[NSArray arrayWithObject:indexPath]]; -} -%end - // YTSpeed - https://github.com/Lyvendia/YTSpeed %group gYTSpeed %hook YTVarispeedSwitchController