Is it possible to manipulate CSS data before it is parsed in WebKit?
I've tried using the delegate method
- (NSURLRequest *)webView:(WebView *)sender
resource:(id)identifier
willSendRequest:(NSURLRequest *)request
redirectResponse:(NSURLResponse *)redirectResponse
fromDataSource:(WebDataSource *)dataSource
which I can make work by writing down my manipulated CSS, then returning an alternative NSURLRequest that points to it. This works fine, apart from the DOM tree then contains the path to the manipulated URLRequest, not the original, which is bad news for my app.
Can I manipulate the data in memory before it's parsed?