You may want to take a look at the Part 1 of the article before resuming reading here.
Typically the ad-blocking browser extensions available so far are working as follows:
1. Filter Addresses
2. Hide stylesheet elements
How do they filter addresses ?
Ref: Ad Block Plus Internals
It seems that we can configure something called as "Content policies" for the browser engines. It can be done programmatically (by implementing certain interfaces) as explained in the reference provided above.
So, it comes down to the extension providers maintaining a list of addresses which they deem to be sources for in-video ads. [Let us not worry about how they maintain the list, here - It could be a topic for another blogpost]
This means that it is very important to keep our ad-blocking extensions up to date, as and when an update is available.
Why Hiding Style sheet elements is important ?
Its not going to be enough if we simply block the HTTP requests for loading ads, in periodic intervals. It is sometimes necessary to clean the style sheet elements that may appear to be present in-video. Looks like there are APIs available to unregister style sheets (APIs to interact with the browser engine). By doing so, we can do away with the loosely hanging style sheets from the webpage.
In the next post - I will try to show a demo (video or screenshots) on how to do this ourselves without relying on a browser extension.
References :
[The links listed below all refer to Adblock plus; they appeared first on my G! result set and hence using them here]
Ad Block Plus Internals
Ad Block Plus in Chrome - How it works ?
Ad Block Plus landing page
To be continued...
Typically the ad-blocking browser extensions available so far are working as follows:
1. Filter Addresses
2. Hide stylesheet elements
How do they filter addresses ?
Ref: Ad Block Plus Internals
It seems that we can configure something called as "Content policies" for the browser engines. It can be done programmatically (by implementing certain interfaces) as explained in the reference provided above.
So, it comes down to the extension providers maintaining a list of addresses which they deem to be sources for in-video ads. [Let us not worry about how they maintain the list, here - It could be a topic for another blogpost]
This means that it is very important to keep our ad-blocking extensions up to date, as and when an update is available.
Why Hiding Style sheet elements is important ?
Its not going to be enough if we simply block the HTTP requests for loading ads, in periodic intervals. It is sometimes necessary to clean the style sheet elements that may appear to be present in-video. Looks like there are APIs available to unregister style sheets (APIs to interact with the browser engine). By doing so, we can do away with the loosely hanging style sheets from the webpage.
In the next post - I will try to show a demo (video or screenshots) on how to do this ourselves without relying on a browser extension.
References :
[The links listed below all refer to Adblock plus; they appeared first on my G! result set and hence using them here]
Ad Block Plus Internals
Ad Block Plus in Chrome - How it works ?
Ad Block Plus landing page
To be continued...