Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.

bsmr

macrumors 65816
Oct 4, 2005
1,136
301
Germany
and still we don't have a good adblocker for safari. So sad.

Wish uBlock Origin would work for safari under el capitan.
 

Bbeelzebub

macrumors regular
Sep 7, 2015
100
21
Any workaround how to add origin filters (i have installed it on chrome but i want to use its filters on safari with adguard) on Adguard...?

For lists that aren't there, you have to find a clickable ABP formatted link such as the ones on Fanboy and those will add to your custom filters. Additionally, you can import them in after exporting them out on uBlock. Unfortunately, lists won't import in as they don't export out on uBlock. They will have had to come from the custom filers section of uBlock.


I haven't tried, but I imagine if you want a specific list that isn't offered by adguard, just go to the url with the filter rules, copy/paste that into uBlock's custom section, export to file. Then import it into AdGuard. (Way more effort than I did.)

I just found the lists I always use, if they weren't there, found clickable adds online for them. Then imported custom rules that block Google+, FB, Twitter, Disqus, etc. or any other service where I may be subjected to unintelligent people on the internet in comment sections.
 
Last edited:

Bbeelzebub

macrumors regular
Sep 7, 2015
100
21
Does AdGuard use Apple's new Content Blocking API (like Wipr)? Or is it like uBlock or ABP?

It's the old format. The new content blocker API only allows XXX amount of rules and they are predetermined by the developers. Until that changes or the blockers allow for custom settings, they just won't be as effective or personalized for many. Better than nothing, but the old ones are still offering more flexibility.

Hopefully it's temporary, as I see the IOS content blockers are starting to get differentiating features. It just hasn't carried over to OS X yet.
 

avatar-adg

macrumors 6502
May 15, 2015
282
241
Moscow
Does AdGuard use Apple's new Content Blocking API (like Wipr)? Or is it like uBlock or ABP?

We are working on a new version of the Safari extension which uses Content Blocking API:
https://github.com/AdguardTeam/AdguardBrowserExtension/issues/16

In fact that task is closed now, so beta will be available in the end of this week.


Frankly, we are not satisfied with that API at all. We have to remove some functions from the extension because of this.

Current problems:
1. It is slow (despite what webkit devs are telling). Why inventing a bicycle instead of looking at existing ad blockers code?
2. Current rules syntax is not "flexible" enough. We can convert only part of filter rules to that new syntax (ok, it's the most part, but anyway).
3. There are lots of restrictions. For instance you can't register more than 50k rules per content blocker. Why? Why 50k? Single EasyList contains about 50k filters.

Ok, we have handled it for iOS by compressing filters, we have done the same for OS X, but anyway, that restriction does not make any sense.

4. It is impossible to "debug" your content blocker. You can't detect which rule has been triggered or which request has been blocked. So creating new filters for Safari or fixing incorrectly blocked content is quite annoying.
 
Last edited:

Bbeelzebub

macrumors regular
Sep 7, 2015
100
21
In fact that task is closed now, so beta will be available in the end of this week.

Definitely looking forward to this. If your extension allows for the blocking of Youtube commercials without a delay, it will already be 10000x better than any of the others.
 

avatar-adg

macrumors 6502
May 15, 2015
282
241
Moscow
Definitely looking forward to this. If your extension allows for the blocking of Youtube commercials without a delay, it will already be 10000x better than any of the others.

I'll post here a link when some working dev build is ready.
This youtube delay issue is not much of a problem for OS X extension.

But I don't yet know how to fix it for mobile content blocker as there is not much we can do in iOS. Looks like a Safari bug to me, blocked Ajax requests are disappearing which is completely unexpected by the webpage. I should find some time and file a bug report on this issue.
 

Rafagon

macrumors 6502a
Jun 19, 2011
879
975
Miami, FL

avatar-adg

macrumors 6502
May 15, 2015
282
241
Moscow
Just keep in mind that the version I've posted here is more like a nightly build, not official beta yet.

There is one known major issue: it does not register content blocker on browser startup. So if you restart Safari you need to poke AG (go to settings and turn some filter off and on again).
 

Choca

macrumors newbie
Nov 20, 2015
9
6
I have been using unlock but have just tried a few content blockers, I found adguard a lot slower but clear much faster and the fastest one yet
 

xmichaelp

macrumors 68000
Jul 10, 2012
1,815
626
I'd love to use one of these but they're all a nonstarter if they have the delay before youtube videos. ublock just goes right to the video.
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,481
16,195
California
I'd love to use one of these but they're all a nonstarter if they have the delay before youtube videos. ublock just goes right to the video.

I'm using Wipr with the YouTube Center YouTube extension and never see a YT ad and the videos start right away.
 

Tomovich

macrumors member
Dec 5, 2007
81
2
So what's currently the best solution to block trackers, ads and pop-up windows and have a faster Safari at the same time?
 

clee290

macrumors member
Oct 28, 2010
40
36
Looks like the recent Safari update (9.0.2) has fixed the video delay when using content blockers.
 
  • Like
Reactions: flowsy

Mr. Wonderful

macrumors 6502a
Feb 19, 2009
571
34
So do we have any speed tests for the new content blockers? Which ones are the fastest or best? How much faster are they compared to AdBlock/AdBlock+ on OS X?
 

avatar-adg

macrumors 6502
May 15, 2015
282
241
Moscow
So do we have any speed tests for the new content blockers? Which ones are the fastest or best? How much faster are they compared to AdBlock/AdBlock+ on OS X?

It's not right to compare them. ABP uses some huge filters like EasyList and EasyPrivacy while the new content blockers simply cannot use so huge filters because of ridiculous 50k filters limitation (the single EasyList has 51k rules!). So most of them uses some small subsets of EasyList/EasyPrivacy and who knowns which rules are missing.
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,481
16,195
California
It's not right to compare them. ABP uses some huge filters like EasyList and EasyPrivacy while the new content blockers simply cannot use so huge filters because of ridiculous 50k filters limitation (the single EasyList has 51k rules!). So most of them uses some small subsets of EasyList/EasyPrivacy and who knowns which rules are missing.
Wouldn't that make the content blockers faster though? In theory anyway.
 

avatar-adg

macrumors 6502
May 15, 2015
282
241
Moscow
Wouldn't that make the content blockers faster though? In theory anyway.

Ok, let's check an example.

To fully load page A browser makes 100 requests.

Blocker #1 has comprehensive filters and blocks 50 requests. But it adds an overhead of 10ms to each request (total overhead is 1000ms).
Blocker #2 has smaller filters and blocks 25 requests. It adds an overhead of 1ms to each request (total overhead is 100ms).

In which case page is loaded faster?

The answer is: it depends your connection speed and on the website speed.
 

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,481
16,195
California
Ok, let's check an example.

To fully load page A browser makes 100 requests.

Blocker #1 has comprehensive filters and blocks 50 requests. But it adds an overhead of 10ms to each request (total overhead is 1000ms).
Blocker #2 has smaller filters and blocks 25 requests. It adds an overhead of 1ms to each request (total overhead is 100ms).

In which case page is loaded faster?

The answer is: it depends your connection speed and on the website speed.

Awww now don't make me maths this early! :D

I get what you are saying it is a bit of an unfair comparison, but I still think there is some value in making the comparison nonetheless. For me anyway, the content blocker method is providing faster page loads on most sites at the small expense of seeing a few more Twitter/FaceBook/Reddit social buttons scattered around.
 

Anonymous123

macrumors regular
Jul 22, 2009
103
295
It's not right to compare them. ABP uses some huge filters like EasyList and EasyPrivacy while the new content blockers simply cannot use so huge filters because of ridiculous 50k filters limitation (the single EasyList has 51k rules!). So most of them uses some small subsets of EasyList/EasyPrivacy and who knowns which rules are missing.

Is the Adguard extension for OS X limited to 50k filter rules? What about iOS?
 

Tomovich

macrumors member
Dec 5, 2007
81
2
How do I know which lists to enable in Adguard? Are there lists that share the same rules which make them unnecessary?
 

avatar-adg

macrumors 6502
May 15, 2015
282
241
Moscow
Is the Adguard extension for OS X limited to 50k filter rules? What about iOS?

The current stable version - no, it uses the old API, not content blocker.
The new one (which will go to beta testing stage on monday) - sure, it is limited.

What we do to overcome this:
1. Filters are compressed
2. By default OS X extension uses "optimized" filter lists (the same as iOS app uses). These "optimized" filters do not contain redundant (or rarely used) rules.

How do we do this? If you use Adguard browser extension, there's an option to "Send ad filters stats" (off by default).
There're lots of users who turned it on so with their help we have smaller/optimized filters.

How do I know which lists to enable in Adguard? Are there lists that share the same rules which make them unnecessary?

Anyway duplicate rules are ignored.

Generally default lists are good enough. Also there're some special lists you may be interested.

Fanboy's Social Blocking List
Fanboy's Social Blocking List solely removes Social Media content on web pages such as the Facebook like button and other widgets.

This filter is like our Social filter, but it removes more. We normally remove only widgets (like, +1 buttons, group widgets and such), while this filter also removes links to social profiles.

Fanboy's Annoyance List
Fanboy's Annoyance List blocks Social Media content, in-page pop-ups and other annoyances; thereby substantially decreasing web page loading times and uncluttering them. Fanboy's Social Blocking List is already included, there is no need to subscribe to it if you have you already have Fanboy's Annoyance List. It also removes EU cookies alerts and such.

Prebake
Blocks EU cookie law notices.

EasyPrivacy
Fanboy's Enhanced Tracking List

These two filters also block tracking and such. These are very good and comprehensive filters, but using them increases chance of incorrect blocking or breaking some pages load.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.