Skip to content

Instantly share code, notes, and snippets.

View BandarHL's full-sized avatar
💭
I may be slow to respond.

BandarHelal BandarHL

💭
I may be slow to respond.
View GitHub Profile
@BandarHL
BandarHL / DarkMode.m
Created January 17, 2020 16:47
ios 13 dark mode for whatsapp
#import <UIKit/UIKit.h>
%config(generator=internal)
@interface WAMessage: NSObject
@property (nonatomic, retain) NSAttributedString *attributedText;
@property (nonatomic, retain) NSString *text;
@end
@interface WAMessageReplyContext : NSObject
@BandarHL
BandarHL / fixYouTubeLogin.m
Last active May 6, 2024 13:31
Fix YouTube keychain
static NSString *accessGroupID() {
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
@"bundleSeedID", kSecAttrAccount,
@"", kSecAttrService,
(id)kCFBooleanTrue, kSecReturnAttributes,
nil];
CFDictionaryRef result = nil;
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
if (status == errSecItemNotFound)
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
%hook UITextView
- (void)layoutSubviews {
%orig;
UILongPressGestureRecognizer *longTap = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress)];
@BandarHL
BandarHL / CCFLEXible.m
Created February 22, 2020 22:27
CCFLEXible
#import "CCFLEXible.h"
#import <objc/runtime.h>
#include <dlfcn.h>
@interface FLEXManager : NSObject
+ (instancetype)sharedManager;
- (void)showExplorer;
- (void)hideExplorer;
- (void)toggleExplorer;
@end
@BandarHL
BandarHL / CustomActivity.h
Created April 12, 2020 22:47
Custom UIActivity
//
// CustomActivity.h
// RedditDownloader
//
// Created by BandarHelal on 18/08/1441 AH.
//
#import <UIKit/UIKit.h>
@interface CustomActivity : UIActivity
@BandarHL
BandarHL / FixTwitterKeychain.m
Created August 15, 2020 18:05
Fix Twitter Login for non-JB (IPA)
%hook TFSKeychain
- (NSString *)providerDefaultAccessGroup {
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
@"bundleSeedID", kSecAttrAccount,
@"", kSecAttrService,
(id)kCFBooleanTrue, kSecReturnAttributes,
nil];
CFDictionaryRef result = nil;
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface DownloadManager : NSObject
+ (void)DownloadVideoWithURL:(NSString *)url completionHandler:(void (^)(NSURL *filePath, NSError *error))completionHandler;
@end
@protocol BHDownloadDelegate <NSObject>
- (void)downloadProgress:(float)progress;
- (void)downloadDidFinish:(NSURL *_Nullable)filePath Filename:(NSString *_Nullable)fileName;
- (void)downloadDidFailureWithError:(NSError *)error;
@end
@interface BHDownload : NSObject
{
id delegate;
}
@BandarHL
BandarHL / WASend.xm
Last active December 22, 2021 19:07
#import <UIKit/UIKit.h>
%config(generator=internal)
@interface WAInputBarRoundButton : UIButton
@end
@interface WAInputTextView : UITextView
@end