How To Remove Ads From The Site

Table of contents:

How To Remove Ads From The Site
How To Remove Ads From The Site

Video: How To Remove Ads From The Site

Video: How To Remove Ads From The Site
Video: How to block Ads on websites 2024, December
Anonim

Advertising is the engine of progress. Of course, this is true, but sometimes there are too many advertisements. There is even so much of it that it interferes with the perception of basic information, constantly distracting and annoying. Moreover, since there are quite a lot of advertising banners on sites, everyone tries to make their banner more noticeable, standing out from all the others. As a result, on one page you can see banners blinking at different frequencies and cycles, animated in such a way that it will certainly attract attention. And if you just want to use the basic information of the site, without wasting time trying to ignore the distracting advertising banners, you have only one way out - to try to remove ads from the site.

How to remove ads from the site
How to remove ads from the site

Instructions

Step 1

Fortunately, it is quite possible to do this. Before you start trying to remove banners from your site, talk to your hosting provider. Try to negotiate with them so that they allow you to decide on your own which banners and where you will place. Or, alternatively, they can place them at the bottom of the page so that it doesn't interfere with normal page views.

Step 2

If for some reason they did not meet you halfway, start fighting the banners on the site on your own. Deal with the insertion of "extraneous" code. There are two types of such inserts: before or after the original document.

Step 3

If the code comes before the document, and if the element ID is explicitly specified, use CSS rules to simply override the element's properties. So, instead of a banner, you will have, for example, a dot.

Step 4

If the identifier is not explicitly specified, you will need to try a little. Try to cover the picture above with some element with the size of the banner. Also try removing the node from the main HTML element tree. This can be done using the properties: unbanner, onload, onscroll, onclick. Since only one handler is allowed per event, create an "empty" function and simply reassign the handlers.

Step 5

With banners, the code of which appears after the main text is much easier. Try making the closing tags invisible. In addition, banners, as a rule, contain id, which makes it possible to override almost any rule.

Step 6

If the banner consists of more than one node, remove them as well as one, using a little more advanced JavaScript functionality.

Step 7

This way, you will be able to remove any popup or banner on your site. If after a while the provider changes the code and the banners appear on your site again, do not be alarmed. Follow the same steps as you did before. And for a while, you will have a "human" site again.

Recommended: