This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pref in Settings app to let user know how to open tweak settings
- Loading branch information
Showing
16 changed files
with
265 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#import <libhdev/HPreferences/HPSPreferences.h> | ||
#import <libhdev/HUtilities/HCommon.h> | ||
|
||
@interface MNARootListController : HPSRootListController | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "MNARootListController.h" | ||
|
||
#define TWEAK_TITLE "Messenger No Ads" | ||
#define TINT_COLOR "#00a2e8" | ||
#define BUNDLE_NAME "MNAPref" | ||
|
||
@implementation MNARootListController | ||
- (id)init { | ||
self = [super init]; | ||
if (self) { | ||
self.tintColorHex = @TINT_COLOR; | ||
self.bundlePath = [NSString stringWithFormat:@"/Library/PreferenceBundles/%@.bundle", @BUNDLE_NAME]; | ||
} | ||
return self; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARCHS = arm64 arm64e | ||
|
||
include $(THEOS)/makefiles/common.mk | ||
|
||
BUNDLE_NAME = MNAPref | ||
MNAPref_FILES = $(wildcard *.m) | ||
MNAPref_INSTALL_PATH = /Library/PreferenceBundles | ||
MNAPref_PRIVATE_FRAMEWORKS = Preferences | ||
MNAPref_EXTRA_FRAMEWORKS = libhdev | ||
MNAPref_CFLAGS = -fobjc-arc | ||
|
||
include $(THEOS_MAKE_PATH)/bundle.mk | ||
|
||
internal-stage:: | ||
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END) | ||
$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/MNAPref.plist$(ECHO_END) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleExecutable</key> | ||
<string>MNAPref</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.haoict.messengernoadspref</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>NSPrincipalClass</key> | ||
<string>MNARootListController</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>items</key> | ||
<array> | ||
<dict> | ||
<key>cell</key> | ||
<string>PSGroupCell</string> | ||
<key>headerCellClass</key> | ||
<string>HPSHeaderImageCell</string> | ||
<key>image</key> | ||
<string>/Library/PreferenceBundles/MNAPref.bundle/Banner.jpg</string> | ||
</dict> | ||
|
||
<!-- <dict> | ||
<key>cell</key> | ||
<string>PSGroupCell</string> | ||
<key>headerCellClass</key> | ||
<string>HPSHeaderCell</string> | ||
<key>label</key> | ||
<string>Messenger No Ads</string> | ||
<key>subtitle</key> | ||
<array> | ||
<string>By @haoict</string> | ||
<string>Free and Open Source!</string> | ||
<string>Made with love</string> | ||
</array> | ||
</dict> --> | ||
|
||
<!-- Support Me --> | ||
<dict> | ||
<key>cell</key> | ||
<string>PSGroupCell</string> | ||
<key>label</key> | ||
<string>SUPPORT_ME</string> | ||
</dict> | ||
<dict> | ||
<key>cell</key> | ||
<string>PSLinkCell</string> | ||
<key>cellClass</key> | ||
<string>HPSLinkCell</string> | ||
<key>label</key> | ||
<string>Hao Nguyen 👨🏻💻</string> | ||
<key>subtitle</key> | ||
<string>@haoict</string> | ||
<key>action</key> | ||
<string>openURL:</string> | ||
<key>url</key> | ||
<string>https://messenger.com/haoict</string> | ||
</dict> | ||
<dict> | ||
<key>cell</key> | ||
<string>PSLinkCell</string> | ||
<key>cellClass</key> | ||
<string>HPSLinkCell</string> | ||
<key>label</key> | ||
<string>DONATION</string> | ||
<key>subtitle</key> | ||
<string>BUY_ME_A_COFFEE</string> | ||
<key>action</key> | ||
<string>openURL:</string> | ||
<key>url</key> | ||
<string>https://paypal.me/haoict</string> | ||
</dict> | ||
<dict> | ||
<key>cell</key> | ||
<string>PSLinkCell</string> | ||
<key>cellClass</key> | ||
<string>HPSLinkCell</string> | ||
<key>label</key> | ||
<string>FEATURE_REQUEST</string> | ||
<key>subtitle</key> | ||
<string>SEND_ME_AN_EMAIL_WITH_YOUR_REQUEST</string> | ||
<key>action</key> | ||
<string>openURL:</string> | ||
<key>url</key> | ||
<string>mailto:[email protected]?subject=Messenger%20Feature%20Request</string> | ||
</dict> | ||
<dict> | ||
<key>cell</key> | ||
<string>PSLinkCell</string> | ||
<key>cellClass</key> | ||
<string>HPSLinkCell</string> | ||
<key>label</key> | ||
<string>SOURCE_CODE</string> | ||
<key>subtitle</key> | ||
<string>Github</string> | ||
<key>action</key> | ||
<string>openURL:</string> | ||
<key>url</key> | ||
<string>https://github.com/haoict/messengernoads</string> | ||
</dict> | ||
<dict> | ||
<key>cell</key> | ||
<string>PSLinkCell</string> | ||
<key>cellClass</key> | ||
<string>HPSLinkCell</string> | ||
<key>label</key> | ||
<string>FOUND_A_BUG</string> | ||
<key>subtitle</key> | ||
<string>LEAVE_A_BUG_REPORT_ON_GITHUB</string> | ||
<key>action</key> | ||
<string>openURL:</string> | ||
<key>url</key> | ||
<string>https://github.com/haoict/messengernoads/issues/new</string> | ||
</dict> | ||
|
||
<dict> | ||
<key>cell</key> | ||
<string>PSGroupCell</string> | ||
<key>footerText</key> | ||
<string>Messenger No Ads, Made With ❤️</string> | ||
<key>isStaticText</key> | ||
<true/> | ||
</dict> | ||
|
||
</array> | ||
<key>title</key> | ||
<string>Messenger No Ads</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"APPLY" = "Apply"; | ||
"DO_YOU_REALLY_WANT_TO_KILL_MESSENGER" = "Do you really want to kill Messenger?"; | ||
"CONFIRM" = "Confirm"; | ||
"CANCEL" = "Cancel"; | ||
"DEFAULT" = "Default"; | ||
"MAIN_PREFERENCES" = "Main Preferences"; | ||
"OTHER_PREFERENCES" = "Other Preferences"; | ||
"RESET_SETTINGS" = "Reset Settings"; | ||
"SUPPORT_ME" = "Support Me"; | ||
"DONATION" = "Donation 💰"; | ||
"BUY_ME_A_COFFEE" = "Buy me a coffee"; | ||
"FEATURE_REQUEST" = "Feature Request ✨"; | ||
"SEND_ME_AN_EMAIL_WITH_YOUR_REQUEST" = "Send Me An Email With Your Request"; | ||
"SOURCE_CODE" = "Source Code 🤖"; | ||
"FOUND_A_BUG" = "Found A Bug 🐛"; | ||
"LEAVE_A_BUG_REPORT_ON_GITHUB" = "Leave A Bug Report on Github"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"APPLY" = "Apply"; | ||
"DO_YOU_REALLY_WANT_TO_KILL_MESSENGER" = "Do you really want to kill Messenger?"; | ||
"CONFIRM" = "Confirm"; | ||
"CANCEL" = "Cancel"; | ||
"DEFAULT" = "Default"; | ||
"MAIN_PREFERENCES" = "Main Preferences"; | ||
"OTHER_PREFERENCES" = "Other Preferences"; | ||
"RESET_SETTINGS" = "Reset Settings"; | ||
"SUPPORT_ME" = "Support Me"; | ||
"DONATION" = "Donation 💰"; | ||
"BUY_ME_A_COFFEE" = "Buy me a coffee"; | ||
"FEATURE_REQUEST" = "Feature Request ✨"; | ||
"SEND_ME_AN_EMAIL_WITH_YOUR_REQUEST" = "Send Me An Email With Your Request"; | ||
"SOURCE_CODE" = "Source Code 🤖"; | ||
"FOUND_A_BUG" = "Found A Bug 🐛"; | ||
"LEAVE_A_BUG_REPORT_ON_GITHUB" = "Leave A Bug Report on Github"; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"APPLY" = "Áp dụng"; | ||
"DO_YOU_REALLY_WANT_TO_KILL_MESSENGER" = "Bạn có muốn tắt Messenger?"; | ||
"CONFIRM" = "Xác nhận"; | ||
"CANCEL" = "Hủy"; | ||
"DEFAULT" = "Mặc định"; | ||
"OTHER_PREFERENCES" = "Tùy chỉnh phụ"; | ||
"RESET_SETTINGS" = "Đặt lại tùy chỉnh"; | ||
"SUPPORT_ME" = "Hỗ trợ tôi"; | ||
"DONATION" = "Ủng hộ 💰"; | ||
"BUY_ME_A_COFFEE" = "Mua giúp tôi một ly cà phê"; | ||
"FEATURE_REQUEST" = "Yêu cầu thêm tính năng ✨"; | ||
"SEND_ME_AN_EMAIL_WITH_YOUR_REQUEST" = "Gửi email yêu cầu"; | ||
"SOURCE_CODE" = "Mã nguồn 🤖"; | ||
"FOUND_A_BUG" = "Tìm thấy lỗi 🐛"; | ||
"LEAVE_A_BUG_REPORT_ON_GITHUB" = "Báo lỗi trên Github"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>entry</key> | ||
<dict> | ||
<key>bundle</key> | ||
<string>MNAPref</string> | ||
<key>cell</key> | ||
<string>PSLinkCell</string> | ||
<key>detail</key> | ||
<string>MNARootListController</string> | ||
<key>icon</key> | ||
<string>icon.png</string> | ||
<key>isController</key> | ||
<true/> | ||
<key>label</key> | ||
<string>Messenger No Ads</string> | ||
</dict> | ||
</dict> | ||
</plist> |
Binary file not shown.