mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-21 18:48:45 -04:00
Fixed #48
This commit is contained in:
@@ -330,6 +330,12 @@ static BOOL IsEnabled(NSString *key) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Hide Community Posts - @michael-winay & @arichorn
|
||||
if (IsEnabled(@"hideCommunityPosts_enabled")) {
|
||||
if ([description containsString:@"post_base_wrapper.eml"]) {
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
@@ -592,6 +598,7 @@ static BOOL IsEnabled(NSString *key) {
|
||||
if (IsEnabled(@"disableLiveChatSection_enabled")) {
|
||||
%init(gDisableLiveChatSection);
|
||||
}
|
||||
|
||||
|
||||
// Change the default value of some options
|
||||
NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys];
|
||||
|
Reference in New Issue
Block a user