Added another Option #111

This commit is contained in:
arichorn 2023-09-17 12:44:15 -05:00 committed by GitHub
parent cec0e27e55
commit f03ab2fe3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -502,6 +502,15 @@ static void repositionCreateTab(YTIGuideResponse *response) {
%end
%end
%group gNoRelatedWatchNexts
%hook YTWatchNextResultsViewController
- (void)setVisibleSections:(NSInteger)arg1 {
arg1 = 1;
%orig(arg1);
}
%end
%end
# pragma mark - Hide Notification Button && SponsorBlock Button
%hook YTRightNavigationButtons
- (void)layoutSubviews {
@ -1047,6 +1056,9 @@ static void replaceTab(YTIGuideResponse *response) {
if (IsEnabled(@"hideHeatwaves_enabled")) {
%init(gHideHeatwaves);
}
if (IsEnabled(@"noRelatedWatchNexts_enabled")) {
%init(gNoRelatedWatchNexts);
}
if (IsEnabled(@"ytNoModernUI_enabled")) {
%init(gYTNoModernUI);
}