Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Keep comment and order when importing a rule file #314

@orklah

Description

@orklah

Hi,

I find the import tool very difficult to use.

I followed the page https://github.com/gorhill/uMatrix/wiki/Rules-syntax to create my own rule file. It contains comments, empty lines for lisibility and I ordered it so I can see the most important rules first.

I use a file because when I add a lot of rules through the UI, I end up with a messy blob of rules I can't maintain anymore.

My file look like that:

#Global CDN
* cloudfront.net * allow
#External tools
* youtube.com * allow
#Image hosting
* imgur.com image allow

With a lot more rules than that.

When I import it, the tool automatically rearrange my rules and it doesn't make sense anymore:
capture

The whole set of rules is working perfectly but the comments are treated as rules and were grouped together and every rule was rearranged by alphatically.

I don't mind deleting every rule each time before reimporting my file, what I do mind is that I can't export my file the same way I imported it and I won't be able to find the rules I added since the last import (I would like them to be inserted at the bottom so I can rearrange them later).

I use Firefox in version V39.0.0.3, the last version of uMatrix V0.9.1.2, I also have uBlock Origin and plenty other addons but I don't think they are relevant for this issue.

Thanks a lot.

(Sorry for my bad english)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions