How to block classes that can change

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
rednax
Posts: 1
Joined: Fri Sep 04, 2015 11:44 am

How to block classes that can change

Post 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-*"?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block classes that can change

Post 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
Alex-KS02
Posts: 2
Joined: Thu Mar 17, 2016 9:39 pm

Re: How to block classes that can change

Post 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
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How to block classes that can change

Post 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
Alex-KS02
Posts: 2
Joined: Thu Mar 17, 2016 9:39 pm

Re: How to block classes that can change

Post by Alex-KS02 »

Thanks a lot, mapx!
It's working for me :)
Locked