Since Cydia relies on web views to show packages, this tweak scans for outgoing urls, references with a blocked list, and forbids ad requests.
%hook CydiaWebViewController
- (NSURLRequest *) webThreadWebView:(WebView *)view resource:(id)resource willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source {
// see file above
}
%end