@end
@interface DOMDocument : NSObject
+- (NSString *) selectedStylesheetSet;
+- (void) setSelectedStylesheetSet:(NSString *)value;
- (DOMStyleSheetList *) styleSheets;
@end
@implementation UIWebView (WebCycript)
- (void) updateStyles {
- DOMCSSStyleSheet *sheet([[[[[[self _documentView] webView] mainFrame] DOMDocument] styleSheets] item:0]);
- [sheet addRule:@"cydget" style:@"color: black" index:0];
- [sheet deleteRule:0];
+ DOMDocument *document([[[[self _documentView] webView] mainFrame] DOMDocument]);
+ [document setSelectedStylesheetSet:[document selectedStylesheetSet]];
}
@end