-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ABP issue #2390: "Create a new filter class for CSS property filters" #139
Comments
FYI: Apparently there was some code commited: |
Just to be clear, I don't take code from ABP -- I implement my own code according to spec. |
@gorhill I am well aware (but yes, others might not), your code does not contain remarks like "CSS property filters are inefficient" :) I could not quickly find a spec unfortunately for this new setup. Being able to allow CSS (for stuff like colors/locations) when that CSS is loaded from a domain enabled in dynamic filtering would be a nice thing; I guess though that this feature would help a lot already as then odd css for loading fonts etc can easily be filtered out. |
This new syntax was announced in December and just recently implemented in stable builds of ABP: https://adblockplus.org/development-builds/new-css-property-filter-syntax |
To confirm/infirm whether I worry needlessly, I profiled a page (timings are for reloading the page 10 times) where The yellow-highlighted lines are the top contributed overhead by the content scripts of the extension. As expected, |
@TheFinalCut83: because they fixed the @IDKwhattoputhere, @TonyTough, do you get the same thing for uBO as @TheFinalCut83? All works fine from my side. |
Cyberfox: Edit: I seem to have misunderstood. By
I thought you meant only those filter lists. I tried again with default lists + EasyList Germany and now I never get ads (tested Cyberfox and Firefox). |
For uBO, I meant default filter lists + EasyList Germany, for ABP I meant EasyList + EasyList Germany + EasyPrivacy minus "Acceptable ads". |
For me all is OK on focus.de with ublocks standard filters + Easylist Germany and Firefox 47 (German IP). |
Yes, with default filter lists + EasyList Germany all is OK. |
Recently I've been tackling a few base64 encoded ad sites on onwatchseries.to (and mirror sites). Using
Which doesn't seem to work well in uBo. I'm pretty sure you can inject scripts etc, but given the popularity of base64 encoded ads, -abp-properties support would be helpful for a quick and dirty fix. Related commits: |
As said, it's performance-wise scary. Each rule in each stylesheet present on the page must be iterated, and for each of these rules, a string version of all its own CSS properties, sorted, must be constructed and the result tested against a regular expression derived from the filter. Repeat for all single What I am seeing on The real issue from uBO's point of view is ABP's limitations forcing the use of such exception filters in EasyList, so aside |
If you pick Logger - https://i.gyazo.com/93af9a3c8d65e4ed6e65c69e4621bea3.png Is that even possible using |
What specific link did you find this behavior in? I think |
Try to reproduce here - http://gorillavid.in/yws7wnzv7wse
I don't think so, they're trying to bypass the block now by using |
ddata on eztv.ag (chrome) |
Using |
Does it work? The popup eventually got closed on my side with EasyList's |
No it doesn't work, thanks to other popup blocking filters, but I came across this, so I felt like reporting. Hence the word "tries". |
Anyway, the issue here is about the |
That domain has been swapped again and the new domain is |
It seems ABP is creating a new class of cosmetic filters:
#2390: Create a new filter class for CSS property filters
Will need to keep track when this become reality, and then eventually implement support for this in uBlock.
My current understanding of this new class of cosmetic filters is to gain the ability to run a regex against the value of the
style
attribute of a DOM element.The text was updated successfully, but these errors were encountered: