einaregilsson / Redirector

Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.
http://einaregilsson.com/redirector/
MIT License
1.51k stars 153 forks source link

[Suggestion] Organise redirects into groups #361

Open deadmeu opened 1 year ago

deadmeu commented 1 year ago

I'd like to be able to better organise my redirects by grouping them up into collapsable groups. For example, I have some redirects set up to handle Fandom wiki links and I'd like to be able to just group them together in a "Fandom" group.

I'm sure after some time I'll have built up a large collection of redirects, some of which may be disabled for either being broken or in-development, so I would like to be able to better organise my collection (I have the same issue with userscripts and wish I could group those too, but that's an issue for another repo :stuck_out_tongue:).

Gitoffthelawn commented 1 year ago

I think this is an excellent idea. I've often wished for similar functionality. I have written over 100 redirect rules, and keeping them organized is a bit tedious.

One catch, however, is that the order of Redirector rules does matter. This makes organizing in collapsible groups, although appealing, perhaps undesirable. Adding tags to rules may be another approach.

Also, currently Redirector does not process it's own output recursively. This makes rule order even more important. I think the best solution for that is to allow Redirector to process it's own output recursively (with a reasonable limit to avoid infinite loops).