Skip to content

Instantly share code, notes, and snippets.

@wh1te4ever
wh1te4ever / MultiLineFix.m
Last active July 23, 2023 04:48
Fix sideload for LINE
//
// MutliLineFix.m
// MultiLineFix
//
// Created by Seo Hyun-gyu on 2023/03/04.
//
#import <Foundation/Foundation.h>
#import "MultiLineFix.h"
#import "fishhook.h"
@PoomSmart
PoomSmart / enable-text-recognition.sh
Last active August 19, 2021 04:53
Enable Live Text Recognition on Intel-based Mac running macOS Monterey (12.0b1)
#!/bin/bash
APP_TARGETS=(com.apple.Photos com.apple.Preview com.apple.quicklook.QuickLookUIService com.apple.Safari)
for APP_TARGET in "${APP_TARGETS[@]}"
do
defaults write /Users/$USER/Library/Containers/$APP_TARGET/Data/Library/Preferences/com.apple.VisionKit.InternalSettings com.apple.VisionKit.InternalSettings.overrideDeviceAvailability -bool yes
done
@CPDigitalDarkroom
CPDigitalDarkroom / generateIconImageWithInfo.m
Created November 13, 2019 20:51
Generate icon image on iOS 13
struct SBIconImageInfo {
struct CGSize size;
double scale;
double continuousCornerRadius;
};
- (UIImage *)iconImageForIdentifier:(NSString *)identifier {
SBIconController *iconController = [NSClassFromString(@"SBIconController") sharedInstance];
SBIcon *icon = [iconController.model expectedIconForDisplayIdentifier:identifier];
@iMokhles
iMokhles / CFPreferencesAppSynchronize with ARC and non ARC.xm
Last active August 16, 2020 13:28
How to use CFPreferencesAppSynchronize with ARC and non ARC (iOS8 Tweaks) + CFNotificationCallback (option) Works fine with Sandbox Apps
static BOOL tweakEnBOOL;
#define SETTINGSFILENEW "com.imokhles.Prefs"
#define PREFERENCES_CHANGED_NOTIFICATION "com.imokhles.Prefs.preferences-changed"
// non ARC
static void iMoLoadPreferences() {
CFPreferencesAppSynchronize(CFSTR(SETTINGSFILENEW));
tweakEnBOOL = !CFPreferencesCopyAppValue(CFSTR("Enabled"), CFSTR(SETTINGSFILENEW)) ? YES : [(id)CFBridgingRelease(CFPreferencesCopyAppValue(CFSTR("Enabled"), CFSTR(SETTINGSFILENEW))) boolValue];
}
nic 1
prompt TARGET "BulletinBoard Provider Display Identifier" "com.apple.mobilesafari"
dir BulletinBoard
dir layout
dir layout/Library
dir layout/Library/WeeLoader
dir layout/Library/WeeLoader/BulletinBoardPlugins
dir layout/Library/WeeLoader/BulletinBoardPlugins/@@PROJECTNAME@@.bundle
file 366 BulletinBoard/BulletinBoard.h
#import <Foundation/Foundation.h>