mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-21 18:28:47 -04:00
Add Hide Speed Toast
This commit is contained in:
@@ -179,6 +179,7 @@ BOOL isSelf() {
|
||||
%end
|
||||
%end
|
||||
|
||||
|
||||
// A/B flags
|
||||
%hook YTColdConfig
|
||||
- (BOOL)respectDeviceCaptionSetting { return NO; } // YouRememberCaption: https://poomsmart.github.io/repo/depictions/youremembercaption.html
|
||||
@@ -194,6 +195,30 @@ BOOL isSelf() {
|
||||
- (BOOL)shouldShowUpgradeDialog { return NO;}
|
||||
%end
|
||||
|
||||
// Hide Speed Toast - @bhackel
|
||||
// YTLite Speed Toast
|
||||
%hook PlayerToast
|
||||
- (void)showPlayerToastWithText:(id)text
|
||||
value:(CGFloat)value
|
||||
style:(NSInteger)style
|
||||
onView:(id)view
|
||||
{
|
||||
if (IsEnabled(@"hideSpeedToast_enabled")) {
|
||||
return;
|
||||
}
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
// Default YouTube Speed Toast
|
||||
%hook YTInlinePlayerScrubUserEducationView
|
||||
- (void)setVisible:(BOOL)visible {
|
||||
if (IsEnabled(@"hideSpeedToast_enabled")) {
|
||||
return;
|
||||
}
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// Hide Home Tab - @bhackel
|
||||
%group gHideHomeTab
|
||||
%hook YTPivotBarView
|
||||
|
Reference in New Issue
Block a user