This commit is contained in:
Balackburn
2023-12-18 21:30:36 +01:00
parent b08bb9477a
commit d6ba8d2bfd
16 changed files with 52 additions and 7 deletions

View File

@@ -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];