Правило скрытия блока

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
Anchie
Posts: 4
Joined: Tue Dec 13, 2016 11:12 am

Правило скрытия блока

Post by Anchie »

Здравствуйте.
Использую браузер FF.
Фрагмент кода страницы:

Code: Select all

<div class="content"><a href="#" id="u1111">u1</a>Контент блока 1</div>
<div class="content"><a href="#" id="u2222">u2</a>Контент блока 2</div>
<div class="content"><a href="#" id="u3333">u3</a>Контент блока 3</div>
Подскажите, пожалуйста, как составить правило скрытия для блока 2, не скрывая 1 и 3?

Есть уникальный параметр, но он принадлежит не тегу "div", а тегу "а".
Какой комбинацией можно привязать этот уникальный параметр к div, чтобы скрыть его?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Правило скрытия блока

Post by mapx »

use english, provide also a real example

or ask for help at ruadlist support forum:
https://forums.lanik.us/viewforum.php?f=102
Anchie
Posts: 4
Joined: Tue Dec 13, 2016 11:12 am

Re: Правило скрытия блока

Post by Anchie »

Ok.)
Hello
I use FF browser.
Detail page of code:

Code: Select all

<div class="content"><a href="#" id="u1111">u1</a>Контент блока 1</div>
<div class="content"><a href="#" id="u2222">u2</a>Контент блока 2</div>
<div class="content"><a href="#" id="u3333">u3</a>Контент блока 3</div>
Tell me, please, create a rule to hide the block 2, not hiding 1 and 3?
There is a unique parameter, but it does not belong to the tag "div", a tag "a".
Which combination can be bound to this unique setting div, to hide it?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Правило скрытия блока

Post by mapx »

your example:
http://axistrivia.altervista.org/test1.html

use this filter

Code: Select all

##div.content:nth-child(2)
Anchie
Posts: 4
Joined: Tue Dec 13, 2016 11:12 am

Re: Правило скрытия блока

Post by Anchie »

mapx, thank you very much, working, but... this binding to the place, a need for the unique parameter tag <a id="u2222">.

if you add the line:

Code: Select all

<div class="content"><a href="#" id="u1111">u1</a>content ..</div>
<div class="content"><a href="#" id="u2222">u2</a>content ..</div>
<div class="content"><a href="#" id="u3333">u3</a>content ..</div>
<div class="content"><a href="#" id="u2222">u2</a>content ..</div>
the lower block, which has the same option id="u2222" - can not be hidden.

Is it possible to bind a rule to hide the div tag a unique setting <a id="u2222"> ?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Правило скрытия блока

Post by mapx »

for the moment ABP cannot hide a div based on the child id (work in progress ..)

however using the position in the page you still can use

Code: Select all

##div.content:nth-child(4)
##div.content:nth-child(2)
Anchie
Posts: 4
Joined: Tue Dec 13, 2016 11:12 am

Re: Правило скрытия блока

Post by Anchie »

Many thanks, mapx, it's clear. Very well, if such a filter will be possible to use.
Post Reply