How to block dynamic DIVs

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
xtcmax
Posts: 39
Joined: Mon Apr 27, 2015 11:47 am
Location: CA,USA
Contact:

How to block dynamic DIVs

Post by xtcmax »

Hello.
How does one blocks a dynamic Div id ? Some sites started to have "div id= <random numbers> " and those "random numbers" change after each page visit. I've read it a java script, but i might be wrong. I will provide a sample of the page, where this is implemented and I would love to learn how to block such crap.

Thank you in advance.


Image
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block dynamic DIVs

Post by mapx »

please provide the link of that page
xtcmax
Posts: 39
Joined: Mon Apr 27, 2015 11:47 am
Location: CA,USA
Contact:

Re: How to block dynamic DIVs

Post by xtcmax »

Thanks for the fast answer. Below is the link:

http://www.worldlento4ka.com/7910-sedma ... -2015.html

Please be advised, that I want to learn how to block stuff like that not only on this page, but on other pages as well. That HTML 5 player shows WoT trailer, or some movie trailer.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block dynamic DIVs

Post by mapx »

well, no general approach

in this case I had to add (for the adblock detecting message) (probably is fixed in ruadlist)
@@||moviki.ru^$elemhide

then to hide the YT stuff you have to find something not dynamic (using EHH)
for example
worldlento4ka.com##[style="background: rgb(0, 0, 0) none repeat scroll 0% 0%;"]

or eventually (and not breaking some functionality) block some external javascript object
if inline script nothing to do ...
xtcmax
Posts: 39
Joined: Mon Apr 27, 2015 11:47 am
Location: CA,USA
Contact:

Re: How to block dynamic DIVs

Post by xtcmax »

Can I safely assume that this is a new method to evade Adblock ?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block dynamic DIVs

Post by mapx »

it's old :) and as you can see itìs still possible finding hiding filters to hide that stuff
xtcmax
Posts: 39
Joined: Mon Apr 27, 2015 11:47 am
Location: CA,USA
Contact:

Re: How to block dynamic DIVs

Post by xtcmax »

I am not a programmer, could you perhaps give me a line, which i put into Adblock to deal with those dynamic divs?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block dynamic DIVs

Post by mapx »

I already specified 2 filters:

to unblock the real video
@@||moviki.ru^$elemhide

to hide the YT stuff
worldlento4ka.com##[style="background: rgb(0, 0, 0) none repeat scroll 0% 0%;"]
xtcmax
Posts: 39
Joined: Mon Apr 27, 2015 11:47 am
Location: CA,USA
Contact:

Re: How to block dynamic DIVs

Post by xtcmax »

Thank you for your help.
Darias
Posts: 3
Joined: Fri Apr 01, 2016 6:39 pm

Re: How to block dynamic DIVs

Post by Darias »

Please help me to block dynamic DIVs

http://rsload.net/soft/document/9219-ab ... eader.html

Code: Select all

<center><div id="ijvrY3nQ9ui5bJM6CXoxYGVEk" onclick="e00001959e_cancel_bubbling(event);" onmouseup="e00001959e_cancel_bubbling(event);" onmousedown="e00001959e_cancel_bubbling(event);" style="position: relative;">
............
<center><div id="e00001959e"></div>
I'm using this rule to hide elements

Code: Select all

rsload.net###e00001959e_c_0
rsload.net###e00001959e_c_1
rsload.net###e00001959e_c_2
rsload.net###e00001959e_c_3
rsload.net###e00001959e_c_4
rsload.net###loga
rsload.net###foot
Thanks!
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block dynamic DIVs

Post by mapx »

What element(s) do you want to hide ? explain where's in the page, better upload a screenshot (use imgur.com, then post here the link)
However, are you using ruadlist + easylist lists ?
User avatar
fanboy
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am
Contact:

Re: How to block dynamic DIVs

Post by fanboy »

Code: Select all

rsload.net##A[href^="http://et-code.ru/"]
Post Reply