Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for importing and exporting rule sets #308

Open
heartpunk opened this issue Aug 7, 2024 · 1 comment
Open

add support for importing and exporting rule sets #308

heartpunk opened this issue Aug 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@heartpunk
Copy link

As I mentioned in #307 I just got done adding custom rules for blue sky (a twitter clone), and was just wondering if there was any way to; export or import rules. I didn't see any such mechanism so I wanted to suggest the possibility of adding one.

I also might be willing to help pitch in on this one as I think it could be something I could manage and also a fun little project that would help some other people out. I wouldn't want to get started on it though before discussing the design approach, as I think that's quite important in making sure that the PR lands.

@david-tejada
Copy link
Owner

This is a good idea. I had already thought of something like this but for all the settings not just custom hints. I think it makes more sense to have the ability to export and import all the settings.

You can have a go at it. It probably makes sense to have two buttons down at the bottom of the settings page. One for importing and one for exporting. The exporting button would generate json with the settings grabbed from the extension local/sync storage. This json could then be used when importing. You then would go over every setting in the json and store the new value. If you feel adventurous you could have an intermediate dialog when exporting to select which settings to export.

@david-tejada david-tejada added the enhancement New feature or request label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants