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