Skip to content

Commit

Permalink
Remove iSponsorBlock Support (uYouPlusThemes)
Browse files Browse the repository at this point in the history
  • Loading branch information
arichornlover authored Apr 21, 2024
1 parent 3e5d03b commit 7dedb8d
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions Sources/uYouPlusThemes.xm
Original file line number Diff line number Diff line change
Expand Up @@ -181,25 +181,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%end

// iSponsorBlock
%hook SponsorBlockSettingsController
- (void)viewDidLoad {
if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
%orig;
self.tableView.backgroundColor = [UIColor blackColor];
} else { return %orig; }
}
%end

%hook SponsorBlockViewController
- (void)viewDidLoad {
if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
%orig;
self.view.backgroundColor = [UIColor blackColor];
} else { return %orig; }
}
%end

%hook UIApplication
- (void)applicationDidFinishLaunching:(UIApplication *)application {
if (@available(iOS 14.0, *)) {
Expand Down Expand Up @@ -411,25 +392,6 @@ UIColor *customHexColor;
}
%end

// iSponsorBlock
%hook SponsorBlockSettingsController
- (void)viewDidLoad {
if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
%orig;
self.tableView.backgroundColor = customHexColor;
} else { return %orig; }
}
%end

%hook SponsorBlockViewController
- (void)viewDidLoad {
if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
%orig;
self.view.backgroundColor = customHexColor;
} else { return %orig; }
}
%end

// Search view
%hook YTSearchBarView
- (void)setBackgroundColor:(UIColor *)color {
Expand Down

0 comments on commit 7dedb8d

Please sign in to comment.