Temporarily disable YTNoCheckLocalNetwork
This commit is contained in:
+13
-4
@@ -261,9 +261,9 @@ BOOL dontEatMyContent() {
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
// YTNoCheckLocalNetwork: https://poomsmart.github.io/repo/depictions/ytnochecklocalnetwork.html
|
// YTNoCheckLocalNetwork: https://poomsmart.github.io/repo/depictions/ytnochecklocalnetwork.html
|
||||||
%hook YTHotConfig
|
// %hook YTHotConfig
|
||||||
- (BOOL)isPromptForLocalNetworkPermissionsEnabled { return NO; }
|
// - (BOOL)isPromptForLocalNetworkPermissionsEnabled { return NO; }
|
||||||
%end
|
// %end
|
||||||
|
|
||||||
// A/B flags
|
// A/B flags
|
||||||
%hook YTColdConfig
|
%hook YTColdConfig
|
||||||
@@ -643,6 +643,16 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Sub menu?
|
||||||
|
%hook ELMView
|
||||||
|
- (void)didMoveToWindow {
|
||||||
|
%orig;
|
||||||
|
if (isDarkMode()) {
|
||||||
|
self.subviews[0].backgroundColor = [UIColor blackColor];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
// iSponsorBlock
|
// iSponsorBlock
|
||||||
%hook SponsorBlockSettingsController
|
%hook SponsorBlockSettingsController
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
@@ -1002,7 +1012,6 @@ NSLayoutConstraint *widthConstraint, *heightConstraint, *centerXConstraint, *cen
|
|||||||
%orig(pinchGestureRecognizer);
|
%orig(pinchGestureRecognizer);
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%end // gDontEatMyContent
|
%end // gDontEatMyContent
|
||||||
|
|
||||||
// DontEatMycontent - detecting device model
|
// DontEatMycontent - detecting device model
|
||||||
|
|||||||
Reference in New Issue
Block a user