How are multiple abort-current-inline-script tags handled?

General information, announcements and questions about the EasyList subscriptions.
Locked
Danger Lampost
New Member
New Member
Posts: 4
Joined: Fri Feb 10, 2017 2:45 pm

How are multiple abort-current-inline-script tags handled?

Post by Danger Lampost »

Can someone help me understand if this is a bug or a misunderstanding on my part? Does the order of multiple abort-current-inline-script tags make a difference? I'm looking at a rule that looks like this, that I added in the 'my filter list' section of the ABP settings:

Code: Select all

www.mysite.com#$#abort-current-inline-script document.createElement String.fromCharCode; abort-current-inline-script document.createElement window.removeEventListener; 
In my web page, I have an inline script that matches the second snippet filter but not the first, and the script is not blocked. If I simply swap the order of the filters around, like this, now my inline script is blocked as I expected:

Code: Select all

wp48.adtoniq.com#$#abort-current-inline-script document.createElement window.removeEventListener;abort-current-inline-script document.createElement String.fromCharCode;
Why does the order here matter? Can someone help me understand what I'm misisng?
intense
Contributor
Contributor
Posts: 10500
Joined: Wed Mar 27, 2013 9:56 am

Post by intense »

How do you know your inline script is blocked ?
I see no removeEventListener in that page
User avatar
smed79
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 »

#1

For which site you want to apply your filter, mysite.com or adtoniq.com ?

Please, provide an example page/website.

#2

You can shorter you filter as below

Code: Select all

mysite.com#$#abort-current-inline-script document.createElement /String.fromCharCode|window.removeEventListener/
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
Locked