Skip to content

Commit c15c192

Browse files
committed
another recommendations filter
1 parent 6ace33d commit c15c192

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tweak.xm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ static void filterNode(NSMutableDictionary *node) {
121121
node[@"cells"] = @[];
122122
}
123123

124+
// Recommendation
125+
if ([NSUserDefaults.standardUserDefaults boolForKey:kRedditFilterRecommended]) {
126+
if ([node[@"__typename"] isEqualToString:@"CellGroup"] && ![node[@"recommendationContext"] isEqual:[NSNull null]])
127+
node[@"cells"] = @[];
128+
}
129+
124130
// Comment
125131
if ([node[@"__typename"] isEqualToString:@"Comment"]) {
126132
if ([NSUserDefaults.standardUserDefaults boolForKey:kRedditFilterAwards]) {

0 commit comments

Comments
 (0)