How to hide the background using the AdBlock Plus filter

Some websites set a background image for advertising, for example.

<body style="background-image:url('images/adv.png')"> 

I am wondering how I can write an AdBlock Plus filter to hide the background of <body> .

+4
source share
3 answers

It does not allow you to hide the background without hiding the entire element, but you can always block a single image by adding a custom ABP filter.

You can do this by pressing CTRL + Shift + V (open lockable items) and search for the image you want to hide.

+3
source

If you are not strictly committed to ABP, you can use Stylish to do this in CSS style. Actually, this is my preferred way of doing such things.

 body { background-image: none !important; } 

Of course, you can just do an ABP filter containing the entire URL, this will affect not only the background, but I cannot think of why not completely block the URL.

+6
source

AdBlock in Chrome, you can press the "F12" function key, see the tabs at the top, for example, "Network sources of network connections ... AdBlock". Select "Adblock", fill the page. Now it will display all requests, including the background image file. The found image line, click "Block item", click the reflesh button.

+1
source

All Articles