block dynamic id

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
JLobster
Posts: 4
Joined: Thu Feb 04, 2016 3:05 pm

block dynamic id

Post by JLobster »

Hello. Can u help with this

Code: Select all

   </div>....<div id="page"><div id="CDWjqDYyJJTg">...</div>
This ID always contains 12 letters without numbers

p.s. idk how to use reg. exp. with adblock syntax. Can u give me link to manual with examples? Thank you
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: block dynamic id

Post by mapx »

- no regex for hiding filters
- what browser are you using ?
- could you post the real example indicating where are placed the ads/divs in the page ?

about filters
en/filters
JLobster
Posts: 4
Joined: Thu Feb 04, 2016 3:05 pm

Re: block dynamic id

Post by JLobster »

-chrome
old.reactor.cc

Code: Select all


            <div id="pageinner"><div id="rADFcmXZhuIU">Мы просим вас отключить адблок, если сайт вам нравится. <br><div style="font-size:16px">Обещаем при отключении адблока не показывать навязчивой рекламы. С адблоком показываем какую получится.</div><div style="font-size:16px">Рекламу можно отключить <a href="/donate">за 100р</a>.</div></div>
                <div id="content">
                    <div id="contentinner">
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: block dynamic id

Post by mapx »

I asked also where are placed those ads / divs, eventually post the specific page where are those ads / divs
imetators
Posts: 3
Joined: Thu Feb 04, 2016 3:39 pm

Re: block dynamic id

Post by imetators »

it's yellow box down the header. in element inspection it's in pageinner, first div with id of some randomly generated letters. next is must-not-block div!
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: block dynamic id

Post by mapx »

add

Code: Select all

old.reactor.cc#@#.SC_TBlock
imetators
Posts: 3
Joined: Thu Feb 04, 2016 3:39 pm

Re: block dynamic id

Post by imetators »

mapx wrote:add

Code: Select all

old.reactor.cc#@#.SC_TBlock
sadly for me didnt work (
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: block dynamic id

Post by mapx »

I tested it using easylist + ruadlist, what lists are you using ?
JLobster
Posts: 4
Joined: Thu Feb 04, 2016 3:05 pm

Re: block dynamic id

Post by JLobster »

Its works. But i cant understand how
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: block dynamic id

Post by mapx »

the script
http://js.reactor.cc/js/optimized.js

does check if the class .SC_TBlock is hidden on that page ==> if it's hidden displays the yellow crap.
(.SC_TBlock is hidden by ruadlist)

whitelisting .SC_TBlock defeats the trick
JLobster
Posts: 4
Joined: Thu Feb 04, 2016 3:05 pm

Re: block dynamic id

Post by JLobster »

Thank you. You are the best :wink:
imetators
Posts: 3
Joined: Thu Feb 04, 2016 3:39 pm

Re: block dynamic id

Post by imetators »

worked now. i'm blind by forgetting i'm using both adb+ and adb. thank you heroes!
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: block dynamic id

Post by mapx »

alternative filter (only in ABP for chrome)

Code: Select all

old.reactor.cc##[-abp-properties='font-size: 33px;']
or

Code: Select all

old.reactor.cc##[-abp-properties='background-color: yellow;']
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: block dynamic id

Post by lewisje »

imetators wrote:worked now. i'm blind by forgetting i'm using both adb+ and adb. thank you heroes!
Use just Adblock Plus, it's better-maintained than AdBlock.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Locked