removed duplicate tweaks already in YTLite

This commit is contained in:
Balackburn
2023-07-05 15:52:40 +02:00
parent 338d2ce98b
commit 2472547f86
4 changed files with 10 additions and 142 deletions

View File

@@ -39,4 +39,4 @@ Current App Compatibility: `iOS/iPadOS 14.0` or later
### Issues in this Release: ### Issues in this Release:
- LowContrastMode doesn't work (it work with older YT version) - LowContrastMode doesn't work (it work with older YT version)
- YTClassicVideoQuality + YTSpeed not working (both broken in v18.19.1+) - YTSpeed not working (both broken in v18.19.1+)

View File

@@ -77,16 +77,6 @@
@property (nonatomic, assign, readwrite) BOOL enableSnapToChapter; @property (nonatomic, assign, readwrite) BOOL enableSnapToChapter;
@end @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 // IAmYouTube
@interface SSOConfiguration : NSObject @interface SSOConfiguration : NSObject
@end @end
@@ -104,23 +94,6 @@
- (void)autoFullscreen; - (void)autoFullscreen;
@end @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 // App Theme
@interface YCHLiveChatView : UIView @interface YCHLiveChatView : UIView
@end @end

View File

@@ -187,11 +187,7 @@ Special thanks to all the developers who have contributed to CercubePlus/YTLiteP
<details> <details>
<summary>and many more...!</summary> <summary>and many more...!</summary>
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. 6. **YTABGoodies:** allow you to disable some YouTube A/B testing features. It is a combination of several tweaks, such as:
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:
- YouAreThere: disable "Video paused. Continue watching?" popup in the YouTube app when you play a long video. - 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. - 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. 13. **LowContrastMode**: makes the YouTube Interface Low Contrast as possible to make it easier on the eyes.
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.
any many more... any many more...
</details> </details>
@@ -224,9 +216,7 @@ any many more...
1. **YTLite**: 1. **YTLite**:
- Hide Cast button is not working. (Workaround: Hide cast button in CercubePlus settings) - Hide Cast button is not working. (Workaround: Hide cast button in YTLitePlus settings)
- The Updated Dark Mode in the YouTube App is not Present or Working in YTLite v5.3.13 & older versions
2. **LowContrastMode**: this tweak doesn't work everywhere with every ui element on the YouTube App. 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) | | **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) | | **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) | | **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) | | **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) | | **DontEatMyContent** | [therealFoxster](https://github.com/therealFoxster) | 1.0.6 | [✔︎](https://github.com/therealFoxster/DontEatMyContent) |
| **LowContrastMode** | arichorn | 1.2.3 | [✔︎](https://github.com/arichorn/LowContrastMode) | | **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) | | **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) | | **IAmYouTube** | PoomSmart | 1.2.0 | [✔︎](https://github.com/PoomSmart/IAmYouTube) |
| **YTReExplore** | PoomSmart | 1.0.2 | [✔︎](https://github.com/PoomSmart/YTReExplore) | | **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) | | **YTNoPaidPromo** | PoomSmart | 1.0.0 | [✔︎](https://github.com/PoomSmart/YTNoPaidPromo) |
| **YTAutoFullScreen** | PoomSmart | 1.0.3 | [✔︎](https://github.com/PoomSmart/YTAutoFullScreen) | | **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) | | **Return YouTube Dislike** | PoomSmart | 1.11.3 | [✔︎](https://github.com/PoomSmart/Return-YouTube-Dislikes) |
</details> </details>

View File

@@ -236,55 +236,6 @@ static BOOL IsEnabled(NSString *key) {
%end %end
%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 // YTNoModernUI - @arichorn
%group gYTNoModernUI %group gYTNoModernUI
%hook YTVersionUtils // YTNoModernUI Version %hook YTVersionUtils // YTNoModernUI Version
@@ -429,23 +380,6 @@ static BOOL IsEnabled(NSString *key) {
- (BOOL)isPromptForLocalNetworkPermissionsEnabled { return NO; } - (BOOL)isPromptForLocalNetworkPermissionsEnabled { return NO; }
%end %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 // YTNoPaidPromo: https://github.com/PoomSmart/YTNoPaidPromo
%hook YTMainAppVideoPlayerOverlayViewController %hook YTMainAppVideoPlayerOverlayViewController
- (void)setPaidContentWithPlayerData:(id)data { - (void)setPaidContentWithPlayerData:(id)data {
@@ -679,32 +613,6 @@ static void replaceTab(YTIGuideResponse *response) {
%end %end
%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 // YTSpeed - https://github.com/Lyvendia/YTSpeed
%group gYTSpeed %group gYTSpeed
%hook YTVarispeedSwitchController %hook YTVarispeedSwitchController