Open mdziczkowski opened 2 months ago
It would be great to have a convenient interface, but creating complex rules at the same time is difficult.
The simple use of this extension is just to select a template and then edit its variables.
JavaScript knowledge is not required unless dealing with complex situations.
What do you think about following example syntax:
- URL / pattern:
- action:
- ... (additional data at request)
- description
?
What do you think about following example syntax:
- URL / pattern: - action: - ... (additional data at request) - description
?
This may satisfy simple situations, but for more complex situations, additional learning will be needed, and the behavior can be unclear.
For example:
URL
treated as a prefix? Does it include request parameters? What is the effect during redirection?pattern
a set of special definitions or a regular expression? Is it case-sensitive? How are regex groups handled in redirection?encodeURIComponent()
during redirection?
...These operations and behaviors require extra design during development, and users will need additional learning, while JavaScript may be clearer and more universal.
The pattern should accept wildcards to allow better adjust to what it does apply
all pattern check's should be case-insensitive for simplier use
the proposal should be treated as a simple base rule to global manage the whole domains and their sub-domains
the remaining options for more experienced users and for fine control should be as additional (for example, after expanding the "advanced" tab)
there should be a section in with would be entered, listed and managed the exclusions. The input should also support wildcards
about the URL encoding abd decoding, that it need to be considered because in one side it provides a layer of security, but from other one, it makes things more complex and may cause that it won't work correctly 🤔
I would like to request change how the rules are definied in the addon.
Not every one knows how to code and those who know, may know another programming language then javascript.
Thereof, I think it could be a nice option if the addon would become more universal in the matter of rules creation