xStyle
xStyle copied to clipboard
Backup with Firefox Sync
It'd be nice if xStyle could use firefox sync to save the styles. Firefox Sync is accessible through the storage.sync
API.
EDIT: It seems xStyle does use storage.sync to save preferences
https://github.com/FirefoxBar/xStyle/blob/06c2af39051be2b60f83485ca53d8773a39eddda/scripts/storage.js#L676
yet for whatever reason it didn't synchronize my CSS styles. 🤔
The upper limit of the Firefox sync space is 100kb, it can not storage all styles. Documention: MDN
Hmm, that shucks. I used to use https://addons.mozilla.org/en-US/firefox/addon/stylishsync/ to synchronize my stylish styles across multiple devices, and it worked rather well.
After looking around, it seems the storage.sync
doesn't really have any guarantees from mozilla's side. From https://bugzilla.mozilla.org/show_bug.cgi?id=1220494 :
We might just delete the server and data, but hopefully not. We don't really provide an SLA on our services, but I wanted to get across to developers that this is not a service with an expected uptime, or performance but rather as is. Writing an extension that expects it to be always available and guaranteeing the data hasn't had something happen to it will merely end in disappointment and little sympathy when people email us angrily.
If we find chrome.storage.sync is really useful to developers we might increase its use in the future and provide something with more guarantees.
I won't add this feature until Mozilla remove the space limit. Using Google Drive/OneDrive/Dropbox to storage your styles is the best choice now.