Skip to content

Instantly share code, notes, and snippets.

-->
<authentication mode="Windows" />
@jontelang
jontelang / Tweak.xm
Created December 18, 2012 13:56
Center the badges
%hook SBIconImageContainerView
@interface SBIconImageContainerView : UIView
@end
-(void)addSubview:(UIView *)view{
Class _icon = objc_getClass("UIImageView");
if( [view isKindOfClass:_icon] )
{
[view setCenter:CGPointMake(self.bounds.size.width/2,view.bounds.origin.y)];
@jontelang
jontelang / Tweak.xm
Created December 18, 2012 14:33
Center badges 2
/*%hook SBIconImageContainerView
@interface SBIconImageContainerView : UIView
@end
-(void)addSubview:(UIView *)view{
//Class _icon = objc_getClass("SBIconBadgeImage");
Class _icon = objc_getClass("UIImageView");
if( [view isKindOfClass:_icon] )
{
@jontelang
jontelang / snippet.txt
Created December 18, 2012 14:49
error
Dec 18 22:48:25 unknown voiced[395] <Notice>: MS:Notice: Installing: (null) [voiced] (690.10)
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
Dec 18 22:48:25 unknown SpringBoard[381] <Warning>: __________________________
@jontelang
jontelang / Tweak.xm
Created December 18, 2012 15:35
SBiconview
%hook SBIconView
@interface SBIconView : UIView
@end
-(void)updateBadge{
%orig;
UIImageView *v = MSHookIvar<UIImageView *>(self, "_badgeView");
[v setCenter:CGPointMake(self.bounds.size.width/2,self.bounds.origin.y)];
}
@jontelang
jontelang / SBIconView.h
Created December 18, 2012 15:36
SBIconView header
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: (null)
*/
#import "SBIconObserver.h"
#import "SpringBoard-Structs.h"
//#import <XXUnknownSuperclass.h> // Unknown library
@jontelang
jontelang / Tweak.xm
Last active December 10, 2015 06:49
Boover
%hook SBIconBadgeImage
@interface SBIconBadgeImage
@property(readonly, copy) NSString* text;
@end
-(id)initWithCGImage:(CGImageRef)cgimage scale:(float)scale orientation:(int)orientation text:(id)text{
NSDictionary *d = [[NSDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/com.jontelang.boover.plist"];
float s = [[d valueForKey:@"scale"] floatValue];
@jontelang
jontelang / .xm
Created February 23, 2013 08:15
Tweak
%hook UIView
-(void)drawRect:(CGRect)rect{
NSLog(@" - - - -- - - -- - - -- - - - -- - - - - %@", self);
self.layer.borderWidth = 2.0f;
%orig;
}
%end
@jontelang
jontelang / Tweak.xm
Created February 23, 2013 08:15
asd
%hook UIView
-(void)drawRect:(CGRect)rect{
NSLog(@" - - - -- - - -- - - -- - - - -- - - - - %@", self);
self.layer.borderWidth = 2.0f;
%orig;
}
%end
@interface aclass : NSObject{
-(void)talk;
}
@end