3 ms·
> There's no API in Chrome and Safari to prevent network requests Wrong (for Chromium-based browsers). I am genuinely curious about how you came to believe thi
by gorhill 12y ago
> There's no API in Chrome and Safari to prevent network requests
Wrong (for Chromium-based browsers). I am genuinely curious about how you came to believe this. Trying to understand how come that myth is still so spread.
Here, the API:
https://developer.chrome.com/extensions/webRequest https://developer.chrome.com/extensions/webRequest
Edit: To make it clear my comment is about chromium-based browsers.
- _delirium 12y agoIt used to be true (for years) that Chrome extensions couldn't block loading, so my guess is not everyone's realized that it's changed. Pre-2012, Chrome had no way to block a request, so you could write an ad-hiding extension, but not an extension that blocked web-bug/tracker loading. The webRequest API was added in 2012, so now extensions can do that.