How does Adblock Plus really work in Chrome?

后端 未结 3 1818
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 01:03

I noticed Adblock Plus injecting some CSS that hides the advertisements, but I think that it does more than that - for example blocking HTTP requests.

How does Adblock Pl

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-02 01:25

    They give a brief idea of it here: http://chromeadblock.org/extensions/adblock-for-chrome/

    However no real details. I think what they do is, to check css class and id's for badwords, like: advert, ad, sponsored .... Furthermore, they'll have a list of major Ad Servers like AdWords etc. and simply block those IP's / domains from being loaded. Afterwards it seems like it calculates the dimensions of the removed ad and fills it up with a blank CSS.

    Maybe thats not how they do it, but that is how I would do it.

提交回复
热议问题