Customer Filter Problem

Everything about using Adblock Plus on Google Chrome
Post Reply
ajfox
Posts: 3
Joined: Mon Jun 04, 2018 12:16 pm

Customer Filter Problem

Post by ajfox »

Hi, I am trying to create a filter for a website. It uses a random string at the end of the code and has two has symbols next line is the 'advert' element I wish to block:

domainname.co.uk###sp_message_panel_id1527717396849 [end string is a random number!]

If I add this to the filter

domainname.co.uk##.sp_message_panel_*

I get an error that the CSS is invalid for .sp_message_panel_*

Note the wildcard in an attempt to block all random strings after the underscore

So how can I add this filter?

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

Re: Customer Filter Problem

Post by mapx »

try

Code: Select all

domainname.co.uk##[class^=sp_message_panel_]
read more:
en/filters#elemhide_attributes
ajfox
Posts: 3
Joined: Mon Jun 04, 2018 12:16 pm

Re: Customer Filter Problem

Post by ajfox »

Excellent. Can you explain how that works please?

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

Re: Customer Filter Problem

Post by mapx »

all the info in the link posted above
Post Reply