Open TheGamesmenDev opened 7 years ago
This would be sweet
As per QUOTA_BYTES of chrome.storage.sync
max data size is 100 KiB. That should be enough to store all styles data (possibly compressed) for most user needs. If there is not enough room, user should choose which styles to not sync.
If a user is signed into Chrome on multiple devices and sync is enabled, they currently have to go to 'Stylish > Manage All Styles > Check for Update > Install update' (or 'Check all styles for updates'), on each device.
Due to the Chrome sync file size limitation I propose that when the user checks for updates and installs a style update on one browser, that the version or 'last updated' timestamp along with the style id be synchronised via Chrome sync so that the other devices perform the same style update.
Similarly, for new style installs, this method could trigger an automatic style install on synchronised browsers while staying below the chrome sync file size limit.
This will not work for local edits, only styles hosted on userstyles.org.
Side benefit: This gives users a way to 'auto sync' styles (userstyles.org upload required*) but without the downsides normally associated with automatic updates (since it's still a manually triggered update).