scriptsafe icon indicating copy to clipboard operation
scriptsafe copied to clipboard

ScriptSafe cannot sync your settings as it is greater than the total limit.

Open ten9inc opened this issue 6 years ago • 7 comments

Just started getting this error popup today every time I allow a site:

"ScriptSafe cannot sync your settings as it is greater than the total limit. However, you can manually export and import your settings by going to the Options page."

My whitelist has 5291 entries. Is there any way to fix this?

ten9inc avatar Feb 08 '18 04:02 ten9inc

Same here. I have 5782 entries.

This error started to popup a couple of days ago.

peterpaddington avatar Mar 19 '19 05:03 peterpaddington

I started seeing this message as well. The line of code which triggers this is here: https://github.com/andryou/scriptsafe/blob/9627e4ccc5966eed7527d669d3cd0332236c1210/js/scriptsafe.js#L1257

I'm not a Chrome developer, but an educated guess is that the limit is referring to https://developer.chrome.com/extensions/storage#property-sync. If this is the case, then if each sync'ed URL is around 200 bytes (which feels on the high side of reasonable), then the total number of white-listed sites would indeed be around 5k.

The easy solution is to look through the whitelist and get rid of obnoxiously long URLs. I've bought myself some time this way. The problem is that so many AWS sites are super long that it's a bit of a game of whackamole.

No idea how to solve this problem otherwise. I suppose the syncing algo could use compression, which might push increase the effective number of sites by 2-3x. That's not shabby, all things considered.

kubark42 avatar Jul 03 '19 18:07 kubark42

it could sync the data to pastebin or gist (or both) and only saves the reference to this in its own settings.

pke avatar Oct 11 '19 07:10 pke

it could sync the data to pastebin or gist (or both) and only saves the reference to this in its own settings.

I really like this idea. It would allow the community to curate a base list. I know the plugin already does some of this for us, but there are always new servers popping up, and, worse, there are cloudfront servers with UUID names which are impossible to evaluate based on their URL.

kubark42 avatar Oct 11 '19 12:10 kubark42

it could sync the data to pastebin or gist (or both) and only saves the reference to this in its own settings.

Excellent idea. Gist would be great.

peterpaddington avatar Oct 12 '19 07:10 peterpaddington

One problem would be authentication agains github to create the Gist. The credentials would have to be part of the extension or hidden away in a simple Lamda, Azure Function or similar which the extension then communicates with the actually save the Gist under the extensions repo.

-Or-

Each user authenticates the extension against her own github to store the settings in their own repo (like VSCode settings sync does it).

pke avatar Oct 14 '19 21:10 pke

Could we just add an option to suppress the alert? This alert is the most annoying thing of the extension and I personally don't care if it sync to my other devices or not.

Shinigami92 avatar Dec 26 '23 17:12 Shinigami92