Advertising is good. This is an engine of progress, a way to make money for the author of the site, and sometimes - the opportunity for visitors to find some interesting product.
But when advertising becomes quite a lot - this is already bad and we must fight it.
Recently, too many advertisements have appeared on several sites that are interesting to me, and I decided that this was enough. It's time to fight her.
The last half of the year, FireFox has become my main browser, so it was with his help that I decided to get puzzled by blocking ads.
The first stage is quite simple and obvious - installing the
AdBlock Plus 1.0 plugin.
This plugin allows you to block the loading of external page elements (scripts, frames, images, ...) by URL.
I made the ad.adriver.ru mask once on the blacklist and that's it — you won't see advertisements from AdRiver anymore.
And everything would be fine, but some services are very familiar with this method of blocking and place information elements (pictures that are part of the design) and advertising in the same address space. A live example of such a service is WEB mail from mail.ru, using
AdBlock , but it is possible to block only a part of the advertisement.
')
Here comes the second stage - the dynamic replacement of content within the page.
A brief search for plugins brought me to a wonderful plugin -
FoxReplace 0.9.0 .
On the one hand, the capabilities of this plugin may seem insanely small ... but enough for me.
For example, to remove the top ad unit on win.mail.ru, I used the setting:
1. Hide the top banner block:
site: | http: //win.mail.ru/*
search: <div id = "lite_top_banner">
replace: <div id = "lite_top_banner" style = "display: none;">
2. We prohibit loading into this data block:
site: | http: //win.mail.ru/*
search:
replace: do not enter anything here
ps Naturally, you don’t need to block all ads - this can negatively affect the site’s author’s wallet, which can ultimately affect the quality of the site’s content. But blocking interfering ads on monsters such as mail.ru makes sense.
pps On Habré, fortunately, advertising is made quite sensibly and does not interfere with work. Therefore, I didn’t block it at home, let the authors and I get a penny in my budget and make the site even better :)