[FEATURE REQUEST] Make filter creation more intuitive for subdomains
Acknowledgements
- [X] I acknowledge that I have read the above items
Is your feature request related to a problem? Please describe.
Without trial and error, it is unclear if putting the second item (*.liberapay.com) on the grey-/whitelist automatically includes domains matched by the first item (liberapay.com). In other words, does the wildcard include "no subdomain" as well?
The UI suggests that it doesn't, because the extension allows me to grey-/whitelist the first item after I've already grey-/whitelisted the second item. However, based on my own usage, I believe that in reality the second item indeed includes the first.
Describe the solution that you'd like
A few different ways to clarify this ...
-
Rename the second item to
*liberapay.com, without the period. -
Rename the second item to
*.liberapay.com (incl. liberapay.com) -
Gray out the first item buttons after the second item buttons are clicked.
Describe alternatives you've considered
Use trial and error to learn what it does ... won't help new users, though.
Additional Context
No response
There is documentation online (Github Wiki) for new and existing users to read through.
Yes, the second one includes the main domain / no subdomain.
For 1, this is not possible, due to the fact that *liberapay.com would mean anything ending in liberapay.com, which would include afakeliberapay.com. (We're using Regular Expressions).
For 2, this may be possible, though would need to find space below the domain instead of next to it (domains could get long).
e.g.

For 3, it may be possible, though there is at least one scenario where they way wish to add the first then second in that order - adding the first row (main domain only) first would be applied on the main domain (primarily if you plan on configuring something different on it), then adding the second row (wildcard one) after the first one would make it only work on subdomains. While the current method is just finding the first expression that matches, down the line I may think of adjusting it so that if there's both main domain entry and wildcard subdomain entry, the main domain entry takes precedence over wildcard.
The rows are there on all popups as we currently do not check if there's an existing matching one when generating these lines, including those created manually / using Regular Expressions.
In the near term, I think some form of (2) would be the easiest way to clarify the situation.
The cleanest way would be to just print the full regex (something like (.*\.)?foobar\.com, but in practice that would confuse less technical users.
Given we're showing simplified/pseudo regex anyway, do you think users would understand something like (*.)foobar.com?