From d69f96187dff4efb443daaa78e16a511e33c67e1 Mon Sep 17 00:00:00 2001 From: Sunnyyoung Date: Wed, 5 Jan 2022 10:44:39 +0800 Subject: [PATCH] Remove automatic login due to official support --- WeChatTweak.xcodeproj/project.pbxproj | 20 +- WeChatTweak/AntiRevoke.m | 2 +- WeChatTweak/AutoAuth.h | 20 -- WeChatTweak/AutoAuth.m | 56 ------ .../Base.lproj/TweakPreferencesController.xib | 85 +++----- .../Controller/TweakPreferencesController.m | 9 - .../TweakPreferencesController.strings | 42 ++++ .../en.lproj/TweakPreferencesController.xib | 188 ------------------ .../TweakPreferencesController.strings | 42 ++++ .../TweakPreferencesController.xib | 188 ------------------ .../TweakPreferencesController.strings | 42 ++++ .../TweakPreferencesController.xib | 188 ------------------ .../Supporting Files/WeChatTweakHeaders.h | 8 - .../en.lproj/Localizable.strings | 1 + .../zh-Hans.lproj/Localizable.strings | 1 + .../zh-Hant.lproj/Localizable.strings | 1 + 16 files changed, 161 insertions(+), 732 deletions(-) delete mode 100644 WeChatTweak/AutoAuth.h delete mode 100644 WeChatTweak/AutoAuth.m create mode 100644 WeChatTweak/Controller/en.lproj/TweakPreferencesController.strings delete mode 100644 WeChatTweak/Controller/en.lproj/TweakPreferencesController.xib create mode 100644 WeChatTweak/Controller/zh-Hans.lproj/TweakPreferencesController.strings delete mode 100644 WeChatTweak/Controller/zh-Hans.lproj/TweakPreferencesController.xib create mode 100644 WeChatTweak/Controller/zh-Hant.lproj/TweakPreferencesController.strings delete mode 100644 WeChatTweak/Controller/zh-Hant.lproj/TweakPreferencesController.xib diff --git a/WeChatTweak.xcodeproj/project.pbxproj b/WeChatTweak.xcodeproj/project.pbxproj index 12a88f4..c792559 100644 --- a/WeChatTweak.xcodeproj/project.pbxproj +++ b/WeChatTweak.xcodeproj/project.pbxproj @@ -9,8 +9,6 @@ /* Begin PBXBuildFile section */ 7D14E5A41F6447DB00D75132 /* AlfredManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D14E5A21F6447DB00D75132 /* AlfredManager.h */; }; 7D14E5A51F6447DB00D75132 /* AlfredManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D14E5A31F6447DB00D75132 /* AlfredManager.m */; }; - 7D2194C32646E62E0068F4CC /* AutoAuth.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D2194C12646E62E0068F4CC /* AutoAuth.h */; }; - 7D2194C42646E62E0068F4CC /* AutoAuth.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D2194C22646E62E0068F4CC /* AutoAuth.m */; }; 7D2194CB264701950068F4CC /* AntiRevoke.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D2194C9264701950068F4CC /* AntiRevoke.h */; }; 7D2194CC264701950068F4CC /* AntiRevoke.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D2194CA264701950068F4CC /* AntiRevoke.m */; }; 7D54A05C20E74D9400CB5306 /* TweakPreferencesController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7D54A05E20E74D9400CB5306 /* TweakPreferencesController.xib */; }; @@ -36,23 +34,21 @@ 153504EC5C9196C0D85213CF /* libPods-WeChatTweak.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-WeChatTweak.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 7D14E5A21F6447DB00D75132 /* AlfredManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AlfredManager.h; sourceTree = ""; }; 7D14E5A31F6447DB00D75132 /* AlfredManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AlfredManager.m; sourceTree = ""; }; - 7D2194C12646E62E0068F4CC /* AutoAuth.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AutoAuth.h; sourceTree = ""; }; - 7D2194C22646E62E0068F4CC /* AutoAuth.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AutoAuth.m; sourceTree = ""; }; 7D2194C9264701950068F4CC /* AntiRevoke.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AntiRevoke.h; sourceTree = ""; }; 7D2194CA264701950068F4CC /* AntiRevoke.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AntiRevoke.m; sourceTree = ""; }; 7D54A05F20E74E4600CB5306 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/TweakPreferencesController.xib; sourceTree = ""; }; 7D54A07020E74FFD00CB5306 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; 7D54A07120E7535F00CB5306 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = ""; }; 7D54A07220E7536300CB5306 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Localizable.strings"; sourceTree = ""; }; + 7D64B96727853C2100A07164 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/TweakPreferencesController.strings; sourceTree = ""; }; + 7D64B96827853C2800A07164 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/TweakPreferencesController.strings"; sourceTree = ""; }; + 7D64B96927853C2B00A07164 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/TweakPreferencesController.strings"; sourceTree = ""; }; 7D9049F31F82A415004E6370 /* fishhook.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = fishhook.c; sourceTree = ""; }; 7D9049F41F82A415004E6370 /* fishhook.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = fishhook.h; sourceTree = ""; }; 7D9049F71F82B6FB004E6370 /* NSString+WeChatTweak.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString+WeChatTweak.h"; sourceTree = ""; }; 7D9049F81F82B6FB004E6370 /* NSString+WeChatTweak.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSString+WeChatTweak.m"; sourceTree = ""; }; 7DB8AFBC206211D900E683AE /* WTConfigManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WTConfigManager.h; sourceTree = ""; }; 7DB8AFBD206211D900E683AE /* WTConfigManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WTConfigManager.m; sourceTree = ""; }; - 7DF7065D23A8B69000DEA8F6 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/TweakPreferencesController.xib; sourceTree = ""; }; - 7DF7065E23A8B69A00DEA8F6 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "zh-Hans"; path = "zh-Hans.lproj/TweakPreferencesController.xib"; sourceTree = ""; }; - 7DF7065F23A8B6A400DEA8F6 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "zh-Hant"; path = "zh-Hant.lproj/TweakPreferencesController.xib"; sourceTree = ""; }; 7DF842271F40583F00D42D79 /* WeChatTweak.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WeChatTweak.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 7DF8422A1F40583F00D42D79 /* WeChatTweak.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WeChatTweak.h; sourceTree = ""; }; 7DF8422B1F40583F00D42D79 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; @@ -161,8 +157,6 @@ children = ( 7DF8422A1F40583F00D42D79 /* WeChatTweak.h */, 7DF842331F4058AB00D42D79 /* WeChatTweak.m */, - 7D2194C12646E62E0068F4CC /* AutoAuth.h */, - 7D2194C22646E62E0068F4CC /* AutoAuth.m */, 7D2194C9264701950068F4CC /* AntiRevoke.h */, 7D2194CA264701950068F4CC /* AntiRevoke.m */, 7D5AAF3720DF4BB300860EEE /* Vendor */, @@ -208,7 +202,6 @@ 7D2194CB264701950068F4CC /* AntiRevoke.h in Headers */, 7DF842601F40590500D42D79 /* WeChatTweakHeaders.h in Headers */, 7DF842521F4058C600D42D79 /* TweakPreferencesController.h in Headers */, - 7D2194C32646E62E0068F4CC /* AutoAuth.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -335,7 +328,6 @@ 7DB8AFBF206211D900E683AE /* WTConfigManager.m in Sources */, 7D9049F51F82A41A004E6370 /* fishhook.c in Sources */, 7DF8425C1F4058DD00D42D79 /* NSBundle+WeChatTweak.m in Sources */, - 7D2194C42646E62E0068F4CC /* AutoAuth.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -346,9 +338,9 @@ isa = PBXVariantGroup; children = ( 7D54A05F20E74E4600CB5306 /* Base */, - 7DF7065D23A8B69000DEA8F6 /* en */, - 7DF7065E23A8B69A00DEA8F6 /* zh-Hans */, - 7DF7065F23A8B6A400DEA8F6 /* zh-Hant */, + 7D64B96727853C2100A07164 /* en */, + 7D64B96827853C2800A07164 /* zh-Hans */, + 7D64B96927853C2B00A07164 /* zh-Hant */, ); name = TweakPreferencesController.xib; sourceTree = ""; diff --git a/WeChatTweak/AntiRevoke.m b/WeChatTweak/AntiRevoke.m index 28cbab5..f3e3441 100644 --- a/WeChatTweak/AntiRevoke.m +++ b/WeChatTweak/AntiRevoke.m @@ -188,7 +188,7 @@ static void __attribute__((constructor)) tweak(void) { revokeTextField.drawsBackground = NO; revokeTextField.usesSingleLineMode = YES; revokeTextField.tag = 9527; - revokeTextField.stringValue = @"[已撤回]"; + revokeTextField.stringValue = [NSBundle.tweakBundle localizedStringForKey:@"Tweak.Message.RecalledMark"]; revokeTextField.font = [NSFont systemFontOfSize:10]; revokeTextField.textColor = [NSColor lightGrayColor]; [revokeTextField sizeToFit]; diff --git a/WeChatTweak/AutoAuth.h b/WeChatTweak/AutoAuth.h deleted file mode 100644 index 97ddef4..0000000 --- a/WeChatTweak/AutoAuth.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// AutoAuth.h -// WeChatTweak -// -// Created by Sunny Young on 2021/5/8. -// Copyright © 2021 Sunnyyoung. All rights reserved. -// - -#import -#import -#import -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface NSObject (AutoAuth) - -@end - -NS_ASSUME_NONNULL_END diff --git a/WeChatTweak/AutoAuth.m b/WeChatTweak/AutoAuth.m deleted file mode 100644 index 5ab1c52..0000000 --- a/WeChatTweak/AutoAuth.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// AutoAuth.m -// WeChatTweak -// -// Created by Sunny Young on 2021/5/8. -// Copyright © 2021 Sunnyyoung. All rights reserved. -// - -#import "AutoAuth.h" -#import "WeChatTweakHeaders.h" -#import "WTConfigManager.h" - -@implementation NSObject(AutoAuth) - -static void __attribute__((constructor)) tweak(void) { - [objc_getClass("MMLoginOneClickViewController") jr_swizzleMethod:NSSelectorFromString(@"onLoginButtonClicked:") withMethod:@selector(tweak_onLoginButtonClicked:) error:nil]; - [objc_getClass("MMMainViewController") jr_swizzleMethod:NSSelectorFromString(@"viewDidLoad") withMethod:@selector(tweak_viewDidLoad) error:nil]; - [objc_getClass("LogoutCGI") jr_swizzleMethod:NSSelectorFromString(@"FFVCRecvDataAddDataToMsgChatMgrRecvZZ:") withMethod:@selector(tweak_FFVCRecvDataAddDataToMsgChatMgrRecvZZ:) error:nil]; - [objc_getClass("AccountService") jr_swizzleMethod:NSSelectorFromString(@"FFAddSvrMsgImgVCZZ") withMethod:@selector(tweak_FFAddSvrMsgImgVCZZ) error:nil]; -} - -- (void)tweak_onLoginButtonClicked:(id)sender { - AccountService *accountService = [[objc_getClass("MMServiceCenter") defaultCenter] getService:objc_getClass("AccountService")]; - BOOL enabledAutoAuth = [NSUserDefaults.standardUserDefaults boolForKey:WeChatTweakPreferenceAutoAuthKey]; - BOOL canAutoAuth = accountService.canAutoAuth; - if (enabledAutoAuth && canAutoAuth) { - [accountService AutoAuth]; - } else { - [self tweak_onLoginButtonClicked:sender]; - } -} - -- (void)tweak_viewDidLoad { - [self tweak_viewDidLoad]; - if ([NSUserDefaults.standardUserDefaults boolForKey:WeChatTweakPreferenceAutoAuthKey]) { - MMSessionMgr *mgr = [[objc_getClass("MMServiceCenter") defaultCenter] getService:objc_getClass("MMSessionMgr")]; - [mgr loadSessionData]; - [mgr loadBrandSessionData]; - } -} - -- (void)tweak_FFVCRecvDataAddDataToMsgChatMgrRecvZZ:(id)arg { - if (![NSUserDefaults.standardUserDefaults boolForKey:WeChatTweakPreferenceAutoAuthKey]) { - [self tweak_FFVCRecvDataAddDataToMsgChatMgrRecvZZ:arg]; - } -} - -- (void)tweak_FFAddSvrMsgImgVCZZ { - if ([NSUserDefaults.standardUserDefaults boolForKey:WeChatTweakPreferenceAutoAuthKey]) { - return; - } else { - [self tweak_FFAddSvrMsgImgVCZZ]; - } -} - -@end diff --git a/WeChatTweak/Controller/Base.lproj/TweakPreferencesController.xib b/WeChatTweak/Controller/Base.lproj/TweakPreferencesController.xib index c4e7503..16dffdd 100644 --- a/WeChatTweak/Controller/Base.lproj/TweakPreferencesController.xib +++ b/WeChatTweak/Controller/Base.lproj/TweakPreferencesController.xib @@ -1,14 +1,13 @@ - + - + - @@ -18,50 +17,22 @@ - + - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - + + - + @@ -81,7 +52,7 @@ - + @@ -89,7 +60,7 @@ - + @@ -97,10 +68,10 @@ - + - + @@ -117,7 +88,7 @@ - + @@ -125,10 +96,10 @@ - + - + @@ -145,7 +116,7 @@ - + @@ -154,35 +125,29 @@ - + - - + - - - - - - + + + + - - + - - - + - + diff --git a/WeChatTweak/Controller/TweakPreferencesController.m b/WeChatTweak/Controller/TweakPreferencesController.m index e398966..9441c8f 100644 --- a/WeChatTweak/Controller/TweakPreferencesController.m +++ b/WeChatTweak/Controller/TweakPreferencesController.m @@ -12,7 +12,6 @@ @interface TweakPreferencesController () -@property (weak) IBOutlet NSPopUpButton *autoAuthButton; @property (weak) IBOutlet NSPopUpButton *notificationTypeButton; @property (weak) IBOutlet NSPopUpButton *compressedJSONEnabledButton; @property (weak) IBOutlet NSPopUpButton *revokedMessageStyleButton; @@ -33,9 +32,7 @@ - (void)reloadData { WTConfigManager *configManager = WTConfigManager.sharedInstance; NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; - BOOL enabledAutoAuth = [userDefaults boolForKey:WeChatTweakPreferenceAutoAuthKey]; RevokeNotificationType notificationType = [userDefaults integerForKey:WeChatTweakPreferenceRevokeNotificationTypeKey]; - [self.autoAuthButton selectItemAtIndex:enabledAutoAuth ? 1 : 0]; [self.notificationTypeButton selectItemAtIndex:notificationType]; [self.compressedJSONEnabledButton selectItemAtIndex:configManager.compressedJSONEnabled ? 0 : 1]; [self.revokedMessageStyleButton selectItemAtIndex:configManager.revokedMessageStyle]; @@ -43,12 +40,6 @@ #pragma mark - Event method -- (IBAction)switchAutoAuthAction:(NSPopUpButton *)sender { - BOOL enabled = sender.indexOfSelectedItem == 1; - [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:WeChatTweakPreferenceAutoAuthKey]; - [[NSUserDefaults standardUserDefaults] synchronize]; -} - - (IBAction)switchNotificationTypeAction:(NSPopUpButton *)sender { RevokeNotificationType type = sender.indexOfSelectedItem; [[NSUserDefaults standardUserDefaults] setInteger:type forKey:WeChatTweakPreferenceRevokeNotificationTypeKey]; diff --git a/WeChatTweak/Controller/en.lproj/TweakPreferencesController.strings b/WeChatTweak/Controller/en.lproj/TweakPreferencesController.strings new file mode 100644 index 0000000..2b419df --- /dev/null +++ b/WeChatTweak/Controller/en.lproj/TweakPreferencesController.strings @@ -0,0 +1,42 @@ + +/* Class = "NSMenuItem"; title = "Enabled"; ObjectID = "10G-t9-s4T"; */ +"10G-t9-s4T.title" = "Enabled"; + +/* Class = "NSTextFieldCell"; title = "Need to restart"; ObjectID = "2vl-mc-m3L"; */ +"2vl-mc-m3L.title" = "Need to restart"; + +/* Class = "NSMenuItem"; title = "Enabled"; ObjectID = "KQg-jN-y9a"; */ +"KQg-jN-y9a.title" = "Enabled"; + +/* Class = "NSMenuItem"; title = "Disabled"; ObjectID = "MEN-Kg-wfj"; */ +"MEN-Kg-wfj.title" = "Disabled"; + +/* Class = "NSTextFieldCell"; title = "Message recalled notification:"; ObjectID = "UKv-CM-nGt"; */ +"UKv-CM-nGt.title" = "Message recalled notification:"; + +/* Class = "NSMenuItem"; title = "Disabled"; ObjectID = "Uk9-Oc-Jtv"; */ +"Uk9-Oc-Jtv.title" = "Disabled"; + +/* Class = "NSMenuItem"; title = "Disabled"; ObjectID = "Vcv-eD-OM9"; */ +"Vcv-eD-OM9.title" = "Disabled"; + +/* Class = "NSMenuItem"; title = "All"; ObjectID = "da4-aJ-lEy"; */ +"da4-aJ-lEy.title" = "All"; + +/* Class = "NSMenuItem"; title = "Mask"; ObjectID = "gH0-wV-Bx0"; */ +"gH0-wV-Bx0.title" = "Mask"; + +/* Class = "NSMenuItem"; title = "Inherited"; ObjectID = "gec-CY-E1x"; */ +"gec-CY-E1x.title" = "Inherited"; + +/* Class = "NSTextFieldCell"; title = "Alfred JSON compressing:"; ObjectID = "jHw-2a-B2t"; */ +"jHw-2a-B2t.title" = "Alfred JSON compressing:"; + +/* Class = "NSTextFieldCell"; title = "Experimental feature"; ObjectID = "lHs-du-a6F"; */ +"lHs-du-a6F.title" = "Experimental feature"; + +/* Class = "NSTextFieldCell"; title = "Revoked message style:"; ObjectID = "mPT-nA-idf"; */ +"mPT-nA-idf.title" = "Revoked message style:"; + +/* Class = "NSMenuItem"; title = "Classic"; ObjectID = "wRC-UO-k1G"; */ +"wRC-UO-k1G.title" = "Classic"; diff --git a/WeChatTweak/Controller/en.lproj/TweakPreferencesController.xib b/WeChatTweak/Controller/en.lproj/TweakPreferencesController.xib deleted file mode 100644 index c4e7503..0000000 --- a/WeChatTweak/Controller/en.lproj/TweakPreferencesController.xib +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/WeChatTweak/Controller/zh-Hans.lproj/TweakPreferencesController.strings b/WeChatTweak/Controller/zh-Hans.lproj/TweakPreferencesController.strings new file mode 100644 index 0000000..08327e4 --- /dev/null +++ b/WeChatTweak/Controller/zh-Hans.lproj/TweakPreferencesController.strings @@ -0,0 +1,42 @@ + +/* Class = "NSMenuItem"; title = "开启"; ObjectID = "10G-t9-s4T"; */ +"10G-t9-s4T.title" = "开启"; + +/* Class = "NSTextFieldCell"; title = "需重启客户端"; ObjectID = "2vl-mc-m3L"; */ +"2vl-mc-m3L.title" = "需重启客户端"; + +/* Class = "NSMenuItem"; title = "开启"; ObjectID = "KQg-jN-y9a"; */ +"KQg-jN-y9a.title" = "开启"; + +/* Class = "NSMenuItem"; title = "关闭"; ObjectID = "MEN-Kg-wfj"; */ +"MEN-Kg-wfj.title" = "关闭"; + +/* Class = "NSTextFieldCell"; title = "消息撤回通知:"; ObjectID = "UKv-CM-nGt"; */ +"UKv-CM-nGt.title" = "消息撤回通知:"; + +/* Class = "NSMenuItem"; title = "关闭"; ObjectID = "Uk9-Oc-Jtv"; */ +"Uk9-Oc-Jtv.title" = "关闭"; + +/* Class = "NSMenuItem"; title = "关闭"; ObjectID = "Vcv-eD-OM9"; */ +"Vcv-eD-OM9.title" = "关闭"; + +/* Class = "NSMenuItem"; title = "全部接收"; ObjectID = "da4-aJ-lEy"; */ +"da4-aJ-lEy.title" = "全部接收"; + +/* Class = "NSMenuItem"; title = "遮罩"; ObjectID = "gH0-wV-Bx0"; */ +"gH0-wV-Bx0.title" = "遮罩"; + +/* Class = "NSMenuItem"; title = "跟随聊天设置"; ObjectID = "gec-CY-E1x"; */ +"gec-CY-E1x.title" = "跟随聊天设置"; + +/* Class = "NSTextFieldCell"; title = "Alfred JSON 压缩:"; ObjectID = "jHw-2a-B2t"; */ +"jHw-2a-B2t.title" = "Alfred JSON 压缩:"; + +/* Class = "NSTextFieldCell"; title = "试验性功能"; ObjectID = "lHs-du-a6F"; */ +"lHs-du-a6F.title" = "试验性功能"; + +/* Class = "NSTextFieldCell"; title = "消息撤回样式:"; ObjectID = "mPT-nA-idf"; */ +"mPT-nA-idf.title" = "消息撤回样式:"; + +/* Class = "NSMenuItem"; title = "经典"; ObjectID = "wRC-UO-k1G"; */ +"wRC-UO-k1G.title" = "经典"; diff --git a/WeChatTweak/Controller/zh-Hans.lproj/TweakPreferencesController.xib b/WeChatTweak/Controller/zh-Hans.lproj/TweakPreferencesController.xib deleted file mode 100644 index 9f511e8..0000000 --- a/WeChatTweak/Controller/zh-Hans.lproj/TweakPreferencesController.xib +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/WeChatTweak/Controller/zh-Hant.lproj/TweakPreferencesController.strings b/WeChatTweak/Controller/zh-Hant.lproj/TweakPreferencesController.strings new file mode 100644 index 0000000..2d4bfba --- /dev/null +++ b/WeChatTweak/Controller/zh-Hant.lproj/TweakPreferencesController.strings @@ -0,0 +1,42 @@ + +/* Class = "NSMenuItem"; title = "開啟"; ObjectID = "10G-t9-s4T"; */ +"10G-t9-s4T.title" = "開啟"; + +/* Class = "NSTextFieldCell"; title = "需重啟客戶端"; ObjectID = "2vl-mc-m3L"; */ +"2vl-mc-m3L.title" = "需重啟客戶端"; + +/* Class = "NSMenuItem"; title = "開啟"; ObjectID = "KQg-jN-y9a"; */ +"KQg-jN-y9a.title" = "開啟"; + +/* Class = "NSMenuItem"; title = "關閉"; ObjectID = "MEN-Kg-wfj"; */ +"MEN-Kg-wfj.title" = "關閉"; + +/* Class = "NSTextFieldCell"; title = "消息撤回通知:"; ObjectID = "UKv-CM-nGt"; */ +"UKv-CM-nGt.title" = "消息撤回通知:"; + +/* Class = "NSMenuItem"; title = "關閉"; ObjectID = "Uk9-Oc-Jtv"; */ +"Uk9-Oc-Jtv.title" = "關閉"; + +/* Class = "NSMenuItem"; title = "關閉"; ObjectID = "Vcv-eD-OM9"; */ +"Vcv-eD-OM9.title" = "關閉"; + +/* Class = "NSMenuItem"; title = "全部接收"; ObjectID = "da4-aJ-lEy"; */ +"da4-aJ-lEy.title" = "全部接收"; + +/* Class = "NSMenuItem"; title = "遮罩"; ObjectID = "gH0-wV-Bx0"; */ +"gH0-wV-Bx0.title" = "遮罩"; + +/* Class = "NSMenuItem"; title = "跟隨聊天設置"; ObjectID = "gec-CY-E1x"; */ +"gec-CY-E1x.title" = "跟隨聊天設置"; + +/* Class = "NSTextFieldCell"; title = "Alfred JSON 壓縮:"; ObjectID = "jHw-2a-B2t"; */ +"jHw-2a-B2t.title" = "Alfred JSON 壓縮:"; + +/* Class = "NSTextFieldCell"; title = "試驗性功能"; ObjectID = "lHs-du-a6F"; */ +"lHs-du-a6F.title" = "試驗性功能"; + +/* Class = "NSTextFieldCell"; title = "消息撤回樣式:"; ObjectID = "mPT-nA-idf"; */ +"mPT-nA-idf.title" = "消息撤回樣式:"; + +/* Class = "NSMenuItem"; title = "經典"; ObjectID = "wRC-UO-k1G"; */ +"wRC-UO-k1G.title" = "經典"; diff --git a/WeChatTweak/Controller/zh-Hant.lproj/TweakPreferencesController.xib b/WeChatTweak/Controller/zh-Hant.lproj/TweakPreferencesController.xib deleted file mode 100644 index 5c42486..0000000 --- a/WeChatTweak/Controller/zh-Hant.lproj/TweakPreferencesController.xib +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/WeChatTweak/Supporting Files/WeChatTweakHeaders.h b/WeChatTweak/Supporting Files/WeChatTweakHeaders.h index 0cb8afe..6545575 100644 --- a/WeChatTweak/Supporting Files/WeChatTweakHeaders.h +++ b/WeChatTweak/Supporting Files/WeChatTweakHeaders.h @@ -27,7 +27,6 @@ typedef NS_ENUM(unsigned int, MessageDataType) { MessageDataTypePrompt = 10000 }; -static NSString * const WeChatTweakPreferenceAutoAuthKey = @"WeChatTweakPreferenceAutoAuthKey"; static NSString * const WeChatTweakPreferenceRevokeNotificationTypeKey = @"WeChatTweakPreferenceRevokeNotificationTypeKey"; @interface NSString (MD5) @@ -115,13 +114,6 @@ static NSString * const WeChatTweakPreferenceRevokeNotificationTypeKey = @"WeCha @end -@interface AccountService: NSObject - -- (BOOL)canAutoAuth; -- (void)AutoAuth; - -@end - @interface MMAvatarService: NSObject - (NSString *)avatarCachePath; diff --git a/WeChatTweak/Supporting Files/en.lproj/Localizable.strings b/WeChatTweak/Supporting Files/en.lproj/Localizable.strings index b4e1c3d..7b38778 100644 --- a/WeChatTweak/Supporting Files/en.lproj/Localizable.strings +++ b/WeChatTweak/Supporting Files/en.lproj/Localizable.strings @@ -10,6 +10,7 @@ "Tweak.Title.Group" = "Group"; "Tweak.Message.InterceptedARecalledMessage" = "[Intercepted a recalled message]\n%@"; "Tweak.Message.Recalled" = "recalled"; +"Tweak.Message.RecalledMark" = "[Recalled]"; "Tweak.Message.Image" = "Image"; "Tweak.Message.Voice" = "Voice"; "Tweak.Message.Video" = "Video"; diff --git a/WeChatTweak/Supporting Files/zh-Hans.lproj/Localizable.strings b/WeChatTweak/Supporting Files/zh-Hans.lproj/Localizable.strings index ed32b1b..eb41e22 100644 --- a/WeChatTweak/Supporting Files/zh-Hans.lproj/Localizable.strings +++ b/WeChatTweak/Supporting Files/zh-Hans.lproj/Localizable.strings @@ -10,6 +10,7 @@ "Tweak.Title.Group" = "群组"; "Tweak.Message.InterceptedARecalledMessage" = "[已拦截一条撤回消息]\n%@"; "Tweak.Message.Recalled" = "撤回了"; +"Tweak.Message.RecalledMark" = "[已撤回]"; "Tweak.Message.Image" = "图片"; "Tweak.Message.Voice" = "语音"; "Tweak.Message.Video" = "视频"; diff --git a/WeChatTweak/Supporting Files/zh-Hant.lproj/Localizable.strings b/WeChatTweak/Supporting Files/zh-Hant.lproj/Localizable.strings index 92fbb46..53c3586 100644 --- a/WeChatTweak/Supporting Files/zh-Hant.lproj/Localizable.strings +++ b/WeChatTweak/Supporting Files/zh-Hant.lproj/Localizable.strings @@ -10,6 +10,7 @@ "Tweak.Title.Group" = "群組"; "Tweak.Message.InterceptedARecalledMessage" = "[已攔截壹條撤回消息]\n%@"; "Tweak.Message.Recalled" = "撤回了"; +"Tweak.Message.RecalledMark" = "[已撤回]"; "Tweak.Message.Image" = "图片"; "Tweak.Message.Voice" = "语音"; "Tweak.Message.Video" = "视频";