nilshellerhoff / widescreen-browsing

Browser extension that reduces the width of webpages on widescreen monitors
7 stars 2 forks source link

Hope to add export/import function for settings #20

Open JerryYang-30 opened 1 month ago

JerryYang-30 commented 1 month ago

Users may set different widths for different sites, or they may choose not to enable the limit page width feature on some sites. It is hoped that, the personalization of these users can be imported/exported via a JSON file to synchronize across different browser accounts. And……It would be even better if you could sync automatically to your browser account!

nilshellerhoff commented 3 weeks ago

Hello @JerryYang-30,

The extension is using the chrome.storage.sync API, so the extension settings should already synchronize using your browser account if account syncing has been activated.

https://developer.chrome.com/docs/extensions/reference/api/storage#storage_areas

storage.sync

If syncing is enabled, the data is synced to any Chrome browser that the user is logged into. If disabled, it behaves like storage.local. Chrome stores the data locally when the browser is offline and resumes syncing when it's back online. The quota limitation is approximately 100 KB, 8 KB per item. We recommend using storage.sync to preserve user settings across synced browsers. If you're working with sensitive user data, instead use storage.session.

Regarding JSON export/import, this is something which could be added, maybe if I find time, I will!