mirror of
https://github.com/DKJone/DKWechatHelper.git
synced 2026-07-29 06:12:07 +08:00
[v1.0.6](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.6) / 2020-10-16
what's new * 朋友圈转发 * 支持7.0.17 * 更新越狱包7.0.17 * 更新已注入助手的7.0.17未签名包 * 更新越狱源安装包
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
#import "DKGroupFilterController.h"
|
||||
#import "DKCleanFriendsController.h"
|
||||
#import <NotificationCenter/NotificationCenter.h>
|
||||
#import <WebKit/WebKit.h>
|
||||
#import <CoreGraphics/CGGeometry.h>
|
||||
@interface DKHelperSettingController ()<MultiSelectGroupsViewControllerDelegate>{
|
||||
WCTableViewManager * manager;
|
||||
MMUIViewController *helper;
|
||||
@@ -66,7 +68,7 @@
|
||||
[super viewDidAppear:animated];
|
||||
|
||||
if(DKHelperConfig.hasShowTips){return;}
|
||||
[DKHelper showAlertWithTitle:@"重要提示" message:@"本软件完全免费,插件功能仅供学习,由本软件产生的任何利益纠纷须有使用者自行承担。在收到微信团队\"非法客户端提示后\"继续使用可能有封号风险,需使用者自行承担。如遇到提醒,请卸载本软件,更换官方微信客户端" btnTitle:@"我明白了" handler:^(UIButton *sender) {
|
||||
[DKHelper showAlertWithTitle:@"重要提示" message:@"本软件完全免费,插件功能仅供学习,由本软件产生的任何利益纠纷须有使用者自行承担。在收到微信团队\"非法客户端提示后\"继续使用可能有封号风险,需使用者自行承担。如遇到提醒,请卸载本软件,更换官方微信客户端!\n插件开发占用了作者的大量业余时间,同时部分越狱软件源盗用插件,甚至修改插件名称,如果在使用后觉得有用还请支持!" btnTitle:@"我明白了" handler:^(UIButton *sender) {
|
||||
DKHelperConfig.hasShowTips = true;
|
||||
} btnTitle:@"有风险我不使用了" handler:^(UIButton *sender) {
|
||||
exit(0);
|
||||
@@ -138,20 +140,25 @@
|
||||
WCTableViewCellManager *callKitCell = [DKHelper switchCellWithSel:@selector(callKitEnable:) target:self title:@"使用CallKit" switchOn:[DKHelperConfig callKitEnable]];
|
||||
[toBeNO1Section addCell:callKitCell];
|
||||
|
||||
WCTableViewCellManager *timelineForwardCell = [DKHelper switchCellWithSel:@selector(forwardTimeline:) target:self title:@"朋友圈转发" switchOn:[DKHelperConfig timeLineForwardEnable]];
|
||||
[toBeNO1Section addCell:timelineForwardCell];
|
||||
|
||||
|
||||
|
||||
//MARK: 支持作者
|
||||
WCTableViewSectionManager *supportAuthorSection = [DKHelper sectionManage];
|
||||
supportAuthorSection.headerTitle = @"支持作者";
|
||||
[manager addSection:supportAuthorSection];
|
||||
WCTableViewNormalCellManager * payMeCell = [DKHelper cellWithSel:@selector(payForMe) target:self title:@"请作者喝杯咖啡"];
|
||||
WCTableViewNormalCellManager * payMeCell = [DKHelper cellWithSel:@selector(payForMe) target:self title:@"给作者倒一杯卡布奇诺"];
|
||||
[supportAuthorSection addCell:payMeCell];
|
||||
|
||||
WCTableViewNormalCellManager *myBlogCell = [DKHelper cellWithSel:@selector(openBlog) target:self title:@"我的博客"];
|
||||
WCTableViewNormalCellManager *myBlogCell = [DKHelper cellWithSel:@selector(openBlog) target:self title:@"关于本软件"];
|
||||
[supportAuthorSection addCell:myBlogCell];
|
||||
|
||||
WCTableViewNormalCellManager *myGitHubCell = [DKHelper cellWithSel:@selector(openGitHub) target:self title:@"本项目GitHub" rightValue:@"请给个⭐️" accessoryType:1];
|
||||
[supportAuthorSection addCell:myGitHubCell];
|
||||
WCTableViewNormalCellManager *joinGroupCell = [DKHelper cellWithSel:@selector(joinGroup) target:self title:@"加入交流群"];
|
||||
[supportAuthorSection addCell:joinGroupCell];
|
||||
|
||||
|
||||
//MARK: 积攒助手
|
||||
@@ -255,6 +262,10 @@
|
||||
DKHelperConfig.preventRevoke = sender.isOn;
|
||||
}
|
||||
|
||||
- (void)forwardTimeline:(UISwitch *)sender{
|
||||
DKHelperConfig.timeLineForwardEnable = sender.isOn;
|
||||
}
|
||||
|
||||
- (void)changedSteps:(UISwitch *)sender{
|
||||
DKHelperConfig.changeSteps = sender.isOn;
|
||||
[self reloadTableData];
|
||||
@@ -325,6 +336,13 @@
|
||||
item.codeUrl = @"m0E25xJo038.ran,NI96(j";
|
||||
[scMgr retryRequetScanResult:item viewController:self];
|
||||
}
|
||||
- (void)joinGroup{
|
||||
ScanQRCodeResultsMgr *scMgr = [[objc_getClass("MMServiceCenter") defaultCenter] getService:[objc_getClass("ScanQRCodeResultsMgr") class]];
|
||||
ScanCodeHistoryItem *item = [[objc_getClass("ScanCodeHistoryItem") alloc] init];
|
||||
item.type = @"QR_CODE";
|
||||
item.codeUrl = @"https://weixin.qq.com/g/AQYAAHh7lIFHinAoS0lK9bf4Ew4iQs_looYQ8idimgU-BlwZh-agX8grDS1Gwvuq";
|
||||
[scMgr retryRequetScanResult:item viewController:self];
|
||||
}
|
||||
|
||||
- (void)openBlog{
|
||||
NSURL *blogUrl = [NSURL URLWithString:@"https://www.jianshu.com/p/8f3eae328a20"];
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -426,15 +426,61 @@
|
||||
}
|
||||
%end
|
||||
|
||||
%hook CContact
|
||||
- (BOOL)isEqual:(CContact *)other
|
||||
{
|
||||
return [other.m_nsUsrName isEqual: self.m_nsUsrName];
|
||||
%hook WCOperateFloatView
|
||||
|
||||
%new
|
||||
-(UIButton *)m_shareBtn{
|
||||
static char m_shareBtnKey;
|
||||
UIButton * btn = objc_getAssociatedObject(self, &m_shareBtnKey);
|
||||
if (!btn) {
|
||||
btn = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[btn setTitle:@" 转发" forState:UIControlStateNormal];
|
||||
[btn addTarget:self action:@selector(forwordTimeLine:) forControlEvents:UIControlEventTouchUpInside];
|
||||
[btn setTitleColor:self.m_likeBtn.currentTitleColor forState:0];
|
||||
btn.titleLabel.font = self.m_likeBtn.titleLabel.font;
|
||||
[self.m_likeBtn.superview addSubview:btn];
|
||||
NSString *base64Str = @"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABf0lEQVQ4T62UvyuFYRTHP9/JJimjMpgYTBIDd5XEIIlB9x+Q5U5+xEIZLDabUoQsNtS9G5MyXImk3EHK/3B09Ly31/X+cG9Onek5z+c5z/l+n0f8c+ivPDMrAAVJG1l7mgWWgc0saCvAKnCWBm0F2A+cpEGbBkqSmfWlQXOBZjbgYgCDwIIDXZQ0aCrQzOaAZWAIuAEugaqk00jlJOgvYChaA6aAFeBY0nuaVRqhP4CxxQ9gVZJ3lhs/oAnt1ySN51JiBWa2FMYzW+/QzNwK3cCkpM+/As1sAjgAZiRVIsWKwHZ4Wo9NwFz5W2Ba0oXvi4Cu4L2kUrBEOzAMjIXsAjw7YrbpBZ6BeUlHURNu0h7gFXC/vQRlveM34AF4AipAG1AOxu4Me0qS9uM3cqB7bRS4A3y4556SvOt6hN8mAnrtoaTdxvE40H+QEcBP2pFUS5phBASu3eiS1pPqIuCWpKssMWLAPUl+k8T4fuiSfFaZEYBFSYtZhbmfQ95Bjetfmweww0YOfToAAAAASUVORK5CYII=";
|
||||
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:base64Str options:NSDataBase64DecodingIgnoreUnknownCharacters];
|
||||
UIImage *image = [UIImage imageWithData:imageData ];
|
||||
[btn setImage:image forState:0];
|
||||
[btn setTintColor:self.m_likeBtn.tintColor];
|
||||
objc_setAssociatedObject(self, &m_shareBtnKey, btn, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||
|
||||
}
|
||||
return btn;
|
||||
}
|
||||
|
||||
%new
|
||||
-(UIImageView *)m_lineView2{
|
||||
static char m_lineView2Key;
|
||||
UIImageView * imageView = objc_getAssociatedObject(self, &m_lineView2Key);
|
||||
if (!imageView) {
|
||||
imageView = [[UIImageView alloc] initWithImage:MSHookIvar<UIImageView *>(self, "m_lineView").image];
|
||||
[self.m_likeBtn.superview addSubview: imageView];
|
||||
objc_setAssociatedObject(self, &m_lineView2Key, imageView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||
}
|
||||
return imageView;
|
||||
}
|
||||
|
||||
- (void)showWithItemData:(id)arg1 tipPoint:(struct CGPoint)arg2{
|
||||
%orig(arg1,arg2);
|
||||
if (DKHelperConfig.timeLineForwardEnable){
|
||||
self.frame = CGRectOffset(CGRectInset(self.frame, self.frame.size.width / -4, 0),self.frame.size.width / -4,0);
|
||||
self.m_shareBtn.frame = CGRectOffset(self.m_likeBtn.frame, self.m_likeBtn.frame.size.width * 2, 0);
|
||||
self.m_lineView2.frame = CGRectOffset(MSHookIvar<UIImageView *>(self, "m_lineView").frame, [self buttonWidth:self.m_likeBtn], 0);
|
||||
}
|
||||
}
|
||||
|
||||
%new
|
||||
- (void)forwordTimeLine:(id)arg1{
|
||||
WCForwardViewController *forwardVC = [[objc_getClass("WCForwardViewController") alloc] initWithDataItem:self.m_item];
|
||||
[self.navigationController pushViewController:forwardVC animated:true];
|
||||
}
|
||||
|
||||
%end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//%hook ScanQRCodeResultsMgr
|
||||
//- (void)retryRequetScanResult:(id)arg1 viewController:(id)arg2{
|
||||
// %orig;
|
||||
//}
|
||||
//%end
|
||||
|
||||
@@ -77,6 +77,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/// 启用callkit
|
||||
+(BOOL)callKitEnable;
|
||||
+(void)setCallKitEnable:(BOOL)value;
|
||||
/// 启用朋友圈转发
|
||||
+(BOOL)timeLineForwardEnable;
|
||||
+(void)setTimeLineForwardEnable:(BOOL)value;
|
||||
|
||||
/// 启用积攒助手
|
||||
+(BOOL)likeCommentEnable;
|
||||
|
||||
@@ -47,3 +47,19 @@
|
||||
|
||||
@end
|
||||
|
||||
@interface WCUIActionSheet : UIWindow
|
||||
|
||||
- (void)addDestructiveButtonTitle:(id)arg1 target:(id)arg2 sel:(SEL)arg3;
|
||||
- (void)addCancelBtnTitle:(id)arg1 target:(id)arg2 sel:(SEL)arg3;
|
||||
- (void)addBtnTitle:(id)arg1 target:(id)arg2 sel:(SEL)arg3;
|
||||
- (id)initWithTitle:(id)arg1;
|
||||
- (id)init;
|
||||
- (void)showInView:(id)arg1;
|
||||
|
||||
@end
|
||||
|
||||
//WCUIActionSheet *actionSheet = [[objc_getClass("WCUIActionSheet") alloc] initWithTitle:@"朋友圈转发"];
|
||||
//for (NSString* str in @[@"转发给好友",@"转发到朋友圈"]){
|
||||
// [actionSheet addBtnTitle:str target:self sel:@selector(startForword:)];
|
||||
//}
|
||||
//[actionSheet showInView:self];
|
||||
|
||||
@@ -321,6 +321,13 @@
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@interface WCContentItem : NSObject
|
||||
@property(retain, nonatomic) NSString *linkUrl;
|
||||
@property(nonatomic) int type;
|
||||
@property(retain, nonatomic) NSMutableArray *mediaList;
|
||||
@end
|
||||
|
||||
/// 朋友圈数据
|
||||
@interface WCDataItem : NSObject
|
||||
@property (retain, nonatomic) NSMutableArray * likeUsers;
|
||||
@@ -329,9 +336,18 @@
|
||||
@property (retain, nonatomic) NSMutableArray * commentUsers;
|
||||
@property (nonatomic) int commentCount;
|
||||
@property(nonatomic,assign) BOOL likeFlag;
|
||||
@property(nonatomic) unsigned int createtime;
|
||||
@property(nonatomic) unsigned int createtime;
|
||||
@property(retain, nonatomic) NSString *contentDesc;
|
||||
@property(retain, nonatomic) WCContentItem *contentObj;
|
||||
|
||||
@end
|
||||
@interface WCNewCommitViewController : MMUIViewController
|
||||
- (id)initWithSightDraft:(id)arg1;
|
||||
@end
|
||||
@interface WCForwardViewController : WCNewCommitViewController
|
||||
- (id)initWithDataItem:(id)arg1 sessionID:(id)arg2;
|
||||
- (id)initWithDataItem:(id)arg1;
|
||||
@end
|
||||
|
||||
|
||||
@interface SettingUtil : NSObject
|
||||
@@ -457,6 +473,29 @@
|
||||
- (void)setLabelText:(id)arg1;
|
||||
- (void)ShowTipView:(id)arg1 Title:(id)arg2 Delay:(double)arg3;
|
||||
|
||||
@end
|
||||
|
||||
@interface WCOperateFloatView : UIView{
|
||||
UIImageView *m_lineView;
|
||||
}
|
||||
|
||||
@property(nonatomic) __weak UINavigationController *navigationController;
|
||||
@property(readonly, nonatomic) UIButton *m_commentBtn;
|
||||
@property(readonly, nonatomic) UIButton *m_likeBtn;
|
||||
@property(nonatomic,strong) UIButton *m_shareBtn;
|
||||
@property(nonatomic,strong)UIImageView *m_lineView2;
|
||||
@property(readonly, nonatomic) WCDataItem *m_item;
|
||||
- (void)onLikeItem:(id)arg1;
|
||||
- (void)hide;
|
||||
- (void)animationDidStopHide;
|
||||
- (void)animationDidStop;
|
||||
- (void)showWithItemData:(id)arg1 tipPoint:(struct CGPoint)arg2;
|
||||
- (id)init;
|
||||
- (double)protectWidth:(double)arg1;
|
||||
- (double)buttonWidth:(id)arg1;
|
||||
/// 朋友圈转发
|
||||
- (void)forwordTimeLine:(id)arg1;
|
||||
|
||||
@end
|
||||
#endif /* WechatHeaders_h */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user