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
Sort out the pre-compiler hints and filter list sources for Edge and Opera #2380
Comments
After some internal discussions, here's my (hopefully) final suggestion:
|
How will it work with uBo directives? Will it have to be encapsulated into two ifs independently? Example:
or
|
Neither option will work. Does uBO support conditions? Something like that should be good:
|
It does not support and is not planned to be implemented e.g. due nesting is fixed in uBo 1.20.0+. So it comes out that in the end it should be like this after all: !#if !ext_ublock
!#if !ext_ubol
!#if env_chromium || adguard_ext_opera
foo.bar##.opera
!#endif
!#endif
!#endif |
I am not sure how to resolve this without conditions support. Probably you'll need to use two different blocks for AG and uBO. |
Nesting only solves Why was the feature request for conditions support rejected? |
I would fudge that because of the small number of real-world usages/cases (high chance of parser corruption when the code is written only by gorhill and no one catches all the implementation bugs in the beta). |
Support for AdGuard-compatible proprocessing expressions was added a bit over two weeks ago: gorhill/uBlock@194354cd5d77. I was not aware of the issue here, just a coincidence that I decided to support this to increase compatibility. |
@gorhill looks great, thank you! |
AdGuard Extension version
4.2.133 beta
Browser version
Edge 114.0.1823.55
OS version
Windows 11
What filters do you have enabled?
AdGuard Base filter, AdGuard Tracking Protection filter, AdGuard URL Tracking filter, AdGuard Annoyances filter
What Stealth Mode options do you have enabled?
No response
Issue Details
Related to this issue - AdguardTeam/AdguardFilters#154327
Steps to reproduce:
Rule doesn't work.
Expected Behavior
Website should be blank.
Another problem is that disabling protection doesn't work correctly and ads are not displayed.
Screenshots
Screenshot 1:
Screenshot 2:
Additional Information
It seems that it's related to service worker, after unregistering it element hiding rule (
forum.dobreprogramy.pl##body
) works correctly.The text was updated successfully, but these errors were encountered: