| CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 100
$permissions
#2714
-
|
@gorhill Seems AdGuard has implemented permissions policy modifier via $permissions, did they do anything different than gorhill/uBlock@af6c992 ? |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
Replies: 4 comments · 50 replies
-
|
Forgot completely about that commit. I could implement this in the current dev cycle but not sure there are AdGuard lists using it, not worth it if not. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
For
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Yeah it doesn't work in Firefox and Nightly. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
Ah I see |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
Anyways, the header is injected in Firefox, if the browser does not interpret it, or interpret it in a different way that someone want it to be interpreted, please open an issue with Firefox devs. Meta bugzilla entry for |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
@gorhill header not yet implemented as per - https://bugzilla.mozilla.org/show_bug.cgi?id=1694922 |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Beta Was this translation helpful? Give feedback.
All reactions
-
π 3 -
π 1
-
|
Does it work in Firefox without enabling the feature via |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
uBO does not treat the option any differently in any browser. I don't know whether Firefox might complain that the response header is not recognized. Fixed typo: added not |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
|
https://github.com/uBlockOrigin/uBlock-issues/wiki/Static-filter-syntax#permissions However I couldn't find the two examples in the commit ( |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Autoplay still cannot be blocked with the filter, hopefully this changes in future. |
Beta Was this translation helpful? Give feedback.
All reactions
-
I copied the example from AdGuard's documentation, just to show the difference on how to separate multiple directives. There is this site which mentions those directives: https://docs.w3cub.com/http/headers/feature-policy#syntax. I don't know how reliable. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
@stephenhawk8054 Gave more thoughts to this and I think we should add it to uBlock filters -- Privacy list. I don't think a user interface component for this is the way to go given that so far it's an API supported only by one browser, and that the API is to serve advertisers in the first place. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
That is a whole filter itself and should not be interpret as a exception filter would work look like this - |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
@uBlock-user These do work: ||google.com^$all
@@||google.com^$doc
||google.com^$script,xhr,image
@@||google.com^$script
*$script,xhr,to=google.com|example.com
@@*$script,to=google.com |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Those are individual network type filters. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
uBO does not have a permission policy value parser, and neither a CSP value parser, hence why the values can only be wholly excepted. This has always been the way for CSP value, there was never a way to except only the |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2
-
|
I guess we can add *$permissions=attribution-reporting=(),from=~localhost |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 4
-
|
BTW it will be convenient if we can exclude only these permission rules from the logger. As they're always applied, pretty much are noise. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 2 -
π 1
-
|
Yes, should be disabled by default in the logger. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 1
-
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I can make "not permissions" be default filter expression if you majority agrees. |
Beta Was this translation helpful? Give feedback.
All reactions
-
π 4
-
|
Save the status? How it's done in popup? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Too much code to add for now, I want quick and easy. |
Beta Was this translation helpful? Give feedback.
gorhill/uBlock@5ebdbf3