Prerequisites
I tried to reproduce the issue when...
Description
Explain basic syntax in the docs, set the expectations.
A specific URL where the issue occurs.
https://github.com/gorhill/uBlock/wiki/Dashboard:-My-filters
Steps to Reproduce
- Settings.
- My filters (
moz-extension://.../dashboard.html#1p-filters.html).
- Docs icon -> https://github.com/gorhill/uBlock/wiki/Dashboard:-My-filters
Expected behavior
Explain the syntax roughly, point to more details. Explain the options later.
Perhaps explain what to expect in current article (abstract aka summary aka TL;DR).
Or link to another page that does that.
Actual behavior
Above the fold I can only see a trusted filter screen.
Even reading the rest of this page it is impossible to get the feeling of what the filters are and what they can do. So show a few examples from simple to advanced.
So perhaps something like this:
My filters
...Abstract perhaps?...
TOC
Syntax of filters
Let's start with a simple example:
http://example.com/abs.js
This will block this specific URL as written and all URLs that start with that so also http://example.com/abs.js/abc.
||example.com/abs.js
Will be protocol independent so both http:// and https:// will be blocked. The || is a modifier prefix.
You could also use @@ to make an accept-filter (by default filters are blocking). Note that accept filters are more important then blocking filters.
So the syntax is:
{`modifier prefixes`}{`url` or `regexp`]${`options` (separated by a comma)}
See more about the syntax in: Static filter syntax.
The warning
...
Order of filters
Note that what you enter in "My filters" might be overriden by other filters. See the logger to check which filter was applied.
Remember that accept filters are more important then blocking filters. So to block an url that has an accept filter you will need to use the important option.
Options
[the screen that is now on top]
...the rest as-is...
Notes
- Not sure if I named the parts correctly you might want to adjust. I haven't found this.
- Not sur if there needs to be variants of this syntax. Haven't looked at AST/tokens.
uBO version
1.68.0
Browser name and version
Firefox: 149
Operating System and version
Win11pro 25H2
Prerequisites
I tried to reproduce the issue when...
Description
Explain basic syntax in the docs, set the expectations.
A specific URL where the issue occurs.
https://github.com/gorhill/uBlock/wiki/Dashboard:-My-filtersSteps to Reproduce
moz-extension://.../dashboard.html#1p-filters.html).Expected behavior
Explain the syntax roughly, point to more details. Explain the options later.
Perhaps explain what to expect in current article (abstract aka summary aka TL;DR).
Or link to another page that does that.
Actual behavior
Above the fold I can only see a trusted filter screen.
Even reading the rest of this page it is impossible to get the feeling of what the filters are and what they can do. So show a few examples from simple to advanced.
So perhaps something like this:
My filters
...Abstract perhaps?...
TOC
Syntax of filters
Let's start with a simple example:
http://example.com/abs.jsThis will block this specific URL as written and all URLs that start with that so also
http://example.com/abs.js/abc.||example.com/abs.jsWill be protocol independent so both
http://andhttps://will be blocked. The||is a modifier prefix.You could also use
@@to make an accept-filter (by default filters are blocking). Note that accept filters are more important then blocking filters.So the syntax is:
{`modifier prefixes`}{`url` or `regexp`]${`options` (separated by a comma)}See more about the syntax in: Static filter syntax.
The warning
...
Order of filters
Note that what you enter in "My filters" might be overriden by other filters. See the logger to check which filter was applied.
Remember that accept filters are more important then blocking filters. So to block an url that has an accept filter you will need to use the
importantoption.Options
[the screen that is now on top]...the rest as-is...
Notes
uBO version
1.68.0
Browser name and version
Firefox: 149
Operating System and version
Win11pro 25H2