mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Remove iSponsorBlock Support (uYouPlusThemes)
This commit is contained in:
parent
3e5d03bde8
commit
7dedb8d6cb
1 changed files with 0 additions and 38 deletions
|
|
@ -181,25 +181,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
||||||
}
|
}
|
||||||
%end
|
%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
|
%hook UIApplication
|
||||||
- (void)applicationDidFinishLaunching:(UIApplication *)application {
|
- (void)applicationDidFinishLaunching:(UIApplication *)application {
|
||||||
if (@available(iOS 14.0, *)) {
|
if (@available(iOS 14.0, *)) {
|
||||||
|
|
@ -411,25 +392,6 @@ UIColor *customHexColor;
|
||||||
}
|
}
|
||||||
%end
|
%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
|
// Search view
|
||||||
%hook YTSearchBarView
|
%hook YTSearchBarView
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue