CptFoobar / Owl

A Mozilla Firefox add-on to make online reading comfortable.
http://owl.sidhant.io
Other
63 stars 8 forks source link

V3 - Settings Buttons to Import/Export settings - #10 #46

Closed Alan-Solitar closed 6 years ago

Alan-Solitar commented 6 years ago

Implements the functionality requested in #10.

Implemented two buttons on settings page to import/export settings. Also edited the css file in order to make them look the same as the rest of the settings page.

Export button will create a JSON file of format

` "whiteSites:" [

], "alwaysEnableSites": [

], "classicSitesList":[ ] `

Import Button will take a json file of the same format, override the settings in local storage and then update the global settings values inside of background.js. For now it overrides the settings. If you think a merge of site settings is better, then I will implement that. Or perhaps we could offer options for either overriding or merging.

Let me know if there are any issues.

Alan-Solitar commented 6 years ago

Any issues?

CptFoobar commented 6 years ago

Looks great. Thanks