Page 1 of 1

How to block classes that can change

Posted: Fri Sep 04, 2015 11:53 am
by rednax
Hallo
There is site fs.to
adds on this site have class div[class="b-9f8fkdjcjb"] and hash "9f8fkdjcjb" is changing every day.
How to add to ABP something like that: "fs.to##.b-*"?

Re: How to block classes that can change

Posted: Fri Sep 04, 2015 12:02 pm
by mapx
rednax wrote:Hallo
There is site fs.to
adds on this site have class div[class="b-9f8fkdjcjb"] and hash "9f8fkdjcjb" is changing every day.
How to add to ABP something like that: "fs.to##.b-*"?
you could use

Code: Select all

fs.to##div[class^="b-"]
or (it seems fs.to is redirected to brb.to)

Code: Select all

brb.to##div[class^="b-"]
but this filter would hide other elements:
for example
<div class="b-header__menu-subsections-wrap">

Could you provide a more specific page and explain which element do you want to block / hide ?

see about hiding filters (the part which regards this sort of filters):
en/filters#elemhide_attributes

Re: How to block classes that can change

Posted: Thu Mar 17, 2016 9:46 pm
by Alex-KS02
Hi ,
I tried to block ads on fs.to, but not successfully
fs.to##div[class^="b-"] not works, although logically it is correct..
Can you please check it? For example - http://fs.to/video/serials/i4qCioXZqpAN ... odach.html

Re: How to block classes that can change

Posted: Thu Mar 17, 2016 10:30 pm
by mapx

Re: How to block classes that can change

Posted: Sat Mar 19, 2016 1:04 am
by mapx
for chrome (for firefox try the same filters)

use the last ABP dev build: https://chrome.google.com/webstore/deta ... ifjjdoepkn

and the filters

Code: Select all

brb.to##.l-body-branding-link
brb.to##img[src^="data:image"]
brb.to##[href^="http://asr.dotua.org"]
brb.to##[class*="-universalsmall"]
@@||brb.to^$genericblock
||admixer.net^$image,domain=brb.to
@@||brb.to^$generichide

Re: How to block classes that can change

Posted: Mon Mar 21, 2016 3:57 pm
by Alex-KS02
Thanks a lot, mapx!
It's working for me :)