News for hackers. Stuff that matters.
Re:Adblock Plus for Safari released by applecore on Tuesday May 06, 2014 @09:15AM (#7704203)
Extensions in Chrome and Safari are not as powerful as the ones in Firefox. There's no API in Chrome and Safari to prevent network requests, so extensions can't fully block ads like they do in Firefox. They're only capable of hiding ads on the page.
Re:Adblock Plus for Safari released by sirn on Tuesday May 06, 2014 @09:41AM (#7704343)
> They're only capable of hiding ads on the page.

This point is untrue, at least in Safari, there is beforeload event and canLoad[1] function for preventing content from being loaded at all, not just hiding it after it is loaded.

https://developer.apple.com/library/safari/documentation/Too...

Re:Adblock Plus for Safari released by wallunit on Tuesday May 06, 2014 @09:36AM (#7704314)
Chrome has a webRequest API [1], that lets you block any request initiated by your browser. Adblock Plus is using that API, and blocks everything that it blocks on Firefox also on Chrome.

But even on Safari Adblock Plus blocks requests loading images, frames, scripts and other resources, by cancelling the beforeload event. Though it is not possible to block XMLHttpRequests and requests initiated by third-party plugins like Flash.

[1] https://developer.chrome.com/extensions/webRequest

Re:Adblock Plus for Safari released by gorhill on Tuesday May 06, 2014 @09:39AM (#7704330)
> 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

Edit: To make it clear my comment is about chromium-based browsers.

Re:Adblock Plus for Safari released by _delirium on Tuesday May 06, 2014 @09:56AM (#7704435)
It 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.