Live data from Hacker News

How Google Chrome’s ad blocker works

ctrl.blog

51–60 of 326 posts

Re: How Google Chrome’s ad blocker works

#51
post #37

If you want to go read the source yourself, I believe this is the implementation: https://cs.chromium.org/chromium/src/extensions/browser/api/... And the code reviews cover the feature are tagged with DNR: https://chromium-review.googlesource.com/?polygerrit=0#/q/Dn... Edit: this may just be the net blocking code.

Looks basically like an ad block filter rule list parser (there are others in C++ including one I wrote [0] and one Brave people wrote [1]).

Of course, looking at the code, I am not seeing where cosmetic filters are supported. Also, you should include the code from https://cs.chromium.org/chromium/src/extensions/common/api/d... in this I think. Also, there's the safe browsing code at https://cs.chromium.org/chromium/src/components/safe_browsin... of which the author references db/util.h.

0 - https://github.com/cretz/doogie/blob/master/src/blocker_rule... 1 - https://github.com/brave/ad-block

Re: How Google Chrome’s ad blocker works

#53

It's a bit surreal that an advertising based company's browser will now block annoying ads by default while the privacy focused Mozilla corporation's browser is still not implementing any kind of built-in ad blocking.

You should not see this as a Google vs Mozilla thing but as a Google vs adblockers and Google vs its competing advertising networks issue. Then it makes much more sense.

Well, I have Mozilla's back personally since I've always used only Firefox ever since version 1 and never used Chrome except for trying it out for a test drive from time to time, but the millions of Firefox users worldwide will now have one more reason to jump ship to Chrome and that's something Firefox can't afford at this point. Built-in ad blocking is just too good to pass up. Firefox needs to implement their own version soon, IMO.

Re: How Google Chrome’s ad blocker works

#56
post #14

How will this not lead to google strangling their competitors. Are we really going to have to just trust them to use this fairly? Will we really expect google to interpret the Better Ads Standard without any bias, treating their own ads equally to other ads? Maybe they will be good, but I for one am not comfortable with this. Imagine what happens when chrome decides Facebook ads deserve to be blocked.

Among the rest, this will lead to competitors promoting non-chrome.

Re: How Google Chrome’s ad blocker works

#57

This is a good thing. Advertising is one of the most effective ways companies have to let people know about their products - I'd say they're essential in free market economies. But having ads is one thing and completely disrupting the user experience is another. Finding a balance is a better approach than blocking all ads.

Two things about ads.

They don't seek to inform you so much as they seek to inform you that something exists whilst manipulating your emotions to get a particular reaction out of you and millions of other people. This is particularly blatant in AV ads.

The other thing, mainly regarding software ads, is they don't seek to inform you so much as manipulate you whilst tracking your every move to guarantee that the ad was effective. This is particularly blatant with the Google and Facebook ad networks, but pretty much almost any 2-bit ad company you've heard of on the web at least tries to do something similar.

So in the end, advertising has at least two major problems with trying to either 1. manipulate you directly through your emotions or 2. manipulating your computer bandwidth and CPU time to violate your privacy and oftentimes, security.

Regarding #1, there are always going to be people that think they're smart enough, intelligent enough, or logical enough that they will never fall prey to this vector of advertising, and almost universally they are wrong. I don't doubt some few exceptions exist, I just don't think I've ever actually met someone who is an exception, nor am I under any illusions that I am. Your best defense is to cut ads out of your life to greatest extent possible. You'll probably never cut bus ads out of your life, if you at all enjoy city living, but you don't have to let advertisers into your home either.

How do you find out about things after that point? If you are at all social, read any kinds of news sites, invest any money into markets, have any kind of skin in some kind of game, or engage in any kind of recreational activities, you'll have other channels of information. Generally the signal will be of a much higher quality than if you were personally bombarded with advertisements intentionally seeking to cut out a large slice of your overall attention bandwidth every single day.

Re: How Google Chrome’s ad blocker works

#58

Google's incentives here are still antithetical to my own, so I'm going to stick with uBlock. For example, on Google search, ads masquerade as legitimate search results. These used to be highlighted in light yellow, clearly marking them as different from organic search results. Now, they only have the word "Ad" in light grey text. This notice is on the right, intentionally where it will be overlooked when reading thr…

Remember when Google claimed that paid inclusion was one of the worst sins a search engine could commit? One so bad that it made it claim other search engines were evil?

I'd love to see the original claim. Got an archive link?

Re: How Google Chrome’s ad blocker works

#59

Which is it, the super secret consortium that won't even let you download the full list of bad sites, or Easy List/Privacy? Why don't they just use EasyList and report offenders there instead of this new consortium? The answer to that rhetorical question will let you know why I'll remain on uBO. They didn't need to build this in, but they did and gave the current ad-blocking community the finger instead of support.

Read the article. They do use EasyList + EasyPrivacy.

Re: How Google Chrome’s ad blocker works

#60
post #36
post #8

Earlier quoted context omitted.

Google uses EasyList and EasyPrivacy which includes AdSense, DoubleClick, Analytics, and other Google properties. Read the article.

I read the article but it doesn't clarify whether or not Google will hardcode a "whitelist" that will ignore EasyList entries for AdSense, DoubleClick, GoogleAnalytics, etc. A comparable situation would be Windows 10 ignoring users' manually edited HOSTS file that attempts to block telemetry.[1] Microsoft has hardcoded hostname-to-ip resolution inside the networking stack (inside dnsapi.dll). If Google decides that C…

It does say in the article that AdSense and Analytics is on the blocklist.
Post reply on HN