/* }}} */
#endif
+@interface DOMCSSStyleSheet : NSObject
+- (int) addRule:(NSString *)rule style:(NSString *)style index:(unsigned)index;
+- (void) deleteRule:(unsigned)index;
+@end
+
+@interface DOMStyleSheetList : NSObject
+- (DOMCSSStyleSheet *) item:(unsigned)index;
+@end
+
+@interface DOMDocument : NSObject
+- (DOMStyleSheetList *) styleSheets;
+@end
+
static float CYScrollViewDecelerationRateNormal;
@interface NSURL (Apple)
@interface CydgetWebView : UIWebView {
}
+- (void) updateStyles;
+
@end
MSClassHook(UIApplication)
[super webView:view addMessageToConsole:message];
}
+- (void) updateStyles {
+ DOMCSSStyleSheet *sheet([[[[[[self _documentView] webView] mainFrame] DOMDocument] styleSheets] item:0]);
+ [sheet addRule:@"cydget" style:@"color: black" index:0];
+ [sheet deleteRule:0];
+}
+
@end
@interface WebCydgetLockScreenView : UIView <UIWebViewDelegate> {
NSString *cycript_;
}
+- (void) updateStyles;
+
@end
@implementation WebCydgetLockScreenView
}
}
+- (void) updateStyles {
+ [webview_ updateStyles];
+}
+
@end
@interface WebCycriptLockScreenController : SBAwayViewPluginController {
[super purgeView];
}
+- (void) updateStyles {
+ [foreground_ updateStyles];
+ [background_ updateStyles];
+}
+
- (UIView *) backgroundView {
return background_;
}