Block inline-script excluding one or some classes or id/s

Everything about using Adblock Plus on Google Chrome
Post Reply
doclucas
Posts: 4
Joined: Wed Aug 08, 2018 6:21 pm

Block inline-script excluding one or some classes or id/s

Post by doclucas »

If I have a filter in my private list that blocks inline-scripts like:

Code: Select all

||example.com^$inline-script
And I want to exclude one inline script by targeting the specific line class or id, how can I achieve that?

I tried to modify the rule to this, but it doesn't work:

Code: Select all

||example.com^$inline-script#@#.someClass
Thank you
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Block inline-script excluding one or some classes or id/s

Post by mapx »

There is no such syntax in ABP, and no (even in uBo) you cannot do it
doclucas
Posts: 4
Joined: Wed Aug 08, 2018 6:21 pm

Re: Block inline-script excluding one or some classes or id/s

Post by doclucas »

Does that mean that once

Code: Select all

^$inline-script
is used, there is no way to exclude specific inline script?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Block inline-script excluding one or some classes or id/s

Post by mapx »

There is no such syntax in ABP
doclucas
Posts: 4
Joined: Wed Aug 08, 2018 6:21 pm

Re: Block inline-script excluding one or some classes or id/s

Post by doclucas »

Thanks, yes, I read that, but "no such syntax" isn't equal to - there is no other way to achieve that, which is why I am asking again.
If there is no other way, I think it's simple to just say "there is no other way. once ^$inline-script is turned on, nothing can override it for specific lines".
Not so hard, is it?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Block inline-script excluding one or some classes or id/s

Post by mapx »

You don't understand.
ABP does not support $inline-script keyword.

In uBo (where $inline-script is supported) you cannot exclude a specific inline script (because is based on CSP which don't permit such exclusions).
doclucas
Posts: 4
Joined: Wed Aug 08, 2018 6:21 pm

Re: Block inline-script excluding one or some classes or id/s

Post by doclucas »

All clear now, thank you. I understand well when explained well.
I am using Nano on most of my computers tho, but I thought the filters' syntax is the same.
Thanks again.
Post Reply