ichaoX / ext-webRequest

WebRequest Rules Extension
https://addons.mozilla.org/en-US/firefox/addon/webrequest-rules/
GNU General Public License v3.0
2 stars 0 forks source link

[Feature request] Changes in rules dedinitions #6

Open mdziczkowski opened 2 months ago

mdziczkowski commented 2 months ago

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

ichaoX commented 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.

mdziczkowski commented 2 months ago

What do you think about following example syntax:

- URL / pattern:
- action:
- ... (additional data at request)
- description

?

ichaoX commented 2 months ago

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:

  1. Is the URL treated as a prefix? Does it include request parameters? What is the effect during redirection?
  2. Is the pattern a set of special definitions or a regular expression? Is it case-sensitive? How are regex groups handled in redirection?
  3. How to match based on multiple request header values, HTTP methods, or resource types?
  4. How to set multiple matching and exclusion conditions? Can complex logical conditions with multiple "and" and "or" branches be created?
  5. Should variables be automatically 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.

mdziczkowski commented 1 month ago