Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit f32b3a7

Browse files
committed
Hide Stories on News Feed
1 parent 9979b06 commit f32b3a7

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

Tweak.xm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ static void showDownloadVideoAlert(FBVideoPlaybackItem *videoPlaybackItem, UIVie
105105
%new
106106
- (BOOL)shouldHideSectionNumber:(int)sectionNumber {
107107
if (hideNewsFeedComposer) {
108-
if (([self dataSourceState].sections.count == 3 && sectionNumber == 0) || ([self dataSourceState].sections.count == 4 && sectionNumber == 1)) {
108+
if (([self dataSourceState].sections.count == 3 && sectionNumber == 0) || ([self dataSourceState].sections.count == 4 && (sectionNumber == 0 || sectionNumber == 1))) {
109109
return TRUE;
110110
}
111111
} else {
112-
if (([self dataSourceState].sections.count == 4 && sectionNumber == 1) || ([self dataSourceState].sections.count == 5 && sectionNumber == 2)) {
112+
if (([self dataSourceState].sections.count == 4 && sectionNumber == 1) || ([self dataSourceState].sections.count == 5 && (sectionNumber == 1 || sectionNumber == 2))) {
113113
return TRUE;
114114
}
115115
}

control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: com.haoict.facebooknoads
22
Name: Facebook No Ads
3-
Depends: mobilesubstrate, preferenceloader, com.haoict.libhdev (>= 3.0.0), firmware (>= 10)
4-
Version: 1.1.0
3+
Depends: mobilesubstrate, preferenceloader, com.haoict.libhdev (>= 4.1.0), firmware (>= 10)
4+
Version: 1.2.0
55
Architecture: iphoneos-arm
66
Description: Free & Open Source Tweak for Facebook
77
Free & Open Source Tweak for Facebook

pref/Resources/Root.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@
104104
<key>key</key>
105105
<string>hideNewsFeedStories</string>
106106
<key>label</key>
107-
<string>HIDE_STORIES</string>
107+
<string>HIDE_ROOM_AND_STORIES</string>
108108
<key>subtitle</key>
109-
<string>HIDE_STORIES_ON_NEWS_FEED</string>
109+
<string>HIDE_ROOM_AND_STORIES_ON_NEWS_FEED</string>
110110
<key>PostNotification</key>
111111
<string>com.haoict.facebooknoadspref/PrefChanged</string>
112112
</dict>

pref/Resources/base.lproj/Root.strings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"LONG_PRESS_ON_VIDEO_TO_SAVE" = "Long press on video to save";
1212
"HIDE_COMPOSER" = "Hide Composer";
1313
"HIDE_COMPOSER_ON_NEWS_FEED" = "Hide Composer on News Feed";
14-
"HIDE_STORIES" = "Hide Stories (beta)";
15-
"HIDE_STORIES_ON_NEWS_FEED" = "Hide Stories on News Feed";
14+
"HIDE_ROOM_AND_STORIES" = "Hide Room & Stories";
15+
"HIDE_ROOM_AND_STORIES_ON_NEWS_FEED" = "Hide Room & Stories on News Feed";
1616
"OTHER_PREFERENCES" = "Other Preferences";
1717
"RESET_SETTINGS" = "Reset Settings";
1818
"SUPPORT_ME" = "Support Me";

pref/Resources/en.lproj/Root.strings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"LONG_PRESS_ON_VIDEO_TO_SAVE" = "Long press on video to save";
1212
"HIDE_COMPOSER" = "Hide Composer";
1313
"HIDE_COMPOSER_ON_NEWS_FEED" = "Hide Composer on News Feed";
14-
"HIDE_STORIES" = "Hide Stories (beta)";
15-
"HIDE_STORIES_ON_NEWS_FEED" = "Hide Stories on News Feed";
14+
"HIDE_ROOM_AND_STORIES" = "Hide Room & Stories";
15+
"HIDE_ROOM_AND_STORIES_ON_NEWS_FEED" = "Hide Room & Stories on News Feed";
1616
"OTHER_PREFERENCES" = "Other Preferences";
1717
"RESET_SETTINGS" = "Reset Settings";
1818
"SUPPORT_ME" = "Support Me";

pref/Resources/vi.lproj/Root.strings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"LONG_PRESS_ON_VIDEO_TO_SAVE" = "Ấn và giữ video để lưu";
1212
"HIDE_COMPOSER" = "Ẩn Bạn đang nghĩ gì";
1313
"HIDE_COMPOSER_ON_NEWS_FEED" = "Ẩn Bạn đang nghĩ gì ở Bảng tin";
14-
"HIDE_STORIES" = "Ẩn Story (beta)";
15-
"HIDE_STORIES_ON_NEWS_FEED" = "Ẩn Story ở Bảng tin";
14+
"HIDE_ROOM_AND_STORIES" = "Ẩn Room & Stories";
15+
"HIDE_ROOM_AND_STORIES_ON_NEWS_FEED" = "Ẩn Phòng họp & Stories ở Bảng tin";
1616
"OTHER_PREFERENCES" = "Tùy chỉnh phụ";
1717
"RESET_SETTINGS" = "Đặt lại tùy chỉnh";
1818
"SUPPORT_ME" = "Hỗ trợ tôi";
240 KB
Binary file not shown.

0 commit comments

Comments
 (0)