-
Notifications
You must be signed in to change notification settings - Fork 435
Expand extended syntax [Important] #1395
Comments
Try this ABP page for filter syntax. |
@davidhedlund The dynamic filtering rules are handled differently from the "static net filtering" (which is what the ABP filter syntax specifies). Check out the "My Rules" tab in uBlock's preferences to see the textual representation of the dynamic filtering rules. |
@chrisaljoudi It is possible to write ||google-analytics.com^$important,third-party gstatic might be a third-party of google-analytics.com. say that "--" above means "noop" which in that example will let gstatic.com to use static net filtering instead of being blocked. |
@chrisaljoudi The reason why I want to write rule-like filters is because I want people to have the possibility to subscribe to them. That's not possible with rules, right? |
@davidhedlund right, it's currently not possible to import/subscribe to external dynamic filtering rules. In your example, though, I'm a bit confused. This filter:
does not affect |
@chrisaljoudi That was just a (bad) example. Please refer to the screenshot in the top of this post. Would it hurt to add "noop" to the extended syntax? As I see it everything should be in "My filters" (static and dynamic filters). Its simpler that way and there's not really any reason to keep My Rules if you add the requested syntax above. |
@davidhedlund It's not that it would hurt, I just don't understand what it means. Let's say we have the following (I used the
Would |
@davidhedlund Let me see if I can communicate this better:
In other words, by the end of the static net filtering step, one must have either an |
@chrisaljoudi I suggest that you add I hope I'm clear enough even if my native language is Swedish. Do you understand me? |
@davidhedlund I'm sorry, I'm afraid I don't. How does a |
@chrisaljoudi I suggested that 1: I suggest that you change the |
List of uBlock dynamic filtering translated to static filters
|
@davidhedlund I get what you're saying now. I'll have to give this some thought, because it breaks default-deny in some ways. |
@chrisaljoudi Is all: ||domain.tld^ <--------------------------------- Correct? |
@davidhedlund nope. More like:
|
@chrisaljoudi Thank you! I added that to the top of the post as reference. |
@davidhedlund I believe so; that would block all requests when on a page from the domain |
@chrisaljoudi This is good. I removed the "all" problem from this post. |
@chrisaljoudi What about global? |
@davidhedlund what about "global"? What's an example? |
@chrisaljoudi *$domain=github.com is for "all local", how would that be written for "all global"? |
@davidhedlund if you mean matching every request globally:
|
@chrisaljoudi so ||* blocks everything? |
@davidhedlund |
@chrisaljoudi To take a better example: Local: ||github.com^$third-party,script Is Global written correct? |
@davidhedlund it would be:
|
@chrisaljoudi Perhaps we want to replace ||twitter.com^$important,third-party with *$important,third-party and explain that it is equivalent to global block of 3rd-party scripts in https://github.com/chrisaljoudi/uBlock/wiki/Filter-syntax-extensions#extended-syntax What do you think about it? |
@chrisaljoudi |
@davidhedlund yes, but |
@chrisaljoudi when I add |
@chrisaljoudi Please help me proof-read these lists: List of Local uBlock dynamic filtering
List of Global uBlock dynamic filtering
List of Local uBlock dynamic filtering translated to static filters
List of Global uBlock dynamic filtering translated to static filters
|
I think these should be rewritten:
in this format:
because you don't want to block github.com/images.jpg but all images when browsing github.com not sure about this:
and this:
but might be
because you want to block scripts from github when you are on github |
Sorry, I don't understand the point of this exercise. Why are you trying to rewrite dynamic filtering rules as static filtering rules in the first place? If
is the only reason, wouldn't it make more sense to define a format for sharing dynamic filter lists and adding a way to subscribe to them similar to the static 3rd party filters?
And if that's the only reason, I doubt that being able to subscribe to dynamic filtering rules would be very useful anyway. For people who use default-deny, the dynamic filters are mostly a very short, personal selection of frequently visited sites. You'd have a lot of maintenance overhead to provide people with a dynamic filtering list to subscribe to that includes all their favourite websites in order to be of any use to them. |
@chrisaljoudi Can you please validate the current list #1395 (comment)? |
It's worth noting that you can create static filters from the logger in uBlock Origin now. |
@hotdogman Thx. |
List of Local uBlock dynamic filtering
List of Global uBlock dynamic filtering
List of Local uBlock dynamic filtering translated to static filters
List of Global uBlock dynamic filtering translated to static filters
Missing:
Further reading
The text was updated successfully, but these errors were encountered: